Repository navigation
[CU-1k5fpda9909] Add omics workbench users unregister - #200
Merged
Merged
Conversation
Platform engineers can now unregister a Workbench user from the omics CLI instead of hand-writing DELETE calls to the user service, which removes the last reason to keep wbctl. The email is lowercased before it is sent, matching how register stores it and how wbctl unregistered users: the user service passes the raw value on to Wallet, which matches role members case-sensitively, so a mixed-case value could otherwise leave the user's platform membership behind. Unregistering deletes any namespace where the user is the last ADMIN, so the command asks for confirmation unless --force is given, like the other destructive commands. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011GSYqHzxEFFeYzuvnpcg1T
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified Files
|
1 similar comment
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified Files
|
qdnastack
approved these changes
Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
omics workbench users unregister --email EMAIL [--force|-f], the counterpart tousers register, so platform engineers no longer hand-write aDELETE /users/{email}request. The command validates and lowercases the email, then asks for confirmation unless--forceis given, because unregistering deletes any namespace where the user is the last ADMIN. It then sends the DELETE and printsUser <email> unregistered. Non-2xx responses, including a 502 partial failure, exit 1 through the existingHTTP <status>: <body>path. Without--force, a non-interactive run aborts at the prompt with exit 1.Decisions
How to test
Run live on prod with this branch: register a throwaway user, then run
echo y | omics workbench users unregister --email 'KShong831+WBtest@gmail.com'. It printsUser kshong831+wbtest@gmail.com unregistered. Afterwards,users describeand the user's personal namespace both return 404.ClickUp: https://app.clickup.com/t/1k5fpda9909
🤖 Generated with Claude Code
https://claude.ai/code/session_011GSYqHzxEFFeYzuvnpcg1T