stable

Clone or download

Read-only

Date, submitted_on and last_update_on fields are supported

This is part of story #8859: TQL search on date & numeric fields How to test this: - You can now search artifacts using fields of type date, date with time displayed, submitted_on and last_update_on. - For date fields WITHOUT time displayed, only date_field = 'YYYY-MM-DD' is allowed - For datetime fields, date_field = 'YYYY-MM-DD' will match on the day regardless of the hour/minute - date_field = 'YYYY-MM-DD HH:mm' will match on the minute (seconds are not taken into account) Change-Id: Ie0b0cbe7d9bee3d40623d0d092e9d56d36eae4c8

Modified Files

Name
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElementFactory.class.php +5 −1 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/DateFieldChecker.php +39 −0 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/DateTimeFieldChecker.php +44 −0 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/DateToStringComparisonException.php +36 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/EqualComparisonVisitor.php +6 −3 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/QueryBuilder/EqualComparison/DateTimeConditionBuilder.php +54 −0 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/QueryBuilder/EqualComparison/ForDate.php +66 −0 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/QueryBuilder/EqualComparison/ForDateTime.php +66 −0 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/QueryBuilder/EqualComparison/ForLastUpdateDate.php +54 −0 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/QueryBuilder/EqualComparison/ForSubmittedOn.php +54 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/QueryBuilder/EqualComparisonVisitor.php +12 −3 Go to diff View file
M plugins/tracker/include/autoload.php +10 −2 Go to diff View file
M plugins/tracker/site-content/fr_FR/LC_MESSAGES/tuleap-tracker.po +8 −5 Go to diff View file
M plugins/tracker/site-content/tuleap-tracker.pot +4 −0 Go to diff View file
M plugins/tracker/tests/Tracker/Report/Query/Advanced/InvalidFieldsCollectorVisitorTest.php +28 −0 Go to diff View file
M plugins/tracker/tests/Tracker/Report/Query/Advanced/QueryBuilderTest.php +12 −0 Go to diff View file