-
Notifications
You must be signed in to change notification settings - Fork 745
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
Exam report: Avoid loading on question change #12082
Exam report: Avoid loading on question change #12082
Conversation
Build Artifacts
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code read through makes sense to me, @AlexVelezLl - thanks for working on this. I also did a quick manual QA which checks out but I'll defer to @radinamatic and @pcenov for the final QA team approval.
My main thing that I'm still wondering is where exactly this regression came from, as this file hasn't been changed in years. My guess is that it was related to some of the other pretty significant loading state refactor work that went in to 0.16, and it's definitely possible that we just didn't notice it in the 0.16.0 QA. I'm just a bit mystified. This isn't blocking (or a criticism!) but I am wondering - did you discover anything about where the regression came from that led you to this solution in particular, or was it just a matter of looking at some of the handler patterns and deciding this would be the simplest path forward? Something else entirely? I realize you have less Past Knowledge of this part of the code base and what it looked like a while ago, so this is to satisfy my curiosity, mainly.
Thanks @AlexVelezLl I confirm that the loading state of the quiz report when viewed as a learner is fixed now. However, while regression testing I noticed that this is not fixed at Coach > Reports so it will be great if you could fix it there as well: 2024-04-23_16-27-50.mp4 |
Hi @marcellamaki. This regression comes from here. The reason why the scroll is reset is because we have this conditional rendering, this way the Previously, although the data was reloaded and the references were updated, the ExamReport was always visible. And since we loaded the same data it still looked the same. We could keep the same behavior of reloading the data, and make the ExamReport always visible, but perhaps with some opacity while the circular loader is shown, and revert the change to look if it is loaded in vue, If that is safer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @AlexVelezLl! :)
@pcenov, I've opened a follow up issue for the coach reports loading state.
54dd2c7
into
learningequality:release-v0.16.x
Summary
Avoid fetching exam resources again if they are already loaded.
References
Closes #12062
Screenshots
Compartir.pantalla.-.2024-04-12.11_29_17.mp4
Reviewer guidance
Testing checklist
PR process
Reviewer checklist
yarn
andpip
)