posit-dev / posit-dev/rsconnect-python

`rsconnect clone <content_id>`

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

Nobody has claimed this yet.

Dominant language
Python
Stars
37
Forks
28
Avg merge
1d 3h
Merged PRs (30d)
7

Description

The Connect API supports downloading a content bundle. It would be nice to wrap this in a utility to pull a copy of a content item from Connect so that you could view and modify it, similar to how you can git clone.

I would expect it to download and untar a bundle into a nicely-named directory, and add whatever metadata breadcrumbs are necessary such that I can rsconnect deploy it after making changes and it updates the deployed content rather than creating new content (unless I specify otherwise).

Use cases include the ability for two people to collaborate on content. Specific pain points this solves include what happens when the original content author is no longer around or available to make changes. Others may have collaborator permissions but currently have no way (other than curl) to modify any of the source of the content in order to update or fix it.

(Perhaps a followup to this: I might also want rsconnect pull if I'm the other collaborator and there are changes on Connect that I want to sync locally)

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 rsconnect clone <content_id> CLI entry point and read the linked Connect API bundle-download documentation. Define how a downloaded bundle is unpacked and named, and what metadata rsconnect deploy needs to update the existing content. Done means the cloned content can be modified locally and redeployed without creating a new content item unless explicitly requested.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.