Skip to content

Tidy add_user_to_groups: single user lookup, skip no-op PATCH - #1492

Open
MariusWirtz wants to merge 1 commit into
masterfrom
followup-1490-add-user-to-groups
Open

MariusWirtz wants to merge 1 commit into
masterfrom
followup-1490-add-user-to-groups

Conversation

@MariusWirtz

Copy link
Copy Markdown
Collaborator

Follow-up to #1490.

Resolve the user name once instead of twice, and return None without sending a PATCH when the user is already a member of every requested group.

Add mock-based unit tests that assert on the request body, which is the only place the dedupe is observable, and fold the duplicate live test into test_add_user_to_groups.

Follow-up to #1490. Resolve the user name once instead of twice, and
return None without sending a PATCH when the user is already a member
of every requested group. Add mock-based unit tests that assert on the
request body, which is the only place the dedupe is observable, and
fold the duplicate live test into test_add_user_to_groups.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants