stable

Clone or download

Read-only

feat: Add base structure for FROM validation

Part of story #39330 Choose on which tracker I perform my query This structure will allow us to validate user requested FROM. *Testing:* - In simple TQL, you should never see the error as SELECT is checked before. If you force it to pass, then you should get a syntax error - In XTS, it should pass for anything as nothing is checked yet Change-Id: If26f04c03560a3889780e0af65488959d70611be

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/InvalidFromCollectionBuilder.php +35 −0 Go to diff View file
A plugins/crosstracker/tests/unit/CrossTracker/Report/Query/Advanced/InvalidFromCollectionBuilderTest.php +38 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/ExpertQueryValidator.php +31 −0 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/FromIsInvalidException.php +50 −0 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/IBuildInvalidFromCollection.php +30 −0 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFromCollection.php +39 −0 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFromCollectionBuilder.php +34 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Tracker_Report.class.php +2 −0 Go to diff View file
M plugins/tracker/site-content/fr_FR/LC_MESSAGES/tuleap-tracker.po +11 −0 Go to diff View file
M plugins/tracker/site-content/pt_BR/LC_MESSAGES/tuleap-tracker.po +7 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Report/Query/Advanced/InvalidFromCollectionBuilderTest.php +39 −0 Go to diff View file