stable
Clone or download
Read-only
Part of story #38263 Choose my own columns based on field name (numeric, text, dates) Class Query is a wrapper for TQL Query which contains both the condition and the list of selected fields. As before we only have the condition, this class was not necessary, but with the addition of the SELECT we need it (and also in the future with FROM and ORDER BY) *Testing:* You can write tql queries as before. - If you try to use select it should returns a syntax error - Set the feature flag `feature_flag_enable_tql_select` to 1, you should be able to use the select syntax Change-Id: Ib97bac9b827a914bbf18d247b60f237b546789c7
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/crosstracker/include/CrossTracker/Report/CrossTrackerArtifactReportFactory.php | +3 | −2 | Go to diff View file |
M | plugins/tracker/grammar/src/tql.pegjs | +25 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/Report/Query/Advanced/ExpertQueryValidator.php | +6 | −6 | Go to diff View file |
M | plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/Field.php | +4 | −2 | Go to diff View file |
M | plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/Metadata.php | +4 | −5 | Go to diff View file |
A | plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/Query.php | +64 | −0 | Go to diff View file |
A | plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/Selectable.php | +27 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/Report/Query/Advanced/ParserCacheProxy.php | +10 | −4 | Go to diff View file |
M | plugins/tracker/include/Tracker/Report/Tracker_Report.class.php | +4 | −3 | Go to diff View file |
M | plugins/tracker/include/trackerPlugin.php | +1 | −0 | Go to diff View file |
M | plugins/tracker/tests/unit/Tracker/Report/Query/Advanced/Grammar/ParserTest.php | +70 | −18 | Go to diff View file |