kolibri icon indicating copy to clipboard operation
kolibri copied to clipboard

Fix list activity notifications

Open AlexVelezLl opened this issue 1 year ago • 1 comments

Summary

References

Reviewer guidance


Testing checklist

  • [ ] Contributor has fully tested the PR manually
  • [ ] If there are any front-end changes, before/after screenshots are included
  • [ ] Critical user journeys are covered by Gherkin stories
  • [ ] Critical and brittle code paths are covered by unit tests

PR process

  • [ ] PR has the correct target branch and milestone
  • [ ] PR has 'needs review' or 'work-in-progress' label
  • [ ] If PR is ready for review, a reviewer has been added. (Don't use 'Assignees')
  • [ ] If this is an important user-facing change, PR or related issue has a 'changelog' label
  • [ ] If this includes an internal dependency change, a link to the diff is provided

Reviewer checklist

  • Automated test coverage is satisfactory
  • PR is fully functional
  • PR has been tested for accessibility regressions
  • External dependency files were updated if necessary (yarn and pip)
  • Documentation is updated
  • Contributor is in AUTHORS.md

AlexVelezLl avatar Jul 01 '24 21:07 AlexVelezLl

Thank you @rtibbles! I have updated the PR :)

AlexVelezLl avatar Jul 18 '24 14:07 AlexVelezLl

Hi @AlexVelezLl @radinamatic - the only issue I was able to identify while testing this is the following error in the console, with seemingly no user facing consequences but I'm going to mention it to be on the safe side:

TypeError: Cannot read properties of undefined (reading 'correct')

2024-08-08_14-32-43

Logs: LogsAndDB.zip

Other than that everything else is working properly and I am seeing all of the notifications.

pcenov avatar Aug 08 '24 11:08 pcenov

Looking at the component in question, this looks like an attemptLog was somehow undefined? https://github.com/learningequality/kolibri/blob/develop/kolibri/core/assets/src/views/AttemptLogItem.vue#L83

This is probably not caused by the changes here - @AlexVelezLl if you feel like chasing this down, please do, otherwise we can file a follow up issue.

rtibbles avatar Aug 08 '24 14:08 rtibbles

Im gonna give a try @rtibbles. If it becomes something too big we can file a follow up issue :)

AlexVelezLl avatar Aug 08 '24 18:08 AlexVelezLl

I did a little research, and this issue is happening in the ExamReport page of exercise resources because in the AttemptLogList we iterate through the section.questions, but for a practice resource we dont have attemptLogs for every question, since we dont necessarily have attempted every question, so that why this attemptLog is undefined here https://github.com/AlexVelezLl/kolibri/blob/17ab6f78c8808dbd7ae2f40b49b9b16a1582fc03/kolibri/core/assets/src/views/AttemptLogList.vue#L135.

Im not sure what the order should be in the exercises attemptLog and how should it be iterated. So it will be better to file a new issue to solve Exam Reports of exercise resources @rtibbles @pcenov @radinamatic. image

AlexVelezLl avatar Aug 08 '24 19:08 AlexVelezLl

Thanks, @AlexVelezLl - seems like this is likely a regression from the EQM work.

rtibbles avatar Aug 08 '24 19:08 rtibbles