stable

Clone or download

Read-only

Introduce =now()

This is a part of story #8859 TQL search on date & numeric fields To test: In /tuleap npm run build. You can now use the new function now() only for the operator = and date fields. Change-Id: I8867ae269af3f23b261f38e2f5f9a29771bbe0e5

Modified Files

Name
M plugins/tracker/grammar/tql.pegjs +43 −34 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/BetweenComparison.php +5 −5 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/BetweenValueWrapper.php +16 −11 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/CurrentDateTimeValueWrapper.php +46 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/EqualComparison.php +7 −7 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/GreaterThanComparison.php +7 −7 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/GreaterThanOrEqualComparison.php +7 −7 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/LesserThanComparison.php +7 −7 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/LesserThanOrEqualComparison.php +7 −7 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/NotEqualComparison.php +7 −7 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/SimpleValueWrapper.php +5 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/ValueWrapper.php +1 −0 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/ValueWrapperVisitor.php +29 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/BetweenComparisonVisitor.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/DateFieldChecker.php +27 −6 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/DateTimeFieldChecker.php +32 −10 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/FloatFieldBetweenValueChecker.php +27 −9 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/FloatFieldChecker.php +20 −2 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/IntegerFieldBetweenValueChecker.php +27 −15 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/IntegerFieldChecker.php +23 −5 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/QueryBuilder/BetweenComparison/ForFloat.php +2 −2 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/QueryBuilder/BetweenComparison/ForInteger.php +2 −2 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/QueryBuilder/EqualComparison/ForDate.php +20 −2 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/QueryBuilder/EqualComparison/ForDateTime.php +20 −2 Go to diff View file
M plugins/tracker/include/autoload.php +4 −2 Go to diff View file
M plugins/tracker/tests/Tracker/Report/Query/Advanced/InvalidFieldsCollectorVisitorTest.php +14 −2 Go to diff View file
M plugins/tracker/tests/Tracker/Report/Query/Advanced/QueryBuilderTest.php +14 −2 Go to diff View file