feat: Make Python Virtual Environment Persistent: Add Environments to Left Panel #5577
Open
SarahAsad23 wants to merge 11 commits into
Open
feat: Make Python Virtual Environment Persistent: Add Environments to Left Panel #5577SarahAsad23 wants to merge 11 commits into
SarahAsad23 wants to merge 11 commits into
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #5577 +/- ##
============================================
- Coverage 52.17% 52.15% -0.03%
+ Complexity 2482 2478 -4
============================================
Files 1068 1068
Lines 41311 41380 +69
Branches 4439 4448 +9
============================================
+ Hits 21556 21583 +27
- Misses 18490 18530 +40
- Partials 1265 1267 +2
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this PR?
This PR introduces persistent Python Virtual Environments (PVEs) by moving them out of the Computing Unit (CU) lifecycle and storing them in the database.
Previously, PVEs were managed through Computing Units and existed only within the CU they were created in. As a result, PVEs were lost when the corresponding CU was terminated. This PR adds a new python_virtual_environments table to persist PVE configurations and introduces a dedicated dashboard interface for managing them.
Users can now create, view, update, and delete their own Python virtual environments through a new "Environments" page in the dashboard sidebar. PVE definitions are stored as user-owned resources in the database and can be managed independently of Computing Units.
Any related issues, documentation, discussions?
Related discussions and issues: #5360, #5361.
How was this PR tested?
Tested manually and tests added to PveResourceSpec.
Was this PR authored or co-authored using generative AI tooling?
Co-authored using: Claude Code