Skip to content
This repository was archived by the owner on Dec 19, 2021. It is now read-only.

Conversation

@NickSchimek
Copy link
Member

@NickSchimek NickSchimek commented Oct 18, 2021

Description

Avoid the false positives when validating a unique field.
Uses Anthony's context implementation to pass the original value of fields, except the context is assigned automatically. It just needs to be explicitly set in the model, and then it will be available in the schema's for validations.

Refactored the app, and implemented this on all unique fields.

Fixes codeforpdx/dwellingly-app/issues/709

@NickSchimek NickSchimek force-pushed the fix_granting_user_access branch from e33935b to fd75923 Compare October 18, 2021 11:32
@NickSchimek NickSchimek changed the title Implement strategy to use unique validations Implement strategy for unique validations Oct 18, 2021
TNorbury
TNorbury previously approved these changes Oct 18, 2021
@NickSchimek NickSchimek added do not merge Do not merge this PR until this label is removed and removed do not merge Do not merge this PR until this label is removed labels Oct 18, 2021
Chris-Boe
Chris-Boe previously approved these changes Oct 21, 2021
Copy link
Contributor

@Chris-Boe Chris-Boe left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this!

Co-authored-by: Chris Boe <cboe15@gmail.com>
@NickSchimek NickSchimek dismissed stale reviews from Chris-Boe and TNorbury via 5d8d599 October 21, 2021 03:11
@Chris-Boe Chris-Boe enabled auto-merge (squash) October 21, 2021 06:30
@Chris-Boe Chris-Boe merged commit 7b2ca06 into development Oct 21, 2021
@Chris-Boe Chris-Boe deleted the fix_granting_user_access branch October 21, 2021 06:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Attempting to grant a user access returns a 400

4 participants