stable

Clone or download

Read-only

feat: XTS supports @id with = comparison

part of story #36812 search on artifact ids With this contribution, it is now possible to filter artifacts on their ids with the = comparison. Please note that, in order to be able to filter them on this metadata, the tracker needs to have an artifact id field, and the current user needs to have the read permission on the field, otherwise, an error message will be displayed. How to test: - Using the XTS widget, type 'id' in the editor, then press tab --> It is autocompleted to `@id` - type `@id = <artifact_id>` where the artifact you are looking for belongs one of the trackers of the current report, then submit. --> The artifact is found and is displayed (assuming you have the read permission, and your tracker has an aid field. Change-Id: Iefe7ac134d39efb4d59025128fc1536a07ab115e

Modified Files

Name
M plugins/crosstracker/include/CrossTracker/REST/v1/CrossTrackerReportsResource.php +3 −0 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/AllowedMetadata.php +2 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilder/Metadata/AlwaysThereField/ArtifactId/ArtifactIdFromWhereBuilder.php +101 −0 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilder/Metadata/MetadataFromWhereBuilder.php +9 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryValidation/ArtifactIdsValuesCollection.php +117 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryValidation/Comparison/ToAnyStringComparisonException.php +38 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryValidation/Comparison/ToEmptyStringComparisonException.php +38 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryValidation/Comparison/ToIntegerLesserThanOneException.php +38 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryValidation/InvalidComparisonToAnyStringFault.php +39 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryValidation/InvalidComparisonToEmptyStringFault.php +39 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryValidation/InvalidComparisonToIntegerLesserThanOneFault.php +40 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryValidation/Metadata/ArtifactIdIsMissingInAllTrackersException.php +37 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryValidation/Metadata/ArtifactIdMetadataChecker.php +91 −0 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryValidation/Metadata/CheckMetadataUsage.php +1 −0 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryValidation/Metadata/InvalidMetadataChecker.php +2 −0 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryValidation/Metadata/MetadataUsageChecker.php +15 −0 Go to diff View file
M plugins/crosstracker/include/crosstrackerPlugin.php +3 −0 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/po/fr_FR.po +3 −0 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/po/pt_BR.po +3 −0 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/writing-mode/QueryEditor.vue +5 −0 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/writing-mode/tql-configuration.ts +2 −0 Go to diff View file
M plugins/crosstracker/site-content/fr_FR/LC_MESSAGES/tuleap-crosstracker.po +20 −0 Go to diff View file
M plugins/crosstracker/site-content/pt_BR/LC_MESSAGES/tuleap-crosstracker.po +17 −0 Go to diff View file
A plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Metadata/ArtifactIdMetadataTest.php +145 −0 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Tests/Report/ArtifactReportFactoryInstantiator.php +3 −0 Go to diff View file
M plugins/crosstracker/tests/unit/CrossTracker/Report/Query/Advanced/InvalidTermCollectorVisitorTest.php +2 −0 Go to diff View file
A plugins/crosstracker/tests/unit/CrossTracker/Report/Query/Advanced/QueryValidation/ArtifactIdsValuesCollectionTest.php +96 −0 Go to diff View file
M plugins/tracker/tests/integration/Test/Builders/TrackerDatabaseBuilder.php +16 −0 Go to diff View file