Duplicate usernames in combo-box when filtering patches by delegate
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 52/100
Hướng nghiên cứu
Bắt đầu trong patchwork/filters.py, tại DelegateFilter quanh dòng 458, và kiểm tra _get_delegate_qs cho truy vấn delegate theo phạm vi dự án. Xác minh cách form nhận project hiện tại. Hoàn thành khi combo-box liệt kê mỗi maintainer của project được chọn đúng một lần và loại trừ các maintainer của những project khác.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
The combo-box with the list of delegates to filter by has duplicate usernames. It lists a maintainer more than once if he/she maintains multiple projects. It also lists maintainers of other projects who don't maintain the one I'm filtering patches in.
This happens because DelegateFilter's form doesn't filter by project:
https://github.com/getpatchwork/patchwork/blame/bdb049c7939b7cdea1eddf029a0bc47cb338da67/patchwork/filters.py#L458
delegates = User.objects.filter(
profile__maintainer_projects__isnull=False)
Eliminating duplicate rows by using distinct() works, but we still have the issue of different project maintainers being listed in the same list:
delegates = User.objects.filter(
profile__maintainer_projects__isnull=False).distinct()
Maybe we should use _get_delegate_qs instead?
- Ngôn ngữ chính
- Python
- Star
- 317
- Fork
- 91
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của getpatchwork/patchwork
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
getpatchwork/patchwork#668 ·
-
bug web-ui
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
getpatchwork/patchwork#546 · 2 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
getpatchwork/patchwork#664 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
getpatchwork/patchwork#663 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
getpatchwork/patchwork#645 ·
Tất cả issue của getpatchwork/patchwork
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
learningequality/ricecooker#747 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
run-llama/llama_index#23199 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
KhronosGroup/glTF-Blender-IO#2769 ·