-
Notifications
You must be signed in to change notification settings - Fork 818
Fixes Bulk User Creation Failed prop console error #13830
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
base: develop
Are you sure you want to change the base?
Fixes Bulk User Creation Failed prop console error #13830
Conversation
Build Artifacts
|
|
Thanks @AllanOXDi - LGTM, the only remaining visible console errors are:
If these are not in scope for this PR, then it should be good to go! |
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'm seeing the textColor error - why was it reverted?
Otherwise the changes look okay - just want to clarify the scope before we merge.
| isConfirmationModalOpen.value = true; | ||
| closeConfirmationToRoute.value = to; | ||
| next(false); | ||
| return; |
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.
Not a blocker. What console errors did this fix?
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 intention of hook is to prevent the route navigation, and the correct way to do this is by calling next(false) https://v3.router.vuejs.org/guide/advanced/navigation-guards.html#in-component-guards. So this change should be reverted.
Here was the slack 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.
Just found a couple of regressions. I feel the error in the KSelect value should be solved by updating the handler of the selectValue computed property.
| isConfirmationModalOpen.value = true; | ||
| closeConfirmationToRoute.value = to; | ||
| next(false); | ||
| return; |
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 intention of hook is to prevent the route navigation, and the correct way to do this is by calling next(false) https://v3.router.vuejs.org/guide/advanced/navigation-guards.html#in-component-guards. So this change should be reverted.
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 selectedOption here is not doing anything, its just a ref property that is initially set to {} but never changes. The previous selectValue property is the correct value that should be passed here, as this handles the select all behaviour https://github.com/AllanOXDi/kolibri/blob/45135e4a7b987684c34223770d01244e2138c314/kolibri/plugins/facility/assets/src/views/users/sidePanels/UserCreate/ClassesSelect.vue#L63.
This update is causing regressions when on the select all checkbox:
Before this PR:
Grabacion.de.pantalla.2025-10-20.a.la.s.10.08.38.a.m.mov
After this PR:
Grabacion.de.pantalla.2025-10-20.a.la.s.10.06.34.a.m.mov
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.
@AlexVelezLl I think this could be addressed from the KSelect by allowing the value prop accept either Array or Object. I have just made a fix to it on this PR.
learningequality/kolibri-design-system#1150
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.
Hey @AllanOXDi. Yes! It seems that having KSelect support an array value should mute the error logs here; Jus commented on the PR a minor nitpick before merging the PR. However, the selectedOption change should be reverted here as well!
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 think we could just close this PR after - once we fixed from KSelect itself
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 mean, we still have the addition of the missing return of the showErrorWarning ref 😄.
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.
Resolved

Summary
This PR fixes the console errors when creating a new user
closes #13696
References
#13696
###Before

###After

Reviewer guidance