stable

Clone or download

Read-only

feat: Raise error only if semantic is missing in ALL trackers

Part of story #36833 search on semantics and always there fields even if not defined For duck typed fields, only one tracker need to have the field for the query to be valid. Behavior for metadata was not the same, this commit fix that. *Testing:* With 2 trackers - If all have the semantic (e.g. @status), query works - If only one have the semantic, query works - If none have the semantic, query doesn't work Change-Id: I80192e9d7f55924a72a638479e925ad3c2cbfa2b

Modified Files

Name
R plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryValidation/Metadata/SubmittedOnIsMissingInAtLeastOneTrackerException.php Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryValidation/Metadata/CheckMetadataUsage.php +8 −8 Go to diff View file
R plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryValidation/Metadata/TitleIsMissingInAtLeastOneTrackerException.php Go to diff View file
R plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryValidation/Metadata/StatusIsMissingInAtLeastOneTrackerException.php Go to diff View file
R plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryValidation/Metadata/LastUpdateByIsMissingInAtLeastOneTrackerException.php Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryValidation/Metadata/MetadataUsageChecker.php +76 −85 Go to diff View file
R plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryValidation/Metadata/LastUpdateDateIsMissingInAtLeastOneTrackerException.php Go to diff View file
R plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryValidation/Metadata/SubmittedByIsMissingInAtLeastOneTrackerException.php Go to diff View file
R plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryValidation/Metadata/AssignedToIsMissingInAtLeastOneTrackerException.php Go to diff View file
R plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryValidation/Metadata/DescriptionIsMissingInAtLeastOneTrackerException.php Go to diff View file
M plugins/crosstracker/site-content/fr_FR/LC_MESSAGES/tuleap-crosstracker.po +54 −135 Go to diff View file
M plugins/crosstracker/site-content/pt_BR/LC_MESSAGES/tuleap-crosstracker.po +34 −91 Go to diff View file
R plugins/crosstracker/tests/unit/CrossTracker/Report/Query/Advanced/InvalidSemantic/MetadataUsageCheckerTest.php Go to diff View file
M plugins/crosstracker/tests/unit/CrossTracker/Tests/Stub/MetadataCheckerStub.php +2 −2 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/dao/Tracker_Semantic_ContributorDao.class.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/dao/Tracker_Semantic_DescriptionDao.class.php +2 −2 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/dao/Tracker_Semantic_StatusDao.class.php +2 −2 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/dao/Tracker_Semantic_TitleDao.class.php +2 −2 Go to diff View file