chore:user office experiment workflow#1391
Open
yoganandaness wants to merge 177 commits into
Open
Conversation
added 30 commits
December 22, 2025 14:13
…elated methods and types
…g and introducing WorkflowStatus model
…lowStatusId instead of id
…ntroducing CreateWorkflowConnection mutation
…rget status lookups
…vents table and updating related references
…usActionsOnConnection
…lowStructure method
…onsistency in workflow management
…efactoring IsProposalSubmittedGuard
…andling and refactoring related methods
…error for missing proposal workflow
… GuardFn and refactoring related guards
…ent metadata handling
…tatusConnectionId and refactor related properties
…authorization checks for proposal assignments
…orkflow migration scripts
… for proposal status filtering
…OfficeProject/user-office-core into SWAP-4949-workflow-overhaul
…status management
…ts implementations
…orkflowQueries method
Co-authored-by: Copilot <copilot@github.com>
…of github.com:UserOfficeProject/user-office-core into SWAP-5222-user-office-experiment-workflow-improvement
…re into SWAP-5222-user-office-experiment-workflow-improvement
…oject/user-office-core into SWAP-5222-user-office-experiment-workflow-improvement
Contributor
Author
|
@copilot please resolve the merge conflicts. resolve those that you are confident of |
Contributor
Resolved the merge conflicts and committed the merge resolution in |
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?