stable

Clone or download

Read-only

Possible parents can be in different categories

Even if, at the moment, the only way to get multiple parents is from program management plugin, the actual implementation of the break down is done in the renderer inside Tracker plugin. The initial implementation was done purely in Program Management plugin but raised complex questions for the REST API /trackers/:id/possible_parents as this route is paginated, getting structured data would have been a mess. An alternative would have been to differentiate the use case Web UI / REST route. However it would have made the design way more complex. Part of story #22681 select a parent from Program for my features/enablers Change-Id: I22b6b5e08d54e8ac1569dcaa3d2ed8e626d2f315

Modified Files

Name
M plugins/program_management/include/Adapter/Team/PossibleParentSelectorProxy.php +4 −13 Go to diff View file
M plugins/program_management/site-content/fr_FR/LC_MESSAGES/tuleap-program_management.po +0 −6 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Team/PossibleParentSelectorProxyTest.php +2 −51 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/PossibleParentSelector.php +0 −11 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/PossibleParentsRetriever.php +0 −1 Go to diff View file
A plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/PossibleParentCategoryPresenter.php +37 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/PossibleParentSelectorPresenter.php +4 −6 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/PossibleParentSelectorRenderer.php +36 −14 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/templates/possible-parent-selector.mustache +4 −4 Go to diff View file
M plugins/tracker/site-content/fr_FR/LC_MESSAGES/tuleap-tracker.po +7 −7 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Artifact/PossibleParentsRetrieverTest.php +0 −1 Go to diff View file
M plugins/tracker/tests/unit/Tracker/FormElement/Field/ArtifactLink/PossibleParentSelectorRendererTest.php +74 −3 Go to diff View file