Skip to content

address PR review feedback on the Connect Cloud auth refactor - #841

Open
samperman wants to merge 1 commit into
connect-cloud-auth-refactorfrom
connect-cloud-auth-refactor-pr-feedback
Open

address PR review feedback on the Connect Cloud auth refactor#841
samperman wants to merge 1 commit into
connect-cloud-auth-refactorfrom
connect-cloud-auth-refactor-pr-feedback

Conversation

@samperman

Copy link
Copy Markdown
Collaborator

Reject Connect-only deploy options for Connect Cloud.

Reject --draft so the deploy step no longer cites a Connect version for a target that has no draft step at any version.

Skip rewriting the store file when a save would not change it. DataStore._set always calls save(), so a Connect Cloud token refresh backed by the system keyring rewrote servers.json on every refresh with contents identical to what was already there,

Guard the response status against None before comparing it, since a failed connection produces a response carrying only the exception.

Trim the changelog entry, and rewrite two comments review found hard to follow.

Intent

PR feedback, will be merged into the main PR when ready: #840

Reject Connect-only deploy options for Connect Cloud.

Reject --draft so the deploy step no longer cites a
Connect version for a target that has no draft step at any version.

Skip rewriting the store file when a save would not change it.
DataStore._set always calls save(), so a Connect Cloud token refresh
backed by the system keyring rewrote servers.json on every refresh with
contents identical to what was already there,

Guard the response status against None before comparing it, since a
failed connection produces a response carrying only the exception.

Trim the changelog entry, and rewrite two comments review found hard to
follow.
@samperman
samperman requested a review from karawoo August 19, 2026 12:15
@github-actions

Copy link
Copy Markdown
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://posit-dev.github.io/rsconnect-python/pr-preview/pr-841/

Built to branch gh-pages at 2026-08-19 12:16 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant