stable

Clone or download

Read-only

request #8428 'Select Parent' in V2 Modal displays all artifacts Open/Closed

- Dedicated route to fetch parents - Change limit to reduce overhead of computation (1 big request for 1000 artifacts >>> 20 small to get 50 each) - fetch title while we get the artifacts (avoid double computation) Remaining - insert the data directly in the modale to avoid 2 useless REST calls at first run - call new route in modale Change-Id: Ie74d0b38f74de1060827d120e5f07af635a0f12e

Modified Files

Name
A plugins/tracker/include/REST/Artifact/ParentArtifactReference.php +37 −0 Go to diff View file
M plugins/tracker/include/REST/v1/TrackersResource.class.php +107 −20 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Tracker_Artifact.class.php +4 −0 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Tracker_ArtifactFactory.class.php +21 −0 Go to diff View file
A plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_PossibleParentsRetriever.php +62 −0 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/dao/Tracker_ArtifactDao.class.php +30 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_ArtifactLink.class.php +2 −22 Go to diff View file
M plugins/tracker/include/autoload.php +4 −2 Go to diff View file
M tests/rest/TrackersTest.php +20 −1 Go to diff View file