Skip to content

feat: add the ability to execute status actions when the proposal status is updated manually#1441

Open
jekabs-karklins wants to merge 185 commits into
developfrom
SWAP-5434-as-a-user-officer-i-want-to-specify-which-actions
Open

feat: add the ability to execute status actions when the proposal status is updated manually#1441
jekabs-karklins wants to merge 185 commits into
developfrom
SWAP-5434-as-a-user-officer-i-want-to-specify-which-actions

Conversation

@jekabs-karklins
Copy link
Copy Markdown
Contributor

@jekabs-karklins jekabs-karklins commented Mar 27, 2026

Description

THIS PR IS BUILT ON TOP OF #SWAP-4949-workflow-overhaul

This PR adds the ability for the User Officer to execute status actions when he/she sets the proposal status manually.

Motivation and Context

After the workflow overhaul the status actions are attached to the transition, and not the status. In same cases when setting the proposal status the user officer would want to run the status actions accompanied with the transition leading to that status.

This PR handles three scenarios:

  • If there are no status actions before the chosen state, user can not select anything
  • If there is one incoming transition with status action user can decide to run it.
  • If there are multiple, user can decide if he/she wants to run it and if yes from which transition (see screenshots)
image image

Changes

  • Added workflowConnectionId parameter to the changeProposalsStatus mutation in ProposalMutations.ts, which is used to fetch the proposal workflow and run the status engine.
  • Updated changeProposalsStatus mutation to only run status actions if workflowConnectionId is provided, improving the control over status change side-effects.
  • Updated the related test case in proposals.cy.ts to cover the new functionality.

How Has This Been Tested?

Added e2e

Fixes Jira Issue

https://jira.ess.eu//browse/SWAP-5434

Depends On

Tests included/Docs Updated?

  • I have added tests to cover my changes.
  • All relevant doc has been updated

jekabskarklins added 30 commits December 22, 2025 14:13
…ntroducing CreateWorkflowConnection mutation
…vents table and updating related references
…tatusConnectionId and refactor related properties
…authorization checks for proposal assignments
jekabskarklins and others added 26 commits April 22, 2026 10:31
…itorModel and usePersistWorkflowEditorModel
- Changed import paths in various guard files to reference the new stateMachine module.
- Created new stateMachine module with necessary types and functions.
Base automatically changed from SWAP-4949-workflow-overhaul to develop May 26, 2026 13:37
jekabskarklins added 3 commits May 27, 2026 10:40
…ions' of github.com:UserOfficeProject/user-office-core into SWAP-5434-as-a-user-officer-i-want-to-specify-which-actions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants