stable

Clone or download

Read-only

Deal with < for @submitted_on

This is part of story #10704 define a query with date fields We can now use lesser than operator (<) in cross tracker search. It can only be used with @submitted_on. Usage with other metadata will raise an error. Currently, only date as string (e.g. "2018-02-22") is supported. NOW() will be introduced in a dedicated commit. If you search against empty value (@submitted_on < ''), then an error will be raised. Change-Id: I874a83c61cfcbe8025e3ea1c11a3ff657273d1de

Modified Files

Name
M plugins/crosstracker/include/CrossTracker/REST/v1/CrossTrackerReportsResource.php +9 −1 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidComparisonCollectorVisitor.php +13 −2 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidSemantic/GreaterOrLesserThanComparisonChecker.php +1 −1 Go to diff View file
R plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidSemantic/GreaterThanNotAllowedForMetadataException.php Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidSemantic/LesserThanComparisonChecker.php +26 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilder/Metadata/AlwaysThereField/SubmittedOn/LesserThanComparisonFromWhereBuilder.php +58 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilder/Metadata/LesserThanComparisonFromWhereBuilder.php +51 −0 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilderVisitor.php +15 −1 Go to diff View file
M plugins/crosstracker/include/autoload.php +6 −3 Go to diff View file
M plugins/crosstracker/site-content/fr_FR/LC_MESSAGES/tuleap-crosstracker.po +2 −2 Go to diff View file
M plugins/crosstracker/site-content/tuleap-crosstracker.pot +1 −1 Go to diff View file