stable

Clone or download

Read-only

Introduce > for @submitted_on

This is part of story #10704 define a query with date fields We can now use greater 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: Ibb027d9a5e861ec796a39f26b8457bf2beec8ddc

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/ComparisonChecker.php +0 −1 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidSemantic/DateToEmptyStringComparisonException.php +35 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidSemantic/DateToStringComparisonException.php +36 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidSemantic/GreaterThanComparisonChecker.php +61 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidSemantic/GreaterThanNotAllowedForMetadataException.php +35 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilder/Metadata/AlwaysThereField/SubmittedOn/GreaterThanComparisonFromWhereBuilder.php +58 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilder/Metadata/GreaterThanComparisonFromWhereBuilder.php +51 −0 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilderVisitor.php +18 −4 Go to diff View file
M plugins/crosstracker/include/autoload.php +8 −2 Go to diff View file
M plugins/crosstracker/site-content/fr_FR/LC_MESSAGES/tuleap-crosstracker.po +14 −0 Go to diff View file
M plugins/crosstracker/site-content/tuleap-crosstracker.pot +12 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/Date/DateFieldChecker.php +14 −2 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/Date/DateFormatValidator.php +6 −5 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/Date/DateToEmptyStringException.php +25 −0 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/Date/DateToStringException.php +25 −0 Go to diff View file
M plugins/tracker/include/autoload.php +4 −2 Go to diff View file