stable

Clone or download

Read-only

Transitions must mot point on null values

part of request #25696 Workflow can be broken due to deleted values in transition Typehinting have been added to define that: From transition value can be null (for transition from new artifact to anything). To transition value must always be defined Forgeupgrade correct wrongfully stored data in db Please note that request #25700 also correct part of issue, now verifications are also launched by backend before value removal Change-Id: Ib08f95d1de2d98460c40729e075a5c3ce8237926

Modified Files

Name
M plugins/agiledashboard/tests/unit/AgileDashboard/AgileDashboard_KanbanActionsCheckerTest.php +10 −10 Go to diff View file
M plugins/agiledashboard/tests/unit/AgileDashboard/Workflow/AddToTopBacklogPostActionFactoryTest.php +1 −1 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Program/Backlog/TopBacklog/Workflow/AddToTopBacklogPostActionFactoryTest.php +1 −1 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Program/Backlog/TopBacklog/Workflow/AddToTopBacklogPostActionValueUpdaterTest.php +2 −2 Go to diff View file
A plugins/tracker/db/mysql/updates/2022/202203221026_clean_workflow_transitions.php +68 −0 Go to diff View file
M plugins/tracker/include/REST/v1/Workflow/TransitionPOSTHandler.php +4 −4 Go to diff View file
M plugins/tracker/include/REST/v1/Workflow/TransitionsResource.class.php +1 −1 Go to diff View file
M plugins/tracker/include/Workflow/PostAction/CIBuild/Transition_PostAction_CIBuild.class.php +1 −1 Go to diff View file
M plugins/tracker/include/Workflow/SimpleMode/State/TransitionCreator.php +5 −1 Go to diff View file
M plugins/tracker/include/Workflow/Transition.class.php +8 −14 Go to diff View file
M plugins/tracker/include/Workflow/TransitionFactory.class.php +20 −8 Go to diff View file
M plugins/tracker/include/Workflow/Workflow.class.php +1 −1 Go to diff View file
M plugins/tracker/tests/unit/Artifact/Changeset/InitialChangesetCreatorTest.php +6 −1 Go to diff View file
M plugins/tracker/tests/unit/REST/WorkflowRestBuilderTest.php +0 −20 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Workflow/PostAction/FrozenFields/FrozenFieldsFactoryTest.php +16 −6 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Workflow/PostAction/FrozenFields/FrozenFieldsRetrieverTest.php +11 −6 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Workflow/PostAction/HiddenFieldsets/HiddenFieldsetsFactoryTest.php +7 −7 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Workflow/PostAction/HiddenFieldsets/HiddenFieldsetsRetrieverTest.php +7 −7 Go to diff View file
M plugins/tracker/tests/unit/Workflow/PostAction/CIBuild/Transition_PostAction_CIBuildFactoryTest.php +6 −23 Go to diff View file
M plugins/tracker/tests/unit/Workflow/PostAction/Field/Transition_PostAction_FieldFactoryTest.php +1 −1 Go to diff View file