stable
Clone or download
Read-only
Part of story #39330 Choose on which tracker I perform my query Base validation of FROM part of the query *Testing:* Try these query with what you want in SELECT and WHERE, and this for the FROM part: - `@tracker.name = 'story' AND @tracker.name = 'release'` -> fail - `@project = 'self' AND @project.category = 'topic::some'` -> fail - `my_project` -> fail - `@tracker.name = 'story'` -> success - `@project = 'self'` -> success - `@project = 'self' AND @tracker.name IN ('release', 'story')` -> success (try also with project and tracker inverted) Change-Id: I73b06102fdfae17e2aba7093bdd554c882b44bf7
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/crosstracker/include/CrossTracker/REST/v1/CrossTrackerReportsResource.php | +6 | −1 | Go to diff View file |
M | plugins/crosstracker/include/CrossTracker/Report/CrossTrackerArtifactReportFactory.php | +6 | −1 | Go to diff View file |
A | plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/AllowedFrom.php | +35 | −0 | Go to diff View file |
M | plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidFromCollectionBuilder.php | +58 | −2 | Go to diff View file |
A | plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidFromCollectionParameters.php | +34 | −0 | Go to diff View file |
A | plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidFromProjectCollectorParameters.php | +36 | −0 | Go to diff View file |
A | plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidFromProjectCollectorVisitor.php | +58 | −0 | Go to diff View file |
A | plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidFromTrackerCollectorParameters.php | +36 | −0 | Go to diff View file |
A | plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidFromTrackerCollectorVisitor.php | +54 | −0 | Go to diff View file |
M | plugins/crosstracker/site-content/fr_FR/LC_MESSAGES/tuleap-crosstracker.po | +19 | −1 | Go to diff View file |
M | plugins/crosstracker/site-content/pt_BR/LC_MESSAGES/tuleap-crosstracker.po | +12 | −0 | Go to diff View file |
M | plugins/crosstracker/tests/unit/CrossTracker/Report/Query/Advanced/InvalidFromCollectionBuilderTest.php | +71 | −3 | Go to diff View file |
M | plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/FromProject.php | +5 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/FromProjectCondition.php | +8 | −0 | Go to diff View file |
A | plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/FromProjectConditionVisitor.php | +42 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/FromProjectEqual.php | +5 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/FromProjectIn.php | +5 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/FromSomething.php | +8 | −0 | Go to diff View file |
A | plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/FromSomethingVisitor.php | +42 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/FromTracker.php | +5 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/FromTrackerCondition.php | +8 | −0 | Go to diff View file |
A | plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/FromTrackerConditionVisitor.php | +42 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/FromTrackerEqual.php | +5 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/FromTrackerIn.php | +5 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFromCollection.php | +5 | −0 | Go to diff View file |