Keep terms linked to the answer out of a question's wrong answers #22
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/quiz-linked-answers"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A player was marked wrong for a right answer. The question was:
The options were gVisor, OpenBao, Vault and cert-manager. The example is from Vault's card, but the glossary itself says OpenBao is Vault's API-compatible fork (
openbao fork-of vault), so OpenBao was just as right.Cause
Wrong answers were picked from similar terms, excluding only terms that share a name or
distinguisheach other. With the name blanked out, an example or a summary can fit a fork, an alternative or a managed version of the answer as well as the answer itself.Fix
Questions that show a text and ask for the term ("this example", "described here") no longer offer as a wrong answer any term the glossary links to the right one, by any edge. "What is X?" questions are unchanged, since each option there is a summary that describes only its own term.
Tests
TestEveryQuestionnow checks the rule across every term. With the new condition switched off, it finds 466 such questions across its seeds, including Argo CD as a wrong answer to an example of Flux.TestNoLinkedWrongAnswerscovers the reported case.A daily round already dealt keeps its stored questions. The fix applies to rounds dealt after this is deployed.
This change was first pushed to #21 after it had been merged, so it never reached
dev.