Problem renumbering after assigning a set

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

Maintainer thường phản hồi trong vòng 4 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
25/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
perl
Lĩnh vực
database

Hướng nghiên cứu

The bug sits in the renumbering path that rewrites the problem_user table, which the reporter says left the QUIZ_NAME,v1 rows with stale problem_id values. Start by finding where problems are renumbered and how set versions are stored in the problem_user database, and reproduce by renumbering a 10-problem set after it has been assigned. Done means the versioned rows stay aligned with the renumbered problems and results show all 10 problems.

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

Mô tả

A colleague of mine did the following:

  1. Created a Gateway Quiz with 10 problems.
  2. Assigned it to his students.
  3. Noticed that the numbers were not sequential, so renumbered and saved. (Note: this order is important)
  4. After taking the quiz, neither him nor the students could see the results. There was an error about certain problems not assigned to the student. Additionally, the score was listed out of 7 (instead of the 10 problems assigned).

I tracked down the problem in the problem_user database, the lines with set_id with QUIZ_NAME,v1 versions had the originalproblem_ids and the QUIZ_NAME were the new ones and those aligned for 7 of the 10. I fixed this my manually reassigning all of the misaligned problem_ids.

Although I haven't dug into the code, I think the renumbering just didn't update the QUIZ_NAME,v1 lines in the DB. Although this is quite an edge case (may not have happened before), I'm noting this for a possible fix.

Ngôn ngữ chính
Perl
Star
164
Fork
167
Merge trung bình
6 ngày 7 giờ
Pull request đã merge (30 ngày)
27

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

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

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 openwebwork/webwork2

Tất cả issue của openwebwork/webwork2

Issue tương tự

Thêm issue về Perl

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.