stable

Clone or download

Read-only

feat: Base structure to validate ORDER BY

Part of story #39685 Order artifact according to a field It disallow usage of ORDER BY for tracker report and default cross tracker report For expert cross tracker report it just tell it's not yet implemented *Testing:* In a tracker report or a default cross tracker report, you should get a syntax error. In an expert cross tracker report you should get an error 'Not implemented yet' Change-Id: Ib4b339fb59d8dfc7eddc4c938c81ac0e440c2400

Modified Files

Name
M plugins/crosstracker/include/CrossTracker/REST/v1/CrossTrackerReportsResource.php +7 −0 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/CrossTrackerArtifactReportFactory.php +7 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidOrderByBuilder.php +35 −0 Go to diff View file
M plugins/crosstracker/site-content/fr_FR/LC_MESSAGES/tuleap-crosstracker.po +4 −1 Go to diff View file
M plugins/crosstracker/site-content/pt_BR/LC_MESSAGES/tuleap-crosstracker.po +3 −0 Go to diff View file
A plugins/crosstracker/tests/unit/CrossTracker/Report/Query/Advanced/InvalidOrderByBuilderTest.php +39 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/ExpertQueryValidator.php +14 −4 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/IBuildInvalidOrderBy.php +30 −0 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidOrderBy.php +32 −0 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidOrderByBuilder.php +34 −0 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/OrderByIsInvalidException.php +41 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Tracker_Report.class.php +4 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Report/Query/Advanced/InvalidOrderByBuilderTest.php +39 −0 Go to diff View file