-
Notifications
You must be signed in to change notification settings - Fork 27
Output the preview url in case of drafts #681
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
|
|
rebased on main, will fix failures |
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified Files
|
| except json.JSONDecodeError: | ||
| logger.debug("--> <invalid JSON>") | ||
| else: | ||
| logger.debug("--> <non-json-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.
Unrelated, but. printing the whole body always lead to the full application home page being dumped on every deploy. I chose to only dump JSON responses as those are the ones usually coming from the APIs and thus that are more valuable when debugging.
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.
Thank you for this — you're totally right that the whole body is too much in most (many? all?) cases
marcosnav
left a comment
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.
🚀
When drafts are available, we need to tell the users where to see the launched content.
Intent
Always oputput as "Direct URL" the url where the currently deployed content is visible.
When it's an active application we show the application url, when it's a draft we output the draft url.
Type of Change
Approach
Expand
RSConnectClientDeployResultwith a new "preview_url" field which has the url where the deployed bundle is served. If the bundle was activated, we will set this toNoneas the content is visibile on theapp_url, if the bundle wasn't activate instead we set this so that it can be printed to user.Automated Tests
test_deploy_drafttest now also tests for the right URL to be printedDirections for Reviewers
This depends on #679Checklist
I think we can avoid updating the CHANGELOG further as #679 already added the concept of deploying drafts as a new feature.