stable

Clone or download

Read-only

Introduce greater than or equal operator for date fields

This is a part of story #8859: TQL search on date & numeric fields To test: - You should now be able to compare date / datetime /submitted_on / last_updated_on fields using the >= (greater than or equal) operator - date >= '2017-01-24' means date is later than 2017-01-24 00:00:00 - date >= '2017-01-24 17:16' means date is later than 2017-01-23 17:16:00 - Comparisons should also work with now() + time periods Change-Id: Ib2ea91e1d0cd7cda34b94499a4edfa3e366d2da1

Modified Files

Name
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/GreaterThanOrEqualComparisonVisitor.php +14 −3 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/QueryBuilder/GreaterThanOrEqualComparison/ForDateTime.php +96 −0 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/QueryBuilder/GreaterThanOrEqualComparison/ForLastUpdateDate.php +79 −0 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/QueryBuilder/GreaterThanOrEqualComparison/ForSubmittedOn.php +79 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/QueryBuilder/GreaterThanOrEqualComparisonVisitor.php +9 −3 Go to diff View file
M plugins/tracker/include/autoload.php +5 −2 Go to diff View file
A plugins/tracker/tests/Tracker/Report/Query/Advanced/QueryBuilder/DateTimeValueRounderTest.php +101 −0 Go to diff View file