answer marked correct but score not recorded as 1

Đang mở
#2,720 3 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
22/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
perl
Lĩnh vực
backend, database

Hướng nghiên cứu

The payload names no files, so start by reproducing it: create a one-answer problem, submit a wrong answer and then the correct one, and compare the feedback with the stored problem score. Find where the score is written after a correct answer and why it stays at 0 when the feedback says correct. Done when the recorded score and the displayed overall score both reflect the latest correct submission.

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

Mô tả

The following took place on my production server which is pretty close to the current tip of develop, plus a few customizations that I would think are irrelevant.

A student had a question in an assignment that was (still is) open. There is just one answer blank. They submitted an incorrect answer. Then on their second try, they submitted the correct answer. The feedback confirms that the answer is correct: there is a green check mark and the alert at the top of the page says "The answer is correct.". However the score was not recorded as 1 in the database. They still had 0 for their score and the bottom of the page included the messages "You have attempted this problem 2 times." and "Your overall recorded score is 0%." Returning to the question, it's the same as PG reassesses the most recent answer as correct. (Still the green check box and still those same messages.)

Perhaps I should have explored things more before taking action, but I enabled permissions so I could submit on their behalf, and I submitted their answer as it was. And that was accepted and changed their score to 100%. Now with the official record of three submissions.

What might explain this? Some failure of the database to record the score?

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.