stable

Clone or download

Read-only

Do not enforce _is_child link type if project uses link types

This is part of story #18857 define any type of artifact as children Automatically set _is_child was kept for project that still not use the artifact link types. In this case, hierarchy defines the behaviour and this information must be set so that when this project will switch to use artifact link types parent/child links will work as before. Old mechanism of automatically reverse a link if there is a hierarchy have also been removed. Change-Id: If8b6cf3bcc86212d15161e2684897838b549fcad

Modified Files

Name
M plugins/tracker/include/Tracker/Artifact/Artifact.php +0 −17 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Changeset/NewChangesetCreatorBase.class.php +5 −21 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Tracker_ArtifactLinkInfo.class.php +8 −4 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/XMLImportBuilder.class.php +0 −12 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/ArtifactLinkValueSaver.php +25 −40 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/ArtifactLinksToRender.php +1 −1 Go to diff View file
D plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/SourceOfAssociationCollection.php +0 −49 Go to diff View file
D plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/SourceOfAssociationCollectionBuilder.php +0 −73 Go to diff View file
D plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/SourceOfAssociationDetector.php +0 −59 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/SubmittedValueConvertor.php +3 −50 Go to diff View file
D plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/UpdateLinkingDirectionCommand.php +0 −51 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_ArtifactLink.php +2 −36 Go to diff View file
M plugins/tracker/include/Tracker/Hierarchy/HierarchyController.php +24 −7 Go to diff View file
M plugins/tracker/include/Tracker/Hierarchy/HierarchyDAO.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/Tracker.class.php +2 −13 Go to diff View file
M plugins/tracker/include/Tracker/XML/Exporter/ChangesetValue/ChangesetValueArtifactLinkXMLExporter.class.php +1 −1 Go to diff View file
M plugins/tracker/site-content/fr_FR/LC_MESSAGES/tuleap-tracker.po +8 −16 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Artifact/Tracker_ArtifactTest.php +0 −1 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Artifact/Tracker_Artifact_Changeset_NewChangesetCreatorTest.php +0 −1 Go to diff View file
M plugins/tracker/tests/unit/Tracker/FormElement/Field/ArtifactLink/ArtifactLinkValueSaverTest.php +9 −2 Go to diff View file
D plugins/tracker/tests/unit/Tracker/FormElement/Field/ArtifactLink/CatchLinkDirectionTest.php +0 −243 Go to diff View file
D plugins/tracker/tests/unit/Tracker/FormElement/Field/ArtifactLink/SourceOfAssociationDetectorTest.php +0 −73 Go to diff View file
M plugins/tracker/tests/unit/Tracker/FormElement/Field/ArtifactLink/SubmittedValueConvertorTest.php +2 −65 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Hierarchy/ControllerTest.php +53 −10 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Hierarchy/HierarchyControllerTest.php +69 −12 Go to diff View file
D tests/rest/tests/regressions/PermissionOnArtifactRequiredTest.php +0 −86 Go to diff View file