stable

Clone or download

Read-only

Introduce @comment in TQL grammar

Part of story #9882: TQL in follow-up comments No functional change in the Web UI. When you parse a query like: field1_name = "f1" AND @comment = "" Then you should have a Field with name = 'f1' and Metadata with name = 'comment' in the tree. (see example by running test_parser.php in grammar directory). If you try to enter @comment in web ui, you will get an error. If you try to enter @summary in web ui, it will use the standard field summary (like if you entered 'summary = …'); will be fixed later to not clutter to much the review. Change-Id: I329a7635f9a6f367470d7e07bc5f4fa9bf642cac

Modified Files

Name
M plugins/tracker/grammar/test_parser.php +2 −1 Go to diff View file
M plugins/tracker/grammar/tql.pegjs +20 −10 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/BetweenComparison.php +2 −2 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/Comparison.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/EqualComparison.php +3 −3 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/Field.php +42 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/GreaterThanComparison.php +3 −3 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/GreaterThanOrEqualComparison.php +3 −3 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/InComparison.php +3 −3 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/LesserThanComparison.php +3 −3 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/LesserThanOrEqualComparison.php +3 −3 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/Metadata.php +42 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/NotEqualComparison.php +3 −3 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/NotInComparison.php +3 −3 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/Searchable.php +29 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFieldsCollectorVisitor.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/QueryBuilderVisitor.php +1 −1 Go to diff View file
M plugins/tracker/include/autoload.php +5 −2 Go to diff View file
M plugins/tracker/tests/Tracker/Report/Query/Advanced/Grammar/ParserTest.php +1 −1 Go to diff View file
M plugins/tracker/tests/Tracker/Report/Query/Advanced/InvalidFieldsCollectorVisitorTest.php +21 −20 Go to diff View file
M plugins/tracker/tests/Tracker/Report/Query/Advanced/QueryBuilder/EqualExpectation/ForTextTest.php +2 −1 Go to diff View file
M plugins/tracker/tests/Tracker/Report/Query/Advanced/QueryBuilderVisitorTest.php +18 −17 Go to diff View file
M plugins/tracker/tests/Tracker/Report/Query/Advanced/SizeValidatorTest.php +2 −1 Go to diff View file