Closed elias-ba closed 2 days ago
Attention: Patch coverage is 96.49805%
with 9 lines
in your changes missing coverage. Please review.
Project coverage is 88.98%. Comparing base (
1af3a01
) to head (e0d8200
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Description
This PR introduces support for Workflow Snapshots in the UI, enhancing some sort of version control and historical accuracy within the workflow canvas. Two main areas are updated: the Workflow Canvas and the History Page.
In the Workflow Canvas
A kind of versioning system is implemented, tracked through the
workflow lock_version
property. The version is passed via the URL parameterv
to load specific snapshots.Snapshots are rendered in the canvas according to the version specified in the URL. If a snapshot is not the latest version, the UI switches to read-only mode. A toggle allows switching to the latest version for editing. Only the latest version can be edited; previous versions are view-only.
In the History Page
Runs now display using snapshots. If a run was executed with a non-latest version, rerunning it will use the latest workflow version. A tooltip on the rerun button informs users about this behavior.
When inspecting a run, it loads in the Workflow Canvas with its specific version. Users can toggle to the latest version using the same switch as in the Workflow Canvas.
Validation Steps
Notes for the reviewer
Related issue
Fixes #1843 #1825 #2027
Review checklist
:owner
,:admin
,:editor
,:viewer
) have been implemented and tested