stable

Clone or download

Read-only

refactor: introduce ChangeReverseLinksCommand

How to test: - No functional change in the REST API PUT /artifacts/{id}. You can still add, change or remove reverse links. part of request #34374 Be able to explicitly add, change or remove forward and reverse links Change-Id: Ib546673b7b082e3766997d77565e9d48362a27e4

Modified Files

Name
M plugins/tracker/include/REST/Artifact/ChangesetValue/ArtifactLink/NewArtifactLinkChangesetValueBuilder.php +5 −5 Go to diff View file
M plugins/tracker/include/REST/Artifact/PUTHandler.php +20 −27 Go to diff View file
A plugins/tracker/include/Tracker/Artifact/ChangesetValue/ArtifactLink/ChangeReverseLinksCommand.php +85 −0 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/ChangesetValue/ArtifactLink/CollectionOfForwardLinks.php +2 −2 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/ChangesetValue/ArtifactLink/CollectionOfReverseLinks.php +30 −15 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/ChangesetValue/ArtifactLink/NewArtifactLinkChangesetValue.php +20 −5 Go to diff View file
M plugins/tracker/tests/unit/REST/Artifact/ChangesetValue/ArtifactLink/NewArtifactLinkChangesetValueBuilderTest.php +2 −1 Go to diff View file
M plugins/tracker/tests/unit/Stub/RetrieveUsedArtifactLinkFieldsStub.php +27 −11 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Artifact/ChangesetValue/ArtifactLink/ChangeReverseLinksCommandTest.php +139 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Artifact/ChangesetValue/ArtifactLink/CollectionOfForwardLinksTest.php +3 −3 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Artifact/ChangesetValue/ArtifactLink/CollectionOfReverseLinksTest.php +94 −12 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Artifact/ChangesetValue/ArtifactLink/NewArtifactLinkChangesetValueTest.php +2 −2 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Artifact/ChangesetValue/ChangesetValuesContainerTest.php +1 −1 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Artifact/Link/ArtifactLinkerTest.php +2 −4 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Artifact/Link/ArtifactUpdateHandlerTest.php +4 −5 Go to diff View file