Swap 5222 user office experiment workflow improvement#1391
Open
yoganandaness wants to merge 2 commits intoSWAP-4949-workflow-overhaulfrom
Open
Swap 5222 user office experiment workflow improvement#1391yoganandaness wants to merge 2 commits intoSWAP-4949-workflow-overhaulfrom
yoganandaness wants to merge 2 commits intoSWAP-4949-workflow-overhaulfrom
Conversation
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.
This pull request introduces a major overhaul of the workflow data structures and migrates existing workflow data to the new schema. The changes are focused on improving workflow management, enabling more flexible graph-based workflows, and ensuring data integrity during migration. The update includes new tables, foreign key relationships, triggers, and migration scripts to transition all relevant data and references.
Schema redesign for workflow management:
workflow_has_statuses,workflow_status_connections,workflow_status_connection_has_workflow_status_changing_events, andworkflow_status_connection_has_workflow_status_actionsto support graph-based workflows, status transitions, and associated events/actions.workflowstable to include anupdated_attimestamp, and renamedstatus_actionstoworkflow_status_actionsfor clarity.Migration and data integrity:
proposalsandexperiment_safetytables to link to the new workflow graph, and added triggers to keepstatus_idin sync with the newworkflow_status_id. [1] [2]Cleanup and deprecation:
workflow_connections,workflow_connection_has_actions, andstatus_changing_events, after successful migration.Event and action handling changes:
Referential integrity and constraints:
Description
Motivation and Context
How Has This Been Tested
Fixes
Changes
Depends on
Tests included/Docs Updated?