stable

Clone or download

Read-only

feat: Expert mode in XTS widget

Part of story #39019 Switch mode in Cross tracker search widget CrossTracker search can now be done in simple mode with just the condition, or in expert mode with selection of columns *Testing:* In your XTS widget, you should have a switch when editing the query. By default it is unchecked. - Unchecked -> legacy query and display - Checked -> SELECT query and dynamic display Change-Id: Id42eb9e5b152c47f1bf8fa6062a66527466f7671

Modified Files

Name
M plugins/crosstracker/composer.json +2 −1 Go to diff View file
M plugins/crosstracker/db/install.sql +2 −1 Go to diff View file
A plugins/crosstracker/db/mysql/updates/2024/202408020857_add_column_expert_mode.php +44 −0 Go to diff View file
M plugins/crosstracker/include/CrossTracker/CrossTrackerReport.php +32 −35 Go to diff View file
M plugins/crosstracker/include/CrossTracker/CrossTrackerReportDao.php +5 −5 Go to diff View file
M plugins/crosstracker/include/CrossTracker/CrossTrackerReportFactory.php +7 −17 Go to diff View file
M plugins/crosstracker/include/CrossTracker/REST/v1/CrossTrackerReportRepresentation.php +13 −4 Go to diff View file
M plugins/crosstracker/include/CrossTracker/REST/v1/CrossTrackerReportsResource.php +29 −18 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/CSV/CSVExportController.php +0 −1 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/CrossTrackerArtifactReportFactory.php +15 −29 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/CrossTrackerWidget.test.ts +4 −3 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/CrossTrackerWidget.vue +8 −8 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/api/ArtifactsTableRetriever.test.ts +6 −1 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/api/ArtifactsTableRetriever.ts +6 −1 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/api/cross-tracker-rest-api-types.ts +1 −0 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/api/rest-querier.test.ts +6 −29 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/api/rest-querier.ts +6 −12 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/backend-cross-tracker-report.ts +10 −1 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/components/table/ArtifactTable.vue +4 −1 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/reading-mode/ReadingMode.test.ts +2 −2 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/reading-mode/ReadingMode.vue +11 −2 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/reading-mode/reading-cross-tracker-report.ts +4 −0 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/type.ts +1 −0 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/writing-mode/writing-cross-tracker-report.ts +3 −0 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/CrossTrackerFieldTestCase.php +0 −2 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/DuckTypedField/DateDuckTypedFieldTest.php +31 −1 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/DuckTypedField/DatetimeDuckTypedFieldTest.php +38 −1 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/DuckTypedField/NumericDuckTypedFieldTest.php +49 −25 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/DuckTypedField/OpenStaticListDuckTypedFieldTest.php +14 −1 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/DuckTypedField/OpenUGroupListDuckTypedFieldTest.php +15 −1 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/DuckTypedField/OpenUserListDuckTypedFieldTest.php +19 −1 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/DuckTypedField/StaticListDuckTypedFieldTest.php +18 −1 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/DuckTypedField/TextDuckTypedFieldTest.php +10 −1 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/DuckTypedField/UGroupListDuckTypedFieldTest.php +19 −1 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/DuckTypedField/UserListDuckTypedFieldTest.php +23 −1 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Metadata/ArtifactIdMetadataTest.php +43 −22 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Metadata/AssignedToMetadataTest.php +23 −1 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Metadata/DescriptionMetadataTest.php +9 −1 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Metadata/LastUpdateByMetadataTest.php +19 −1 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Metadata/LastUpdateDateMetadataTest.php +34 −1 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Metadata/StatusMetadataTest.php +7 −1 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Metadata/SubmittedByMetadataTest.php +19 −1 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Metadata/SubmittedOnMetadataTest.php +34 −1 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Metadata/TitleMetadataTest.php +9 −1 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/ArtifactIdSelectBuilderTest.php +2 −1 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/ArtifactSelectTest.php +2 −1 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/AssignedToSelectBuilderTest.php +2 −1 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/DateSelectBuilderTest.php +2 −1 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/DescriptionSelectBuilderTest.php +2 −1 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/LastUpdateBySelectBuilderTest.php +2 −1 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/LastUpdateDateSelectBuilderTest.php +2 −1 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/NumericSelectBuilderTest.php +2 −1 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/PrettyTitleSelectBuilderTest.php +2 −1 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/ProjectNameSelectBuilderTest.php +2 −1 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/StaticListSelectBuilderTest.php +2 −1 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/StatusSelectBuilderTest.php +2 −1 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/SubmittedBySelectBuilderTest.php +2 −1 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/SubmittedOnSelectBuilderTest.php +2 −1 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/TextSelectFromBuilderTest.php +2 −1 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/TitleSelectBuilderTest.php +2 −1 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/TrackerNameSelectBuilderTest.php +2 −1 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/UGroupListSelectFromBuilderTest.php +2 −1 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/UserListSelectFromBuilderTest.php +2 −1 Go to diff View file
M plugins/crosstracker/tests/rest/CrossTracker/CrossTrackerTest.php +36 −30 Go to diff View file
M plugins/crosstracker/tests/rest/CrossTracker/CrossTrackerTestExpertQueryTest.php +205 −391 Go to diff View file
M plugins/crosstracker/tests/rest/CrossTracker/CrossTrackerTestNonRegressionTrackerTest.php +28 −24 Go to diff View file
M plugins/crosstracker/tests/unit/CrossTracker/CrossTrackerReportFactoryTest.php +2 −2 Go to diff View file
M plugins/crosstracker/tests/unit/CrossTracker/CrossTrackerReportTest.php +4 −3 Go to diff View file
M plugins/crosstracker/tests/unit/CrossTracker/REST/v1/UserIsAllowedToSeeReportCheckerTest.php +2 −2 Go to diff View file
M plugins/crosstracker/tests/unit/CrossTracker/Report/SimilarField/SimilarFieldsMatcherTest.php +6 −5 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/ExpertQueryValidator.php +9 −1 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/Query.php +0 −19 Go to diff View file
M plugins/tracker/include/Tracker/Report/Tracker_Report.class.php +1 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Report/Query/Advanced/Grammar/ParserTest.php +1 −20 Go to diff View file