stable

Clone or download

Read-only

refactor: merge ParentCondition and ChildrenCondition

Searching for parent or children with `artifact = 123` or `tracker = 'epic'` is the same. We don't need separate code. Less is more. Part of story #32307: Search artifacts with/without children via TQL Change-Id: Ic0e8fe984d1ddfa2aa7903fb690eb6431727f5ed

Modified Files

Name
M plugins/crosstracker/include/CrossTracker/REST/v1/CrossTrackerReportsResource.php +2 −2 Go to diff View file
R plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilder/ArtifactLink/ChildrenFromWhereBuilder.php Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilder/ArtifactLink/ParentFromWhereBuilder.php +7 −7 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilderVisitor.php +2 −2 Go to diff View file
M plugins/crosstracker/include/crosstrackerPlugin.php +2 −2 Go to diff View file
M plugins/tracker/grammar/src/tql.pegjs +13 −25 Go to diff View file
D plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/ChildrenArtifactCondition.php +0 −35 Go to diff View file
D plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/ChildrenCondition.php +0 −37 Go to diff View file
D plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/ChildrenConditionVisitor.php +0 −44 Go to diff View file
D plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/ChildrenTrackerCondition.php +0 −35 Go to diff View file
R plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/ParentArtifactCondition.php Go to diff View file
R plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/ParentCondition.php Go to diff View file
R plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/ParentConditionVisitor.php Go to diff View file
R plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/ParentTrackerCondition.php Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/WithChildren.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/WithParent.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/WithoutChildren.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/WithoutParent.php +1 −1 Go to diff View file
R plugins/tracker/include/Tracker/Report/Query/Advanced/QueryBuilder/ArtifactLink/ChildrenFromWhereBuilder.php Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/QueryBuilder/ArtifactLink/ParentFromWhereBuilder.php +7 −7 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/QueryBuilderVisitor.php +2 −2 Go to diff View file
M plugins/tracker/include/Tracker/Report/Tracker_Report.class.php +1 −1 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Report/Query/Advanced/QueryBuilderVisitorTest.php +1 −1 Go to diff View file