stable

Clone or download

Read-only

feat: Build static list field API return

Part of story #38310 Choose my own columns based on field name (lists) User can select on static list fields, the values of the field is returned. Note: - Renamed SQL select aliases to be more precise on which type of list we manipulate `<type>_list_<value|open>_$suffix` - In FieldResultBuilderTest, check for each tests that the result is correctly formed *Testing:* In plugins/crosstracker/scripts/cross-tracker/src/api/rest-querier.ts L80 change return_format to "selectable" and pnpm build In browser console If you select a static list field in you XTS widget, you should see this field values for each artifacts Change-Id: Iff0d3a950509c224655af06cbe564d5f981ae017

Modified Files

Name
M plugins/crosstracker/include/CrossTracker/REST/v1/CrossTrackerReportsResource.php +2 −0 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/ResultBuilder/Field/FieldResultBuilder.php +7 −5 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/ResultBuilder/Field/StaticList/StaticListRepresentation.php +44 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/ResultBuilder/Field/StaticList/StaticListResultBuilder.php +62 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/ResultBuilder/Field/StaticList/StaticListValueRepresentation.php +35 −0 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/SelectBuilder/Field/StaticList/StaticListSelectFromBuilder.php +4 −4 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/SelectBuilder/Field/UGroupList/UGroupListSelectFromBuilder.php +4 −4 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/SelectBuilder/Field/UserList/UserListSelectFromBuilder.php +3 −3 Go to diff View file
M plugins/crosstracker/include/crosstrackerPlugin.php +2 −0 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/StaticListSelectBuilderTest.php +45 −105 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/UGroupListSelectFromBuilderTest.php +4 −4 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/UserListSelectFromBuilderTest.php +4 −4 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Tests/Report/ArtifactReportFactoryInstantiator.php +2 −0 Go to diff View file
M plugins/crosstracker/tests/unit/CrossTracker/Report/Query/Advanced/ResultBuilder/Field/FieldResultBuilderTest.php +132 −36 Go to diff View file
D plugins/crosstracker/tests/unit/CrossTracker/Report/Query/Advanced/ResultBuilder/Field/NumericResultBuilderTest.php +0 −79 Go to diff View file
A plugins/crosstracker/tests/unit/CrossTracker/Report/Query/Advanced/ResultBuilder/Field/StaticListRepresentationTest.php +60 −0 Go to diff View file