Open mathemancer opened 1 week ago
can you assign me this issue?
Hey @nilaygit-10721, this issue isn't quite ready for community contribution yet. I need to split it into a number of sub-tasks.
However, once I do that, you are welcome to try to solve one of the sub-tasks and submit a PR. We'll assign the issue for the sub-task you choose to you once you submit the PR, so no one else works on it while we're reviewing your work.
Thank you!
okay @mathemancer thank you let me know when i can do that
@nilaygit-10721 Okay, I've specced out some issues.
Please submit PRs for each individual linked issue, and wait for the first to be reviewed before proceeding to the next.
Problem
One of our few remaining REST endpoints is
/api/ui/v0/users/
. Keeping that endpoint requires keeping around DRF, and in particular, requires keeping around our DRF error handling machinery. This adds an astonishing amount of complexity and code to our repo.Proposed solution
We should move Mathesar user-wrangling functionality to RPC functions. The current list of endponts mapped to functions (from the wiki) is:
/api/ui/v0/users/{userId}/
users.delete
/api/ui/v0/users/{userId}/
users.get
/api/ui/v0/users/{userId}/
users.patch
/api/ui/v0/users/{userId}/password_reset/
users.password.revoke
/api/ui/v0/users/
users.list
/api/ui/v0/users/
users.add
/api/ui/v0/users/password_change/
users.password.replace_own
Additional context
We elected to forgo moving these endpoints as part of the architectural transition to save time.