Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Answers sometimes duplicated/missing with answer shuffling enabled? #829

Closed
schu opened this issue Apr 22, 2024 · 0 comments · Fixed by #880
Closed

Answers sometimes duplicated/missing with answer shuffling enabled? #829

schu opened this issue Apr 22, 2024 · 0 comments · Fixed by #880
Assignees
Labels
bug Something isn't working p1

Comments

@schu
Copy link
Member

schu commented Apr 22, 2024

A user with answer shuffling enabled reported a bug where they were shown duplicate answer texts while other answers were missing. Instead of

A Answer text 3
B Answer text 1
C Answer text 4
D Answer text 5
E Answer text 2

they got to see something like

A Answer text 3
B Answer text 1
C Answer text 4
D Answer text 3
E Answer text 1

i.e. two answer texts were duplicated and two answer texts missing.

To be investigated.

@schu schu added bug Something isn't working p1 labels Apr 22, 2024
@schu schu removed the needs triage label Apr 22, 2024
schu added a commit that referenced this issue May 27, 2024
With answer shuffling enabled, OMC sometimes shows the same answer twice
for mc questions while other answers are missing. I haven't found a way
to reproduce the issue, test code can be found here[1]. Input welcome.

For the time being, use a key expression[2] for the
`{#each question.answers ...}` block in an
attempt to fix the issue.

Resolves #829

[1] https://svelte.dev/repl/65f4ea71adaa4c6bb332fb2f9e23a805?version=4.2.17

[2] https://svelte.dev/docs/logic-blocks#each
schu added a commit that referenced this issue May 27, 2024
With answer shuffling enabled, OMC sometimes shows the same answer twice
for mc questions while other answers are missing. I haven't found a way
to reproduce the issue, test code can be found here[1]. Input welcome.

For the time being, use a key expression[2] for the
`{#each question.answers ...}` block in an attempt to fix the issue.

Resolves #829

[1] https://svelte.dev/repl/65f4ea71adaa4c6bb332fb2f9e23a805?version=4.2.17

[2] https://svelte.dev/docs/logic-blocks#each
@schu schu self-assigned this May 27, 2024
@schu schu closed this as completed in #880 Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working p1
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant