stable

Clone or download

Read-only

story #5894 update the artifact link data model

Accordingly to hierarchy of trackers, whenever we link two artifacts, we now save the nature of the link. Only _is_child is saved for now. For example if I create a task under a story, then in the tracker_changeset_value_artifactlink, the nature column will say '_is_child'. If there is no direct hierarchy (a task for an epic, or a user story in a sprint) then the nature is NULL. This commit takes into account the tracker hierachy updates (either remove all children or adding new one). Have fun ;) Change-Id: I78614705f0d6ae629153c4c8915e98dd0cc3697b

Modified Files

Name
M plugins/tracker/db/install.sql +1 −0 Go to diff View file
A plugins/tracker/db/mysql/updates/2016/201601271554_add_nature_in_artifactlink.php +43 −0 Go to diff View file
A plugins/tracker/db/mysql/updates/2016/201602081457_add_is_child_into_existing_data.php +52 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_ArtifactLink.class.php +12 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/dao/Tracker_FormElement_Field_Value_ArtifactLinkDao.class.php +5 −3 Go to diff View file
M plugins/tracker/include/Tracker/Hierarchy/Controller.class.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/Hierarchy/Dao.class.php +169 −30 Go to diff View file
M plugins/tracker/include/autoload.php +3 −2 Go to diff View file
M plugins/tracker/tests/Tracker/Hierarchy/ControllerTest.php +9 −4 Go to diff View file
M plugins/tracker/tests/Tracker_FormElement_Field_ArtifactLinkTest.php +61 −17 Go to diff View file