stable

Clone or download

Read-only

refacto: use the same pipeline when uppating a type and/or adding a new

reverse link Part of story #24970 [modal] select type for links Adding a link or updating a type is now done in the same loop. No functionnal change expected when calling PUT /artifacts/:id. Make sure to have the feature enabled: tuleap config-set feature_flag_allow_reverse_links 1 Payload example for tests: ``` { "values": [{ "field_id": 543, "all_links": [ {"id": 11, "direction": "reverse", "type": "hehe"}, {"id": 151, "direction": "forward", "type": "_is_child"} ] }] } ``` Change-Id: Id87082bf3cb88ab55b697dae9c7ffc5327115354

Modified Files

Name
M plugins/tracker/include/REST/Artifact/PUTHandler.php +8 −9 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/ChangesetValue/ArtifactLink/NewArtifactLinkChangesetValue.php +1 −13 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Link/ArtifactLinker.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Link/ArtifactUpdateHandler.php +37 −81 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Link/HandleUpdateArtifact.php +2 −14 Go to diff View file
M plugins/tracker/tests/unit/REST/Artifact/PUTHandlerTest.php +7 −12 Go to diff View file
M plugins/tracker/tests/unit/Stub/HandleUpdateArtifactStub.php +14 −22 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Artifact/ChangesetValue/ArtifactLink/NewArtifactLinkChangesetValueTest.php +1 −1 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Artifact/Link/ArtifactUpdateHandlerTest.php +17 −25 Go to diff View file