stable

Clone or download

Read-only

feat: Introduce WITH PARENT

You can search artifacts that have a parent in TQL. For now Cross Tracker does not support WITH PARENT. Since WITH PARENT is not a comparison (it does not have a "searchable" or a "value wrapper") the ComparisonVisitor is moved to TermVisitor. Part of story #32281: Search artifacts with/without parents via TQL Change-Id: Ief0392de616aed6b3a559aa804e401ab684c9e26

Modified Files

Name
M plugins/crosstracker/include/CrossTracker/REST/v1/CrossTrackerReportsResource.php +3 −3 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/CrossTrackerArtifactReportFactory.php +3 −3 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidSearchablesCollectionBuilder.php +2 −2 Go to diff View file
R plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidComparisonCollectorVisitor.php Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilderVisitor.php +11 −5 Go to diff View file
M plugins/crosstracker/include/crosstrackerPlugin.php +2 −2 Go to diff View file
M plugins/crosstracker/site-content/fr_FR/LC_MESSAGES/tuleap-crosstracker.po +4 −1 Go to diff View file
M plugins/crosstracker/site-content/pt_BR/LC_MESSAGES/tuleap-crosstracker.po +3 −0 Go to diff View file
M plugins/tracker/grammar/src/tql.pegjs +12 −0 Go to diff View file
M plugins/tracker/grammar/test_parser.php +3 −3 Go to diff View file
M plugins/tracker/include/REST/v1/TrackersResource.class.php +2 −2 Go to diff View file
M plugins/tracker/include/Tracker/Report/ExpertModePresenter.class.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/AndExpression.php +2 −2 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/AndOperand.php +2 −2 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 −10 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/EqualComparison.php +2 −2 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/GreaterThanComparison.php +2 −2 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/GreaterThanOrEqualComparison.php +2 −2 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/InComparison.php +2 −2 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/LesserThanComparison.php +2 −2 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/LesserThanOrEqualComparison.php +2 −2 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/NotEqualComparison.php +2 −2 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/NotInComparison.php +2 −2 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/OrExpression.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/Term.php +10 −0 Go to diff View file
R plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/ComparisonVisitor.php Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/WithParent.php +34 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/Date/DateFieldChecker.php +1 −1 Go to diff View file
R plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/Date/DateToEmptyStringComparisonException.php Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/FloatFields/FloatFieldChecker.php +1 −1 Go to diff View file
R plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/FloatFields/FloatToEmptyStringComparisonException.php Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/Integer/IntegerFieldChecker.php +1 −1 Go to diff View file
R plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/Integer/IntegerToEmptyStringComparisonException.php Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/ListFields/ListFieldChecker.php +1 −1 Go to diff View file
R plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/ListFields/ListToEmptyStringComparisonException.php Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidSearchablesCollectionBuilder.php +2 −2 Go to diff View file
R plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidComparisonCollectorVisitor.php Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/QueryBuilderVisitor.php +26 −5 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/SizeValidatorVisitor.php +11 −5 Go to diff View file
M plugins/tracker/include/Tracker/Report/Tracker_Report.class.php +3 −3 Go to diff View file
M plugins/tracker/scripts/lib/TQL-CodeMirror/src/configuration.ts +3 −2 Go to diff View file
M plugins/tracker/site-content/fr_FR/LC_MESSAGES/tuleap-tracker.po +4 −4 Go to diff View file
M plugins/tracker/site-content/pt_BR/LC_MESSAGES/tuleap-tracker.po +2 −2 Go to diff View file
M plugins/tracker/tests/rest/TQL/TQLTest.php +1 −0 Go to diff View file
M plugins/tracker/tests/rest/_fixtures/tql/project.xml +9 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Report/Query/Advanced/InvalidFields/DateFieldCheckerTest.php +2 −2 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Report/Query/Advanced/InvalidFields/DateTimeFieldCheckerTest.php +2 −2 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Report/Query/Advanced/InvalidSearchablesCollectorVisitorTest.php +6 −6 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Report/Query/Advanced/QueryBuilderVisitorTest.php +4 −4 Go to diff View file