answer marked correct but score not recorded as 1

Aperta
#2,720 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
22/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
perl
Ambito
backend, database

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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?

Lingua principale
Perl
Stelle
164
Fork
167
Merge medio
6g 7h
PR unite (30g)
27

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di openwebwork/webwork2

Tutte le issue di openwebwork/webwork2

Issue simili

Altre issue su Perl

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.