stable

Clone or download

Read-only

feat: Build SQL for ORDER BY user list field

Part of story #39685 Order artifact according to a field user list fields are now handled for ORDER BY Sort is done on displayed value and so is impacted by user preference on username display *Testing:* Have multiple artifacts from trackers with a user list field (one value). You should be able to sort on this field Change-Id: I861998ee123780c6e83f8929c50faf921a81713c

Modified Files

Name
M plugins/crosstracker/include/CrossTracker/REST/v1/CrossTrackerReportsResource.php +8 −0 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/OrderByBuilder/Field/FieldFromOrderBuilder.php +3 −1 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/OrderByBuilder/Field/UserList/UserListFromOrderBuilder.php +61 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/OrderByBuilder/Field/UserList/UserOrderByBuilder.php +49 −0 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/OrderByBuilder/Metadata/MetadataFromOrderBuilder.php +26 −3 Go to diff View file
M plugins/crosstracker/include/crosstrackerPlugin.php +8 −0 Go to diff View file
A plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/OrderBy/AssignedToOrderByBuilderTest.php +159 −0 Go to diff View file
A plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/OrderBy/LastUpdateByOrderByBuilderTest.php +125 −0 Go to diff View file
A plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/OrderBy/SubmittedByOrderByBuilderTest.php +125 −0 Go to diff View file
A plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/OrderBy/UserListOrderByBuilderTest.php +156 −0 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Tests/Report/ArtifactReportFactoryInstantiator.php +8 −0 Go to diff View file
A plugins/crosstracker/tests/unit/CrossTracker/Report/Query/Advanced/OrderByBuilder/Field/UserList/UserOrderByBuilderTest.php +86 −0 Go to diff View file