stable

Clone or download

Read-only

feat: Tuleap backend must blocks edition of _mirrored_milestones links

This is part of request #30358 Mirrored milestone links cannot be deleted/updated The artifact update must be rejected if at least one artifact link of type ```_mirrored_milestone``` is updated. How to test ----------- * Go to an artifact with at least one artifact link of type ```_mirrored_milestone``` * Edit this link to change its type (must be done in the tracker pane of the artifact link field) => The artifact update must be rejected in artifact UI (no type edit is possible for now in the artifact modal). * Edit an artifact with at least one artifact link of type ```_mirrored_milestone``` using the REST route PUT /artifacts/{id} to edit this link to change its type => The artifact update must be rejected. Change-Id: I7cb8d2ffac04894bfa4040777322003fe7c7fd68

Modified Files

Name
M plugins/program_management/include/Adapter/ArtifactLinks/LinkedArtifactDAO.php +4 −3 Go to diff View file
A plugins/program_management/include/Adapter/ArtifactLinks/ProvidedArtifactLinksTypesProxy.php +58 −0 Go to diff View file
A plugins/program_management/include/Domain/ArtifactLinks/ArtifactLinksNewTypesChecker.php +61 −0 Go to diff View file
M plugins/program_management/include/Domain/ArtifactLinks/DeletedArtifactLinksChecker.php +8 −2 Go to diff View file
A plugins/program_management/include/Domain/ArtifactLinks/ProvidedArtifactLinksTypesEvent.php +35 −0 Go to diff View file
M plugins/program_management/include/Domain/ArtifactLinks/SearchLinkedArtifacts.php +3 −2 Go to diff View file
M plugins/program_management/include/program_managementPlugin.php +12 −2 Go to diff View file
M plugins/program_management/site-content/fr_FR/LC_MESSAGES/tuleap-program_management.po +5 −0 Go to diff View file
M plugins/program_management/site-content/pt_BR/LC_MESSAGES/tuleap-program_management.po +4 −0 Go to diff View file
A plugins/program_management/tests/unit/Domain/ArtifactLinks/ArtifactLinksNewTypesCheckerTest.php +123 −0 Go to diff View file
A plugins/program_management/tests/unit/Domain/ArtifactLinks/DeletedArtifactLinksCheckerTest.php +95 −0 Go to diff View file
A plugins/program_management/tests/unit/Stub/DeletedArtifactLinksEventStub.php +64 −0 Go to diff View file
A plugins/program_management/tests/unit/Stub/ProvidedArtifactLinksTypesEventStub.php +73 −0 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Changeset/NewChangesetCreator.php +1 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/ArtifactLinkValidator.php +2 −9 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/ValidateArtifactLinkValueEvent.php +31 −1 Go to diff View file
M plugins/tracker/tests/unit/Tracker/FormElement/ArtifactLinkValidatorTest.php +94 −22 Go to diff View file
A plugins/tracker/tests/unit/Tracker/FormElement/Field/ArtifactLink/ValidateArtifactLinkValueEventTest.php +105 −0 Go to diff View file