stable

Clone or download

Read-only

feat: Forbid move when artifact is an iteration or a mirrored milestone

part of story #32280 Complete the "move artifact" feature Please note that there is still a check preventing artifacts to be moved when they have artifact links. This check will be removed when we'll be able to process artifact links within the feature. How to test: - Have a program project containing increments, iterations and a team project having mirrored increments (releases) and mirrored iterations (sprints) - Go to an increment artifact --> Move is forbidden because it is an increment artifact - Go to a mirrored release of this increment --> Move is forbidden because the artifact part of a program plan. - Go to a program iteration --> Move is forbidden because it is a program iteration - Go to a mirrored sprint of this iteration --> Move is forbidden because it is part of a program plan. - Go to a user story --> Move is forbidden because the artifact has links (not because it is an iteration or a mirrored milestone) Change-Id: I88201d600d60fdab77ead81238777937fec7cf51

Modified Files

Name
A plugins/program_management/include/Adapter/ArtifactLinks/MoveArtifactActionEventProxy.php +43 −0 Go to diff View file
A plugins/program_management/include/Domain/ArtifactLinks/ArtifactMoveConditionChecker.php +74 −0 Go to diff View file
A plugins/program_management/include/Domain/ArtifactLinks/ForbidArtifactMoveAction.php +26 −0 Go to diff View file
M plugins/program_management/include/program_managementPlugin.php +19 −0 Go to diff View file
M plugins/program_management/site-content/fr_FR/LC_MESSAGES/tuleap-program_management.po +13 −0 Go to diff View file
M plugins/program_management/site-content/pt_BR/LC_MESSAGES/tuleap-program_management.po +9 −0 Go to diff View file
M plugins/program_management/tests/unit/Domain/ArtifactLinks/ArtifactLinksNewTypesCheckerTest.php +5 −24 Go to diff View file
A plugins/program_management/tests/unit/Domain/ArtifactLinks/ArtifactMoveConditionCheckerTest.php +100 −0 Go to diff View file
M plugins/program_management/tests/unit/Domain/ArtifactLinks/DeletedArtifactLinksCheckerTest.php +4 −18 Go to diff View file
A plugins/program_management/tests/unit/Stub/ForbidArtifactMoveActionStub.php +47 −0 Go to diff View file
A plugins/program_management/tests/unit/Stub/SearchLinkedArtifactsStub.php +47 −0 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/ActionButtons/ArtifactMoveButtonPresenterBuilder.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/ActionButtons/MoveArtifactActionAllowedByPluginRetriever.php +18 −35 Go to diff View file