Skip to content

Conversation

@aviadl
Copy link
Member

@aviadl aviadl commented Jan 1, 2026

@aviadl aviadl requested review from Copilot and dorsha January 1, 2026 08:21
@aviadl aviadl enabled auto-merge (squash) January 1, 2026 08:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new optional fail_on_conflict parameter to the update_email and update_phone methods in the user management API, allowing callers to specify whether an error should be raised when the email or phone number is already in use as a login ID.

  • Adds fail_on_conflict optional boolean parameter to both methods
  • Updates method documentation to describe the new parameter
  • Updates test assertions to include the new parameter in request body validation

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
descope/management/user.py Adds fail_on_conflict parameter to update_email and update_phone methods with corresponding documentation
tests/management/test_user.py Updates test assertions to verify the new parameter is included in API request bodies

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link

github-actions bot commented Jan 1, 2026

Coverage report

The coverage rate went from 98.35% to 98.35% ➡️

None of the new lines are part of the tested code. Therefore, there is no coverage data about them.

@aviadl aviadl changed the title Add option to fail on conflict feat: add option to fail on conflict Jan 1, 2026
@aviadl aviadl merged commit 5232bc6 into main Jan 1, 2026
56 of 57 checks passed
@aviadl aviadl deleted the update-email-conflict-fail branch January 1, 2026 12:57
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.

3 participants