-
Notifications
You must be signed in to change notification settings - Fork 84
Allow duplicate taxonomy names #6971
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
Conversation
|
Deployment failed with the following error: View Documentation: https://vercel.com/docs/two-factor-authentication |
Codecov Report❌ Patch coverage is
❌ Your patch status has failed because the patch coverage (79.66%) is below the target coverage (100.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #6971 +/- ##
==========================================
- Coverage 87.33% 87.31% -0.02%
==========================================
Files 525 525
Lines 34458 34512 +54
Branches 3967 3984 +17
==========================================
+ Hits 30093 30134 +41
- Misses 3501 3511 +10
- Partials 864 867 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Greptile OverviewGreptile SummaryThis PR removes the name uniqueness constraint from taxonomy elements (data categories, data uses, data subjects, and custom taxonomies), allowing multiple elements to share the same name as long as their Key changes:
Confidence Score: 4/5
Important Files ChangedFile Analysis
|
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.
4 files reviewed, 3 comments
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
JadeCara
left a comment
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.
Updated the greptile's suggestions and tested locally. I was not able to add duplicate sibling names as expected.
…ethyca/fides into ENG-1963-allow-duplicate-taxonomy-names
Co-authored-by: JadeWibbels <jade.wibbels@gmail.com> Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> Co-authored-by: Jade Wibbels <jade@ethyca.com>
Co-authored-by: JadeWibbels <jade.wibbels@gmail.com> Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> Co-authored-by: Jade Wibbels <jade@ethyca.com>
Ticket ENG-1963
Description Of Changes
This PR enables duplicate taxonomy names across the taxonomy system (data categories, data uses, data subjects, and custom taxonomy elements). Previously, both
fides_keyandnamehad to be unique within each taxonomy type. Now, onlyfides_keymust be unique, allowing multiple elements to share the same name as long as they have different keys or parent hierarchies.This change better supports real-world taxonomy use cases where:
The uniqueness constraint is now enforced solely on
fides_keywithin each taxonomy type, while names can be duplicated freely.Code Changes
DataCategory,DataSubject, andDataUsemodels insql_models.pyto overridecreate()andupdate()methods, skipping name uniqueness checks while enforcing fides_key uniquenessTaxonomyElementmodel intaxonomy.pyto overridecreate()andupdate()methods with the same logic for custom taxonomiesgeneric_overrides.pyAPI endpoints to return more specific error messages fromKeyOrNameAlreadyExistsexceptionsSteps to Confirm
Pre-Merge Checklist
CHANGELOG.mdupdatedmaindowngrade()migration is correct and works