-
Notifications
You must be signed in to change notification settings - Fork 691
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
Consolidate list remote users api #12321
Consolidate list remote users api #12321
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.
Changes make sense, and being able to reuse the same API endpoint with just some minor tweaks of how they are handled in Javascript is a neat way to do this with minimal changes.
Having more tests, and also using the API endpoints more consistently would be preferable in the future, but this does well to do the minimal required change.
Hi @AlexVelezLl - I confirm that there are no issues when importing learners as an administrator in the setup wizard or when changing facilities for an "On my own" learner. However when I attempt to merge a learner that was created on the actual "On my own" device then when I try to migrate the learner either by using his password or by using an admin account I am getting permission denied 403 errors in the console and the learner cannot be migrated: migrate.user.mp4 |
ee2e845
to
41b4eda
Compare
41b4eda
to
ef85477
Compare
Hi @pcenov! I have solved the mentioned issues both when mergin the self user and with an admin: @rtibbles I have updated the RemoteFacilityUserAuthenticatedViewset so if the queried user is not an admin we just return the user: 98f2f55. Also, since this commit the IsSelf permission was not working ok because |
I think rather than mess with the signature of the task function, it might be simpler just to update how the IsSelf references the args/kwargs?
|
Thanks @AlexVelezLl - I confirm that everything is working correctly now! |
Summary
Consolidates the logic of listing remote users from the user_profile and setup_wizard plugins, and migrates them to core auth so that they are accessible by multiple plugins.
There were some differences between both endpoints, and the following decisions were made to merge them:
Reviewer guidance
Testing checklist
PR process
Reviewer checklist
yarn
andpip
)