-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update custom field definition uniqueness criteria #3215
update custom field definition uniqueness criteria #3215
Conversation
Passing run #1777 ↗︎
Details:
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #3215 +/- ##
==========================================
- Coverage 87.43% 87.43% -0.01%
==========================================
Files 314 314
Lines 18322 18341 +19
Branches 2382 2384 +2
==========================================
+ Hits 16020 16036 +16
- Misses 1868 1869 +1
- Partials 434 436 +2
☔ View full report in Codecov by Sentry. |
criteria is now case-insensitive name per resource type
553235f
to
61312cc
Compare
src/fides/api/ctl/migrations/versions/15a3e7483249_make_customfielddefinition_uniqueness_.py
Show resolved
Hide resolved
src/fides/api/ctl/migrations/versions/15a3e7483249_make_customfielddefinition_uniqueness_.py
Show resolved
Hide resolved
@pattisdr this is primarily a migration/db model update, so i'd appreciate a quick review when you have a chance! (it's not a major change, and also not blocking any of my work currently). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
src/fides/api/ctl/migrations/versions/15a3e7483249_make_customfielddefinition_uniqueness_.py
Show resolved
Hide resolved
…values-for-custom-field-definition-names
thanks for the quick review @pattisdr! just merged in for changelog conflict resolution, will let CI run to completion and then merge into main |
Partially closes https://github.com/ethyca/fidesplus/issues/826
Code Changes
plus_custom_field_definition
table since we're touching itSteps to Confirm
fidesplus
PR that has the API which exposes this modelPre-Merge Checklist
CHANGELOG.md
Description Of Changes
We'll now ensure custom field definition uniqueness with a case insensitive name check, per
resource_type
(location). This implements that constraint on the DB level and also has some handling of the error to give a "cleaner" exception for consumption higher up in the stack.