Skip to content

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

Merged
samperman merged 2 commits into
connect-cloud-auth-refactorfrom
connect-cloud-auth-refactor-pr-feedback
Aug 26, 2026
Merged

address PR review feedback on the Connect Cloud auth refactor#841
samperman merged 2 commits 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

github-actions Bot commented Aug 19, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-08-26 17:50 UTC

@karawoo karawoo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One question about the supported deploy options but otherwise lgtm

Comment thread rsconnect/validation.py
Comment on lines +65 to +72
_CONNECT_ONLY_DEPLOY_OPTIONS: dict[str, str] = {
"image": "-I/--image",
"disable_env_management": "--disable-env-management",
"env_management_py": "--disable-env-management-py",
"env_management_r": "--disable-env-management-r",
"draft": "--draft",
"metadata": "--metadata",
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should --disable-env-management-node and --node be included here too? What about --hide-all-input / --hide-tagged-input?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch on the node flags. i've added those to the list. As for the two hide flags, i think i'm going to leave those as is for now and instead investigate how to properly support them on the Connect Cloud side. I've created an issue there to track it.

A user targeting Connect Cloud via a saved nickname can reach
deploy_nodejs; reject these options the same way as the other
env-management flags.
@samperman
samperman merged commit 0cd5d6a into connect-cloud-auth-refactor Aug 26, 2026
1 check passed
@samperman
samperman deleted the connect-cloud-auth-refactor-pr-feedback branch August 26, 2026 17:49
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.

2 participants