Skip to content

Implement main_id conflict checks in create_user#608

Open
jonasbardino wants to merge 1 commit into
nextfrom
adjust/prevent-main_id_clashes-in-create_user
Open

Implement main_id conflict checks in create_user#608
jonasbardino wants to merge 1 commit into
nextfrom
adjust/prevent-main_id_clashes-in-create_user

Conversation

@jonasbardino

Copy link
Copy Markdown
Contributor

Implement main_id conflict checks in create_user to match the existing openid alias one. Makes sure that user creation with changed ID fields but same main_id is logged and refused with a similar conflict message. That is, basically the first iteration of the solution outlined in #604. Adjusts the unit tests to make sure they cover both the openid alias and main_id cases and extend to verify that the logs in fact contains the expected warnings to rule out false positives for other exceptions. Added a few more log warnings for similar situations we only had interactive output for.
Integrates the typo fixes from #605 to reduce merge conflicts.

…sting

openid `alias` one. Makes sure that user creation with changed ID fields but
same `main_id` is logged and refused with a similar conflict message. That is,
basically the first iteration of the solution outlined in #604.
Adjusts the unit tests to make sure they cover both the openid `alias` and
`main_id` cases and extend to verify that the logs in fact contains the
expected warnings to rule out false positives for other exceptions.
Added a few more log warnings for similar situations we only had interactive
output for.
Integrates the typo fixes from #605 to reduce merge conflicts.
@jonasbardino jonasbardino self-assigned this Jul 20, 2026
@jonasbardino jonasbardino added the enhancement New feature or request label Jul 20, 2026
@jonasbardino
jonasbardino marked this pull request as ready for review July 20, 2026 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant