posit-dev / posit-dev/rsconnect-python

Need a flag to stop web browser opening a new tab after successful deployment to shinyapps.io

Open
#462 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.