stable

Clone or download

Read-only

feat: Validate selected metadata

Part of story #38648 Choose my own columns based on semantics and always there fields User can select on same allowed metadata than for condition. Currently they are just validated, nothing is builded nor returned. *Testing:* In API explorer, Cross_Tracker_Reports -> GET /cross_tracker_reports/{id}/content You can select on all allowed semantics and always there fields. No changes in API return should happens as nothing is done with them. Change-Id: I4c7711518e58f5de930011221463524f16f6271d

Modified Files

Name
M plugins/crosstracker/include/CrossTracker/REST/v1/CrossTrackerReportsResource.php +26 −24 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidSearchableCollectorVisitor.php +2 −11 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidSelectablesCollectorVisitor.php +8 −1 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryValidation/Metadata/CheckMetadataUsage.php +5 −2 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryValidation/Metadata/MetadataChecker.php +24 −2 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryValidation/Metadata/MetadataUsageChecker.php +21 −27 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/ResultBuilderVisitor.php +1 −1 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/SelectBuilderVisitor.php +2 −1 Go to diff View file
M plugins/crosstracker/include/crosstrackerPlugin.php +21 −23 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Tests/Report/ArtifactReportFactoryInstantiator.php +21 −23 Go to diff View file
M plugins/crosstracker/tests/unit/CrossTracker/Report/Query/Advanced/InvalidSelectablesCollectionBuilderTest.php +27 −0 Go to diff View file
M plugins/crosstracker/tests/unit/CrossTracker/Report/Query/Advanced/QueryValidation/Metadata/MetadataUsageCheckerTest.php +14 −66 Go to diff View file
M plugins/crosstracker/tests/unit/CrossTracker/Tests/Stub/MetadataCheckerStub.php +4 −4 Go to diff View file