stable

Clone or download

Read-only

refactor: Backed enum for direction

part of request #40099 Cross-Tracker search finishing touches 16.1 No functional change expected in Cross-tracker search expert mode TQL. Why? Instead of repeating the same match expression, we use a string-backed enum for the sort direction. It also makes the parameters stricter (enum instead of any string). Change-Id: I91458108b1ebd027f8cb40797efc1f0ee0e8501f

Modified Files

Name
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/OrderByBuilder/Field/Date/DateFromOrderBuilder.php +3 −2 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/OrderByBuilder/Field/FieldFromOrderBuilder.php +6 −11 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/OrderByBuilder/Field/Numeric/NumericFromOrderBuilder.php +3 −2 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/OrderByBuilder/Field/StaticList/StaticListFromOrderBuilder.php +8 −3 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/OrderByBuilder/Field/Text/TextFromOrderBuilder.php +8 −3 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/OrderByBuilder/Field/UGroupList/UGroupListFromOrderBuilder.php +4 −3 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/OrderByBuilder/Field/UserList/UserListFromOrderBuilder.php +4 −3 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/OrderByBuilder/Field/UserList/UserOrderByBuilder.php +3 −2 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/OrderByBuilder/Metadata/MetadataFromOrderBuilder.php +10 −14 Go to diff View file
M plugins/crosstracker/tests/unit/CrossTracker/Report/Query/Advanced/OrderByBuilder/Field/UserList/UserOrderByBuilderTest.php +6 −5 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/Grammar/OrderByDirection.php +3 −3 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Report/Query/Advanced/InvalidOrderByBuilderTest.php +1 −1 Go to diff View file