-
Notifications
You must be signed in to change notification settings - Fork 793
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
Fix view learn device regression #13138
base: develop
Are you sure you want to change the base?
Fix view learn device regression #13138
Conversation
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.
I tested things out locally and things worked as expected. Overall, the code changes LGTM so once the tests are fixed up should be good to go.
kolibri/plugins/coach/assets/src/views/common/ReportsControls.vue
Outdated
Show resolved
Hide resolved
Build Artifacts
|
Done! |
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.
Hi @ozer550 - I think you're on the right track here, but there are a few adjustments needed to stay fully in line with the original intention of the issue/fix. I know some of the different learner setups can be complicated, so let me know if you want to discuss the scenarios more! I think it might make more sense once you can fully wrap your mind around picturing what this could look like in a classroom
kolibri/plugins/coach/assets/src/views/ClassLearnersListPage.vue
Outdated
Show resolved
Hide resolved
kolibri/plugins/coach/assets/src/views/common/ReportsControls.vue
Outdated
Show resolved
Hide resolved
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 for the updates, @ozer550. This looks good and manual QA confirms it is working now as expected. Can you rebase, and then we can merge?(Let's use a squash merge for this :) )
f7dc54c
to
e247d00
Compare
@@ -74,19 +74,33 @@ | |||
default: false, | |||
}, | |||
}, | |||
data() { | |||
return { | |||
userSet: new Set(), |
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.
We should be a little careful with this, as VueJS < 3 does not support reactive updates of ES6 Set objects: vuejs/vue#2410
I think in this case, the fact that we're always replacing the entire object is probably sufficient for this to retrigger a reactive update in the computed prop, but please be cautious in general with using Set and Map. This is the reason that we often just us a plain JS object when a Set or a Map might be more performant/semantic.
Summary
lod-link-fix.mp4
References
closes #12947
Reviewer guidance
Observe that in the main exam page, and when clicking into a specific exam, see that the "View learner devices" link (and link to that page) is absent.