posit-dev / posit-dev/connectapi

generate Content class objects from content dataframe

Open
#377 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
54
Forks
27
Avg merge
1d 3m
Merged PRs (30d)
1

Description

Some functions, such as get_jobs(), require a Content class object. Content class objects are returned by content_item(), which makes a request to the content API.

If we already have the content dataframe returned by get_content() then we should generate the Content class object from it instead of creating with content_item().

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the implementations of get_content(), content_item(), and get_jobs() to understand the Content dataframe and object shapes. Generate Content objects from an existing content dataframe without making the content API request, then verify that the resulting objects work with get_jobs() as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.