stable
Clone or download
Read-only
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) operator - date > '2017-01-23' means date is later than 2017-01-23 00:00:00 - date > '2017-01-23 15:03' means date is later than 2017-01-23 15:03:00 - Comparisons should also work with now() - = (equal) comparisons should still work Change-Id: I364b6aaca65763030d765925aa8f6c9e6552d8f7
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/BetweenValueWrapper.php | +2 | −2 | Go to diff View file |
M | plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/CurrentDateTimeValueWrapper.php | +2 | −2 | Go to diff View file |
M | plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/SimpleValueWrapper.php | +2 | −2 | Go to diff View file |
M | plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/ValueWrapper.php | +1 | −1 | Go to diff View file |
A | plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/ValueWrapperParameters.php | +43 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/ValueWrapperVisitor.php | +3 | −3 | Go to diff View file |
M | plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/DateFieldChecker.php | +24 | −10 | Go to diff View file |
M | plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/DateTimeFieldChecker.php | +25 | −11 | Go to diff View file |
A | plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/DateToEmptyStringComparisonException.php | +80 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/EqualComparisonVisitor.php | +12 | −4 | Go to diff View file |
M | plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/FloatFieldBetweenValueChecker.php | +9 | −7 | Go to diff View file |
M | plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/FloatFieldChecker.php | +7 | −5 | Go to diff View file |
M | plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/GreaterThanComparisonVisitor.php | +14 | −3 | Go to diff View file |
M | plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/IntegerFieldBetweenValueChecker.php | +9 | −7 | Go to diff View file |
M | plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/IntegerFieldChecker.php | +7 | −5 | Go to diff View file |
A | plugins/tracker/include/Tracker/Report/Query/Advanced/QueryBuilder/DateTimeValueRounder.php | +91 | −0 | Go to diff View file |
D | plugins/tracker/include/Tracker/Report/Query/Advanced/QueryBuilder/EqualComparison/DateTimeConditionBuilder.php | +0 | −54 | Go to diff View file |
M | plugins/tracker/include/Tracker/Report/Query/Advanced/QueryBuilder/EqualComparison/ForDateTime.php | +28 | −10 | Go to diff View file |
M | plugins/tracker/include/Tracker/Report/Query/Advanced/QueryBuilder/EqualComparison/ForLastUpdateDate.php | +39 | −8 | Go to diff View file |
M | plugins/tracker/include/Tracker/Report/Query/Advanced/QueryBuilder/EqualComparison/ForSubmittedOn.php | +39 | −8 | Go to diff View file |
M | plugins/tracker/include/Tracker/Report/Query/Advanced/QueryBuilder/EqualComparisonVisitor.php | +5 | −8 | Go to diff View file |
R | plugins/tracker/include/Tracker/Report/Query/Advanced/QueryBuilder/EqualComparison/ForDate.php | Go to diff View file | ||
A | plugins/tracker/include/Tracker/Report/Query/Advanced/QueryBuilder/GreaterThanComparison/ForLastUpdateDate.php | +79 | −0 | Go to diff View file |
A | plugins/tracker/include/Tracker/Report/Query/Advanced/QueryBuilder/GreaterThanComparison/ForSubmittedOn.php | +79 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/Report/Query/Advanced/QueryBuilder/GreaterThanComparisonVisitor.php | +9 | −3 | Go to diff View file |
M | plugins/tracker/include/autoload.php | +8 | −4 | Go to diff View file |
M | plugins/tracker/site-content/fr_FR/LC_MESSAGES/tuleap-tracker.po | +38 | −2 | Go to diff View file |
M | plugins/tracker/site-content/tuleap-tracker.pot | +26 | −0 | Go to diff View file |
M | plugins/tracker/tests/Tracker/Report/Query/Advanced/InvalidFields/DateFieldCheckerTest.php | +19 | −13 | Go to diff View file |
M | plugins/tracker/tests/Tracker/Report/Query/Advanced/InvalidFields/DateTimeFieldCheckerTest.php | +20 | −12 | Go to diff View file |