posit-dev / posit-dev/connectapi

Support finding content by integration in search

Open
#442 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

Support passing an integration to the function implementing the content search endpoint.

client <- connect()

integration <- get_integrations(client)[[1]]
list_of_content_for_integration <- content_search(client, integration = integration)

There's a possibility we'd also want to implement a get_content_for_integration() function as a shorthand (possible because integration objects have a copy of the client).

client <- connect()

content_for_integration <- get_integrations(client)[[1]] |>
  get_content_for_integration()
  • Follow-on to #272 (implementing content search)
  • Supersedes #433 and #441 (previous issue and PR for a get_content_for_integration()-style function)
  • Requires https://github.com/posit-dev/connect/issues/33181 (supporting integrations in content search)

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 with the content_search() entry point and the get_integrations() examples in the issue, then review the requirements in posit-dev/connect#33181. Done means the search endpoint can accept an integration, with the get_content_for_integration() shorthand resolved consistently with the superseded #433 and #441 work.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.