Actions
Defect #41079
closedIncorrect sorting of users grouped by status in issue filters for administrators
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
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 Vladislav Moiseev 3 months 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 3 months 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 3 months ago
- Related to Feature #15201: Filter "Assignee" should contain locked users added
Updated by Go MAEDA 3 months 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 about 2 months ago
- Has duplicate Defect #33616: Assignee & Author Dropdown Sort added
Actions