kolibri icon indicating copy to clipboard operation
kolibri copied to clipboard

Clicking "Take me to new question" link on broken exercise shouldn't count as an attempt

Open nucleogenesis opened this issue 4 years ago • 3 comments

Observed behavior

While testing an issue with Coach notifications, the content I tried to test as a learner was broken - so I clicked the link it gave me to try a new question and it counted those questions against me as attempted, but failed, so the Coach sees that the user "Needs help" (which admittedly they might if the content is broken).

In any case - we should find an alternative way of handling this kind of issue and check for similar issues in Quizzes, which may be more impactful in a learning environment.

Context

release-v0.15.x branch

nucleogenesis avatar Aug 31 '22 14:08 nucleogenesis

Hey, I would like to work on this issue! Can You please assign it to me? @nucleogenesis

mistryiam avatar Mar 06 '23 15:03 mistryiam

A root cause for the "Needs help" part of this, from reading develop (deeec22):

  • _generate_interaction_summary (kolibri/core/logger/viewsets/progress_tracking.py:686-690) stores an error as {"type": "error"}, with no correct key.
  • _get_user_needs_help (kolibri/core/notifications/api.py:520-529) counts every entry in interaction_history where interaction.get("correct", 0) == 0 (line 526), and is_failed_attempt uses the same test (line 563). An error entry therefore counts as a failed answer.
  • Four such entries reach NEEDS_HELP_NOTIFICATION_THRESHOLD (4, line 32), which is the coach-visible "Needs help".

I ran the copied text of _get_user_needs_help, with the database query replaced by a list of attempts, in a plain Python process. A history of four {"type": "error"} entries returns True. No Kolibri module was imported.

A gate that skips only error entries in both places (for example interaction.get("type") != interaction_types.ERROR) would address this issue. Hint entries also have no correct key and are counted the same way, but counting them looks intentional (#4639, #4658), so that part is best left alone here.

shaurya416 avatar Sep 24 '26 13:09 shaurya416

Hi! 👋

Thanks so much for your interest! This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues. If there are no unassigned 'help wanted' issues available, please wait until new ones are added.

We really appreciate your willingness to help. 😊

Are you preparing for Google Summer of Code? See our GSoC guidelines.

learning-equality-bot avatar Sep 24 '26 13:09 learning-equality-bot