Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

feat: extra settings for ranking question type

Đang mở
#3,378 14 bình luận 3 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
55/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript
Lĩnh vực
full-stack

Hướng nghiên cứu

Bắt đầu bằng cách truy vết loại câu hỏi ranking và cách xử lý hiện có của optionsLimitMax/optionsLimitMin đối với các câu hỏi multiple. Sau đó, xác định phần tính Borda count và tìm hiểu cách các lựa chọn được gửi lên được đếm. Công việc được xem là hoàn tất khi ranking chấp nhận số lượng lựa chọn tối thiểu và tối đa đã cấu hình, đồng thời việc tính điểm Borda sử dụng số lượng lựa chọn đã gửi; hãy thêm hoặc cập nhật các kiểm thử liên quan nếu dự án có chúng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

0. Needs triage enhancement

Nextcloud:

  • Nextcloud-Version: N/A
  • Forms-Version: 5.3.0-alpha.0

Is your feature request related to a problem? Please describe.
I am regularly holding a vote through Nextcloud Forms where users have to rank a subset from a list of options. The results are then weighted using a Borda count. (n points for the first/top choice, 1 point for the last/lowest choice)

Describe the solution you'd like
The new ranking question type is great and almost exactly what I need. The only problem is, that it forces the user to rank all available options. There already exists the extra setting optionsLimitMax for the multiple question type, so could that be implemented for the ranking as well? (and optionsLimitMin should probably be implemented alongside it)
The Borda count code would have to be modified as well to be based on the amount of actually submitted options instead of all available options.

Describe alternatives you've considered
I am currently working around this limitation by using multiple dropdown inputs (one for each choice), exporting the submissions as CSV and pipe them through some python code to sort out potential duplicates and do the actual weighted counting.

Additional context
#1278
#3262
@datapumpernickel would you be willing to work on this or should someone else take a look at it?

Ngôn ngữ chính
JavaScript
Star
384
Fork
130
Merge trung bình
18 giờ 7 phút
Pull request đã merge (30 ngày)
70

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của nextcloud/forms

Tất cả issue của nextcloud/forms

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.