Problem renumbering after assigning a set

オープン
#1,513 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 4 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
perl
領域
database

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Perl
スター
164
フォーク
167
平均マージ
6日 7時間
マージ済み PR(30日)
27

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

openwebwork/webwork2 のほかの issue

openwebwork/webwork2 の issue をすべて見る

似ている issue

Perl の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。