The Guardian is an innovative open-source platform that streamlines the creation, management, and verification of digital environmental assets. It leverages a customizable Policy Workflow Engine and Web3 technology to ensure transparent and fraud-proof operations, making it a key tool for transforming sustainability practices and carbon markets.
Apache License 2.0
105
stars
132
forks
source link
Dry-run policy execution 'savepoints' - restart policy dry-run from the list of 'saved' places #2838
In practice when developing a policy it is often rerun (in dry-run mode) to test latest changes. For realistic policies it can be time consuming as they tend to be quite lengthy and complex and thus require to remember and then re-execute all operations just to reach the point which is tested. It can be inconvenient and time consuming.
Note: this is different from #2559 which targets Guardian DR, i.e. its subject is published artefacts while this ticket aims to simplify dry-run (i.e. policy authoring) mode.
Requirements
Introduce a new functionality for users to 'save' dry-run execution status at arbitrary points by clicking 'save state' button.
The system should support the creation of multiple savepoints for the same execution workflow
Next time the (draft) policy is executed in the dry-run mode users should be given a choice whether to restart from the beginning, or continue execution from any of the 'savepoints'.
Starting execution from a 'savepoint' invalidates and removes all the other savepoints that logically followed it
It should be possible to delete some or all savepoints manually
Definition of done
Dry-run savepoint functionality is implemented as above
Documentation is updated accordingly
Acceptance criteria
UX of policy authoring is improved by giving users ability to restart dry-run policy execution from the last savepoint.
Problem description
In practice when developing a policy it is often rerun (in dry-run mode) to test latest changes. For realistic policies it can be time consuming as they tend to be quite lengthy and complex and thus require to remember and then re-execute all operations just to reach the point which is tested. It can be inconvenient and time consuming.
Note: this is different from #2559 which targets Guardian DR, i.e. its subject is published artefacts while this ticket aims to simplify dry-run (i.e. policy authoring) mode.
Requirements
Definition of done
Acceptance criteria
UX of policy authoring is improved by giving users ability to restart dry-run policy execution from the last savepoint.