stable

Clone or download

Read-only

Parse AND/OR queries

This is a part of story #8858 query tracker with expressions To test: Expert queries with only AND, OR operators (one or several) should return the correct result. Change-Id: Ibad537898235f624c45803fae3e2cf2b46de7bcc

Modified Files

Name
M plugins/tracker/grammar/test_parser.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_Text.class.php +15 −7 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/AndExpression.php +9 −4 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/AndOperand.php +18 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/Comparison.php +6 −8 Go to diff View file
R plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/FieldIsNotSupported.php Go to diff View file
R plugins/tracker/tests/Tracker/Report/Query/Advanced/Grammar/OrExpressionTest.php Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/OrExpression.php +9 −4 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/OrOperand.php +18 −0 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/QueryBuilder.php +113 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/Validator.php +34 −3 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/Visitor.php +36 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Tracker_Report.class.php +22 −9 Go to diff View file
M plugins/tracker/include/autoload.php +6 −3 Go to diff View file
M plugins/tracker/site-content/en_US/tracker.tab +1 −1 Go to diff View file
M plugins/tracker/site-content/fr_FR/tracker.tab +1 −1 Go to diff View file
A plugins/tracker/tests/Tracker/Report/Query/Advanced/Grammar/QueryBuilderTest.php +201 −0 Go to diff View file
M plugins/tracker/tests/Tracker/Report/Query/Advanced/Grammar/ValidatorTest.php +104 −3 Go to diff View file