Defect #41079
closedIncorrect sorting of users grouped by status in issue filters for administrators
0%
Description
In #15201 default sorting for filter options linked with principals (users) was changed.
And now principal options into issue query filters for system admins was broken.
Attached patch for current trunk is fixed this problem.
Files
Related issues
Updated by Go MAEDA about 1 year ago
I was unable to reproduce the issue you mentioned in my environment. The users in the dropdown are correctly sorted.
Could you please let me know how I can reproduce the problem?
Updated by Vladislav Moiseev about 1 year ago
- File 2024-07-31_16-29-40.png 2024-07-31_16-29-40.png added
- File users.csv users.csv added
- File 2024-07-31_16-33-00.png 2024-07-31_16-33-00.png added
To reproduce this behaviour I installed new redmine instance with default configuration (English).
Then I imported users from users.csv
(attached) using default wizard config like this:
Then I created new project, linked all active users and one locked ("ddd" in my case) as managers.
And.. filter sorting was broken:
Updated by Go MAEDA about 1 year ago
- Category set to Filters
- Status changed from New to Confirmed
Thank you for letting me know the steps to reproduce the issue.
I have confirmed the issue.
Updated by Go MAEDA about 1 year ago
- File test-41079.patch test-41079.patch added
- Target version set to Candidate for next minor release
I wrote a test to catch the wrong behavior.
$ bin/rails test test/unit/query_test.rb:3348 Run options: --seed 31819 # Running: F Failure: QueryTest#test_assigned_to_values_should_be_sorted_by_status_and_name [test/unit/query_test.rb:3360]: --- expected +++ actual @@ -1 +1 @@ -["000 000", "002 002", "004 004", "006 006", "008 008", "010 010", "012 012", "014 014", "016 016", "018 018", "001 001", "003 003", "005 005", "007 007", "009 009", "011 011", "013 013", "015 015", "017 017", "019 019"] +["018 018", "016 016", "014 014", "012 012", "010 010", "008 008", "006 006", "004 004", "002 002", "000 000", "007 007", "009 009", "005 005", "011 011", "013 013", "003 003", "015 015", "017 017", "001 001", "019 019"] bin/rails test test/unit/query_test.rb:3348
Updated by Go MAEDA about 1 year ago
- Target version changed from Candidate for next minor release to 5.0.10
Setting the target version to 5.0.10.
Updated by Go MAEDA about 1 year ago
- Related to Feature #15201: Filter "Assignee" should contain locked users added
Updated by Go MAEDA about 1 year ago
- Status changed from Confirmed to Resolved
- Assignee set to Go MAEDA
- Resolution set to Fixed
Committed the patch in r22947. Thank you.
Updated by Go MAEDA about 1 year ago
- Subject changed from Wrong principal sorting into issue filters for sys-admins to Incorrect sorting of users grouped by status in issue filters for administrators
- Status changed from Resolved to Closed
- Target version changed from 5.0.10 to 5.1.4
Merged the change to the 5.1-stable branch.
Updated by Go MAEDA 11 months ago
- Has duplicate Defect #33616: Assignee & Author Dropdown Sort added