stable

Clone or download

Read-only

request #18487 Artifacts from deleted trackers must not be retrieved in hierarchy

If you define two trackers (A and B), with tracker A parent of tracker B (per hierarchy). We create two artifacts (A1 and B1), and link A1 with B1. This link will have the type _is_child because of the hierarchy. When we delete tracker A, A1 is still displayed as the parent of B1, which must not be the case. This kind of check was added in SQL queries that checks artifact links across services. Change-Id: I4867e6f27e19b5609fcc3d83833d1c7dcd12851c

Modified Files

Name
M plugins/agiledashboard/include/AgileDashboard/Milestone/MilestoneDao.class.php +18 −3 Go to diff View file
M plugins/agiledashboard/include/AgileDashboard/MonoMilestone/MonoMilestoneBacklogItemDao.php +2 −0 Go to diff View file
M plugins/artifactsfolders/include/Folder/Dao.php +2 −1 Go to diff View file
M plugins/testmanagement/include/TestManagement/ArtifactDao.php +16 −0 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/dao/Tracker_ArtifactDao.class.php +17 −9 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/ArtifactLinkFieldValueDao.php +7 −9 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/Nature/NatureDao.php +2 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/Nature/NatureIsChildLinkRetriever.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/Hierarchy/HierarchyDAO.php +15 −15 Go to diff View file
M plugins/tracker/include/Tracker/Hierarchy/HierarchyFactory.class.php +4 −4 Go to diff View file
M plugins/tracker/include/Tracker/Tracker.class.php +1 −3 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Hierarchy/HierarchyFactoryTest.php +34 −0 Go to diff View file