stable

Clone or download

Read-only

feat: Validate selected special fields

Part of story #39003 Choose my own columns based on special fields Use can select on @project.name, @tracker.name and @pretty_title. Currently they are just validated, nothing is builded nor returned Note: For the grammar I choose to change the whole Metadata rule. There is the possibility to change it only for select but I choose simplicity of grammar. If user try to write a condition on @project.name it will be rejected at validation. *Testing:* In your XTS widget, select on those fields, No changes in API return should happens as nothing is done with them Change-Id: I49c18fc5a9bfb56626e6cf947d8db51772be97a9

Modified Files

Name
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/AllowedMetadata.php +19 −1 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryValidation/Metadata/MetadataChecker.php +2 −2 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryValidation/Metadata/MetadataUsageChecker.php +14 −0 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/ResultBuilder/Metadata/MetadataResultBuilder.php +5 −0 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/SelectBuilder/Metadata/MetadataSelectFromBuilder.php +5 −0 Go to diff View file
M plugins/crosstracker/tests/unit/CrossTracker/Report/Query/Advanced/QueryValidation/Metadata/MetadataUsageCheckerTest.php +59 −0 Go to diff View file
M plugins/crosstracker/tests/unit/CrossTracker/Report/Query/Advanced/ResultBuilder/Metadata/MetadataResultBuilderTest.php +54 −0 Go to diff View file
M plugins/crosstracker/tests/unit/CrossTracker/Report/Query/Advanced/SelectBuilder/Metadata/MetadataSelectFromBuilderTest.php +24 −0 Go to diff View file
M plugins/tracker/grammar/src/tql.pegjs +1 −1 Go to diff View file