Skip to content

deploy command support for drafts #679

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

deploy command support for drafts #679

wants to merge 8 commits into from

Conversation

amol-
Copy link
Contributor

@amol- amol- commented Jun 6, 2025

Intent

Allows to deploy content without activating it.

Type of Change

  • New Feature

Approach

New command line option that injects the parameter only when necessary, this way it will be backward compatible with previous API when the parameter is not provided.

Automated Tests

test_deploy_draft runs the command with all possible permutations of content and activate=True/False

Directions for Reviewers

Currently the deploy doesn't output the url where the draft can be seen, that's planned for a follow-up PR as the two can be done in isolation.

Checklist

  • I have updated CHANGELOG.md to cover notable changes.
  • I have updated all related GitHub issues to reflect their current state.

Copy link

github-actions bot commented Jun 6, 2025

PR Preview Action v1.6.1

🚀 View preview at
https://posit-dev.github.io/rsconnect-python/pr-preview/pr-679/

Built to branch gh-pages at 2025-06-06 15:10 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Copy link

github-actions bot commented Jun 6, 2025

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
5100 3974 78% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
rsconnect/api.py 78% 🟢
rsconnect/main.py 69% 🟢
TOTAL 73% 🟢

updated for commit: dfcc5cc by action🐍

@amol- amol- marked this pull request as ready for review June 6, 2025 15:09
["voila", get_dir(join("pip1", "dummy.ipynb"))],
]
],
)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a bit confusing, but in practice it produces product of args * flag thus testing every deploy command with both flag=True and flag=False

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.

1 participant