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 greater than or equal 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: I31877ca3c578a1a398173299fd0b3a9587d4b4b9

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 +18 −7 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidSemantic/DateToEmptyStringComparisonException.php +4 −3 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidSemantic/GreaterThanComparisonChecker.php +3 −1 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidSemantic/GreaterThanOrEqualComparisonChecker.php +26 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilder/Metadata/AlwaysThereField/SubmittedOn/GreaterThanOrEqualComparisonFromWhereBuilder.php +58 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilder/Metadata/GreaterThanOrEqualComparisonFromWhereBuilder.php +30 −0 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilderVisitor.php +20 −5 Go to diff View file
M plugins/crosstracker/include/autoload.php +5 −2 Go to diff View file
M plugins/crosstracker/site-content/fr_FR/LC_MESSAGES/tuleap-crosstracker.po +2 −4 Go to diff View file
M plugins/crosstracker/site-content/tuleap-crosstracker.pot +1 −1 Go to diff View file