stable
Clone or download
Read-only
part of story #24970 [modal] select type for links When `all_links` key is provided, with `reverse` direction, artifact link is created in the correct direction Example PUT artifacts/22 with following payload ``` { "values": [ { "field_id": 318, "all_links": [ { "id": 10, "type": "fixed_in", "direction": "reverse" } ] } ], "comment": { "format": "commonmark", "body": "" } } ``` will create a forward link from artifact #10 to artifact #22, link is automagically converted from reverse to forward lin: Change-Id: I5707e15ef1490c6feb120baaac4d985e6b884849
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/tracker/include/REST/Artifact/ArtifactUpdater.php | +3 | −0 | Go to diff View file |
M | plugins/tracker/include/REST/Artifact/ChangesetValue/ArtifactLink/RESTReverseLinkProxy.php | +8 | −0 | Go to diff View file |
M | plugins/tracker/include/REST/Artifact/PUTHandler.php | +8 | −9 | Go to diff View file |
A | plugins/tracker/include/REST/FaultMapper.php | +43 | −0 | Go to diff View file |
M | plugins/tracker/include/REST/v1/ArtifactsResource.class.php | +13 | −3 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/Artifact.php | +4 | −2 | Go to diff View file |
A | plugins/tracker/include/Tracker/Artifact/ArtifactDoesNotExistFault.php | +36 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/ChangesetValue/ArtifactLink/ReverseLink.php | +4 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/ChangesetValue/ArtifactLink/StoredReverseLink.php | +6 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/Link/ArtifactLinker.php | +34 | −1 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/Link/ForwardLinkProxy.php | +3 | −0 | Go to diff View file |
A | plugins/tracker/include/Tracker/Artifact/Link/LinkArtifact.php | +41 | −0 | Go to diff View file |
M | plugins/tracker/tests/rest/Artifacts/LinkedArtifactsTest.php | +51 | −0 | Go to diff View file |
M | plugins/tracker/tests/rest/DataBuilder.php | +5 | −0 | Go to diff View file |
M | plugins/tracker/tests/unit/REST/Artifact/ChangesetValue/ArtifactLink/RESTReverseLinkProxyTest.php | +15 | −0 | Go to diff View file |
M | plugins/tracker/tests/unit/REST/Artifact/PUTHandlerTest.php | +53 | −9 | Go to diff View file |
A | plugins/tracker/tests/unit/Stub/LinkArtifactStub.php | +61 | −0 | Go to diff View file |
M | plugins/tracker/tests/unit/Stub/ReverseLinkStub.php | +7 | −0 | Go to diff View file |
M | plugins/tracker/tests/unit/Tracker/Artifact/Link/ArtifactLinkerTest.php | +56 | −13 | Go to diff View file |