posit-dev / posit-dev/connectapi

`Content$update()` should use the response of the `PATCH` to replace the `Content` object's local data.

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

The Content$update() method of the Content class updates content on the server but does not update the local copy of the data, requiring another call to do so or simply working with an out-of-sync piece of content.

Any code calling Content$update() internally should be audited — if it calls Content$get_content_remote() after that call can be removed.

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 Content$update() and audit any internal callers that invoke Content$get_content_remote() afterward. Confirm that the local Content data reflects the PATCH response and that redundant remote fetches are removed where appropriate.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
api
Issue type
Bug
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.