stable

Clone or download

Read-only

Reject query when one tracker does not use a semantic

Part of story #10678 define a query for title and description semantics If you use @title (resp. @description) in your query and one of the trackers does not have the title (resp. description) semantic, then an error message is displayed to the end user. If you use multiple @title (or @description) in the query, then the error message is not duplicated. Change-Id: I8d3e2c4ca8528eeda4cda6ff25e9d5307a9bb1aa

Modified Files

Name
M plugins/crosstracker/include/CrossTracker/REST/v1/CrossTrackerArtifactReportFactory.php +3 −3 Go to diff View file
M plugins/crosstracker/include/CrossTracker/REST/v1/CrossTrackerReportsResource.php +6 −1 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidComparisonCollectorParameters.php +57 −0 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidComparisonCollectorVisitor.php +4 −5 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidSearchableCollectorParameters.php +0 −1 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidSearchableCollectorVisitor.php +8 −3 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidSearchablesCollectionBuilder.php +59 −0 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidSemantic/ComparisonChecker.php +14 −1 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidSemantic/DescriptionIsMissingInAtLeastOneTrackerException.php +41 −0 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidSemantic/ICheckSemanticFieldForAComparison.php +3 −2 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidSemantic/SemanticUsageChecker.php +97 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidSemantic/TitleIsMissingInAtLeastOneTrackerException.php +41 −0 Go to diff View file
M plugins/crosstracker/include/autoload.php +7 −2 Go to diff View file
M plugins/crosstracker/site-content/fr_FR/LC_MESSAGES/tuleap-crosstracker.po +47 −11 Go to diff View file
M plugins/crosstracker/site-content/tuleap-crosstracker.pot +29 −5 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/ExpertQueryValidator.php +2 −2 Go to diff View file
R plugins/tracker/include/Tracker/Report/Query/Advanced/ICollectErrorsForInvalidComparisons.php Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidComparisonCollectorVisitor.php +1 −4 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidSearchablesCollectionBuilder.php +6 −4 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/dao/Tracker_Semantic_DescriptionDao.class.php +17 −1 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/dao/Tracker_Semantic_TitleDao.class.php +20 −5 Go to diff View file
M plugins/tracker/include/autoload.php +3 −3 Go to diff View file