stable

Clone or download

Read-only

feat: Add TQL grammar for ORDER BY

Part of story #39685 Order artifact according to a field In expert mode, you can write your query with an order condition at the end. Grammar accept this syntax: ORDER BY (field|metadata) (ASC|ASCENDING|DESC|DESCENDING) *Testing:* For now, you can write your query, parser accept it, but validation will throw a syntax error Change-Id: I71b60b8e3072797dbffbf1bf2de9c5b49be94934

Modified Files

Name
M plugins/tracker/grammar/src/tql.pegjs +12 −3 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/ExpertQueryValidator.php +13 −0 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/OrderBy.php +42 −0 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/OrderByDirection.php +29 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/Query.php +6 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Report/Query/Advanced/Grammar/ParserTest.php +63 −3 Go to diff View file