stable

Clone or download

Read-only

Validate a query with title semantic and = comparison

This is part of story #10678 define a query for title and description semantics How to test: - build the cross-tracker widget - You should be able to enter a query like "@title = 'value'". - The query won't be run yet (a following commit). It will return an empty result - When you leave the query empty , it will run the current "default" query (All open artifacts) - Entering any other field, metadata or comparison will return an error with an appropriate message - The maximum query size is checked Change-Id: Id3879a80b0f18218a9155fdebbde6bc557da7748

Modified Files

Name
M plugins/crosstracker/include/CrossTracker/REST/v1/CrossTrackerArtifactReportFactory.php +53 −4 Go to diff View file
M plugins/crosstracker/include/CrossTracker/REST/v1/CrossTrackerReportsResource.php +54 −8 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/ExpertQueryValidator.php +88 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidComparisonCollectorParameters.php +41 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidComparisonCollectorVisitor.php +182 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidSearchableCollectorParameters.php +63 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidSearchableCollectorVisitor.php +66 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidSemantic/ICheckSemanticFieldForAComparison.php +28 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidSemantic/TitleSemantic/EqualComparisonChecker.php +100 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidSemantic/TitleSemantic/TitleToDateComparisonException.php +34 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidSemantic/TitleSemantic/TitleToFloatComparisonException.php +36 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidSemantic/TitleSemantic/TitleToIntComparisonException.php +36 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidSemantic/TitleSemantic/TitleToMyselfComparisonException.php +34 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidSemantic/TitleSemantic/TitleToNowComparisonException.php +34 −0 Go to diff View file
M plugins/crosstracker/include/autoload.php +14 −2 Go to diff View file
M plugins/crosstracker/site-content/fr_FR/LC_MESSAGES/tuleap-crosstracker.po +47 −0 Go to diff View file
M plugins/crosstracker/site-content/tuleap-crosstracker.pot +39 −0 Go to diff View file
M plugins/crosstracker/www/scripts/cross-tracker/src/app/query-result-controller.js +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/SearchablesAreInvalidException.php +1 −1 Go to diff View file
M src/common/REST/JsonDecoder.class.php +5 −4 Go to diff View file