-
Notifications
You must be signed in to change notification settings - Fork 27
Add support for specifying visibility for Posit Cloud and shinyapps.io deploys #405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified Files
|
|
@scubastevew Take a look at this change when you get a chance. |
|
Tested:
|
| if visibility != application["deployment"]["properties"]["application.visibility"]: | ||
| self._rstudio_client.update_application_property( | ||
| application["id"], "application.visibility", visibility | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need to call handle_bad_response?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes :) thanks for catching that.
Resolves #356.
Intent
This change adds support for specifying a
--visibilityflag to shinyapps.io deploys. Visibility can bepublicorprivate.Type of Change
Approach
If the deploy creates a new application and
--visibilityis provided, the visibility is set. If we're updating an existing application and--visibilityis provided, we get the existing visibility, compare it to the provided visibility, and update it if the values differ.Automated Tests
Updated the automated tests to pass
--visibilityand added/updated HTTP mocks to match the change in API calls.Directions for Reviewers
Important cases to test are:
--visibility--visibilityChecklist