stable

Clone or download

Read-only

Detect parent to update when all_links payload is provided

part of story #24970 [modal] select type for links - Enable the feature flag: $ tuleap config-set feature_flag_allow_reverse_links 1 - Given you are providing a valid all links payload Example: ``` { "values": [{ "field_id": 543, "all_links": [ {"id": 11, "direction": "reverse"}, {"id": 12, "direction": "reverse"} ] }] } ``` Then it will return the following output: ``` { "Parents to update": "11,12" } ``` Change-Id: I6c4050c39717e709c7120a406e8664faa912d6e5

Modified Files

Name
A plugins/tracker/include/REST/Artifact/ChangesetValue/ArtifactLink/AllLinkPayloadParser.php +47 −0 Go to diff View file
M plugins/tracker/include/REST/Artifact/ChangesetValue/ArtifactLink/NewArtifactLinkChangesetValueBuilder.php +22 −5 Go to diff View file
A plugins/tracker/include/REST/Artifact/ChangesetValue/ArtifactLink/RESTReverseLinkProxy.php +69 −0 Go to diff View file
A plugins/tracker/include/REST/Artifact/PUTHandler.php +73 −0 Go to diff View file
M plugins/tracker/include/REST/v1/ArtifactValuesRepresentation.class.php +1 −1 Go to diff View file
M plugins/tracker/include/REST/v1/ArtifactsResource.class.php +20 −34 Go to diff View file
A plugins/tracker/include/REST/v1/LinkToUpdateRepresentation.php +39 −0 Go to diff View file
A plugins/tracker/include/Tracker/Artifact/ChangesetValue/ArtifactLink/CollectionOfReverseLinks.php +36 −0 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/ChangesetValue/ArtifactLink/NewArtifactLinkChangesetValue.php +9 −1 Go to diff View file
A plugins/tracker/include/Tracker/Artifact/ChangesetValue/ArtifactLink/ReverseLink.php +28 −0 Go to diff View file
A plugins/tracker/tests/unit/REST/Artifact/ChangesetValue/ArtifactLink/AllLinkPayloadParserTest.php +45 −0 Go to diff View file
M plugins/tracker/tests/unit/REST/Artifact/ChangesetValue/ArtifactLink/NewArtifactLinkChangesetValueBuilderTest.php +15 −12 Go to diff View file
A plugins/tracker/tests/unit/REST/Artifact/ChangesetValue/ArtifactLink/RESTReverseLinkProxyTest.php +64 −0 Go to diff View file
A plugins/tracker/tests/unit/REST/Artifact/PUTHandlerTest.php +118 −0 Go to diff View file
A plugins/tracker/tests/unit/Stub/ReverseLinkStub.php +45 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Artifact/ChangesetValue/ArtifactLink/NewArtifactLinkChangesetValueFormatterTest.php +2 −1 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Artifact/ChangesetValue/ArtifactLink/NewArtifactLinkChangesetValueTest.php +7 −2 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Artifact/ChangesetValue/ChangesetValuesContainerTest.php +7 −1 Go to diff View file