Skip to content

feat: add method to retrieve active bundle #404

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

Merged
merged 4 commits into from
May 2, 2025
Merged

feat: add method to retrieve active bundle #404

merged 4 commits into from
May 2, 2025

Conversation

tdstein
Copy link
Collaborator

@tdstein tdstein commented May 1, 2025

Adds active() method to Bundles class to retrieve the currently active bundle.

Resolves #380

Copy link

github-actions bot commented May 1, 2025

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
1885 1776 94% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
src/posit/connect/bundles.py 98% 🟢
TOTAL 98% 🟢

updated for commit: 05990fa by action🐍

@tdstein tdstein requested a review from Copilot May 1, 2025 18:16
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces an active() method to the Bundles class to retrieve the currently active bundle, resolving issue #380.

  • Added unit tests in tests/posit/connect/test_bundles.py for scenarios when an active bundle exists and when it does not.
  • Implemented the active() method in src/posit/connect/bundles.py with proper documentation.
  • Extended integration tests in integration/tests/posit/connect/test_bundles.py to validate bundle activation behavior.
  • Updated the workflow file (.github/workflows/site.yaml) with minor adjustments to build commands.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
tests/posit/connect/test_bundles.py Added unit tests for new active() method behavior
src/posit/connect/bundles.py Introduced active() method with documentation
integration/tests/posit/connect/test_bundles.py Added integration tests for bundle activation functionality
.github/workflows/site.yaml Minor adjustment to build command indentation in workflow

@tdstein
Copy link
Collaborator Author

tdstein commented May 1, 2025

I did a side quest using Claude Code.

Copy link
Collaborator

@jonkeane jonkeane left a comment

Choose a reason for hiding this comment

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

Thanks for this! I do appreciate that the operative code is small and we're adding test cases for places we lacked some before.

@tdstein tdstein merged commit 392214c into main May 2, 2025
40 checks passed
@tdstein tdstein deleted the tdstein-380 branch May 2, 2025 15:32
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.

Add method to retrieve "active" bundle.
2 participants