Skip to content

Conversation

@brodyf42
Copy link
Collaborator

Resolves #5432

Description

When updating an AccountRequest record, the validation that checks for an existing user email address is skipped if the status is either rejected or admin_closed. Essentially the check does not need to be performed if the request is not being accepted.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Tested functionality in rails console and via the locally running application with no issues.

Copy link
Collaborator

@dorner dorner left a comment

Choose a reason for hiding this comment

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

Technical looks fine. Needs functional review.

Copy link
Collaborator

@awwaiid awwaiid left a comment

Choose a reason for hiding this comment

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

Works! Verified locally by setting up an account request and then adding a duplicate user. Off of main I get an error, on this branch it lets me reject the duplicate (as desired).

@awwaiid awwaiid merged commit 9d76897 into main Nov 30, 2025
22 checks passed
@awwaiid awwaiid deleted the 5432_skip_existing_user_email_validation_for_rejected_and_admin_closed_account_requests branch November 30, 2025 01:27
@github-actions
Copy link
Contributor

@brodyf42: Your PR [5432] Skip existing user email validation for account requests that are rejected or closed by admin is part of today's Human Essentials production release: 2025.11.30.
Thank you very much for your contribution!

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.

[BUG]: Obsolete validation of email uniqueness makes it impossible to close certain account requests

4 participants