Repository navigation
feat(automation): add version listing and rollback support - #3200
Draft
ppatel9703 wants to merge 4 commits into
Draft
ppatel9703 wants to merge 4 commits into
ppatel9703 wants to merge 4 commits into
Conversation
Contributor
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
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.
Summary
Adds project-owned version history and forward-only restore support for Automation definitions.
Automation graph JSON and owned
developer.pythonsources continue to live in the Automation project's standard Git repository. Listing reads that history; restoring reads a validated historical aggregate and saves it through the existing Automation save boundary, creating a new commit instead of rewinding Git history.Companion UI: SEMOSS/semoss-ui#3800
Flow
flowchart LR Save[Save Automation] --> Validate[Validate graph and node sources] Validate --> Persist[Persist Automation-owned assets] Persist --> Commit[Create project Git commit] List[List versions] --> ViewACL[Require project view access] ViewACL --> History[Read bounded Automation-only Git history] Restore[Restore selected version] --> EditACL[Require project edit access] EditACL --> Concurrency[Verify expected current revision] Concurrency --> Reachable[Require full reachable Automation commit] Reachable --> Read[Read graph and developer sources] Read --> Validate Commit --> Audit[Record successful Automation update]Changes
ListAutomationVersions, returning up to 100 newest Automation revisions with author, timestamp, message, and full commit SHA.RollbackAutomation, requiring the selected full SHA and the current definition revision.developer.pythonsources.AutomationProjectService.saveDefinitionfor locking, validation, persistence, MCP synchronization, and revision calculation.Authorization and correctness
HEADthat actually changed Automation-owned assets.expectedRevisionprovides optimistic concurrency so a stale dialog cannot overwrite newer edits.Tests
Focused unit coverage includes:
Manual integration validation after an Eclipse rebuild confirmed:
ListAutomationVersionscompleted successfully through Pixel.Reviewer test
ListAutomationVersions(project=["<project-id>"], limit=["100"]);and confirm newest-first Automation revisions.Out of scope