-
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
Added masking_strategy_override at field level #5446
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
327ee7f
to
4c5f6ef
Compare
fides Run #11040
Run Properties:
|
Project |
fides
|
Branch Review |
refs/pull/5446/merge
|
Run status |
Passed #11040
|
Run duration | 00m 40s |
Commit |
7d643dc386 ℹ️: Merge b31509540c43bb1e5a1727fa9796c865e264460e into 523c1ab716c666feeca4636b844c...
|
Committer | Facundo Lopez Janza |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
0
|
Skipped |
0
|
Passing |
4
|
Upgrade your plan to view test results. | |
View all changes introduced in this branch ↗︎ |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5446 +/- ##
==========================================
- Coverage 85.20% 79.16% -6.04%
==========================================
Files 386 387 +1
Lines 24247 24303 +56
Branches 2644 2654 +10
==========================================
- Hits 20659 19239 -1420
- Misses 3033 4550 +1517
+ Partials 555 514 -41 ☔ View full report in Codecov by Sentry. |
29cadeb
to
e2a27fe
Compare
c4b223d
to
488718b
Compare
@@ -417,6 +418,7 @@ def create_or_update_dataset( | |||
# when a ctl_dataset is being linked to a Saas Connector. | |||
_validate_saas_dataset(connection_config, dataset) # type: ignore | |||
# Try to find an existing DatasetConfig matching the given connection & key | |||
validate_masking_strategy_override(dataset) |
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.
dataset creation and update happens in many places so this validation gets repeated all over. this is one of those cases where a service would come in handy.
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.
Thanks for making the recommended changes, this looks good to me!
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.
@Linker44, I just asked that you revert the debugging changes pytest_ctl
, then we're good to go!
fides Run #11047
Run Properties:
|
Project |
fides
|
Branch Review |
main
|
Run status |
Passed #11047
|
Run duration | 00m 35s |
Commit |
861201b96c: Added masking_strategy_override at field level (#5446)
|
Committer | Facundo Lopez Janza |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
0
|
Skipped |
0
|
Passing |
4
|
Upgrade your plan to view test results. | |
View all changes introduced in this branch ↗︎ |
Closes #LA-60
Description Of Changes
This pr adds masking_strategy_overrides at the dataset field-level.
Many masking strict erasure requests fail because some fields dont have the correct format. This is caused by applying the same masking to each field when some of them should remain with a certain format.
ex: an endpoint will only succeed at updating an email field if it has an email format.
Code Changes
Steps to Confirm
Confirm masking override validation on fides admin:
Confirm masking override validation on startup (nox -s dev):
Confirm masking override is working:
Pre-Merge Checklist
CHANGELOG.md
main
downgrade()
migration is correct and works