posit-dev / posit-dev/rsconnect-python
Need a flag to stop web browser opening a new tab after successful deployment to shinyapps.io
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 37
- Forks
- 28
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 7
Description
One of the use cases we are trying to solve for CI deployments to shinyapps.io is to not have the default web browser tab being open on every successful deployment due to this line in the code.
If we can have an alternative/flag that allows the user to not have a browser tab being opened after successful deployments.
something along the lines of
-o, --open_browser [yes|no] If the web browser tab should be automatically opened after deployment yes (default) or no)
so the usage would look like
rsconnect deploy shiny app_file_path --name server_nickname --open_browser no
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading rsconnect/api.py at the linked line around 734 and trace how the deploy shiny command parses and passes its options. Confirm where the browser is opened after a successful deployment, then add the requested opt-out behavior while preserving the default. Done means the provided command avoids opening a tab, while deployments without the flag retain the current behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100