-
Notifications
You must be signed in to change notification settings - Fork 87
[ENG-1290] convenience fields #6995
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
…il.py 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
|
Greptile OverviewGreptile SummaryThis PR adds convenience fields for privacy request conditional dependencies and refactors the Key changes:
All changes are net-new infrastructure with minimal impact on existing code. The only production code change is in manual task conditional evaluation, which now uses the refactored utility function. Confidence Score: 5/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.
5 files reviewed, 3 comments
Edit Code Review Agent Settings | Greptile
React with 👍 or 👎 to share your feedback on this new summary format
src/fides/api/task/conditional_dependencies/privacy_request/convenience_fields.py
Outdated
Show resolved
Hide resolved
Codecov Report❌ Patch coverage is ❌ Your patch status has failed because the patch coverage (10.00%) 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 #6995 +/- ##
==========================================
- Coverage 87.30% 87.03% -0.28%
==========================================
Files 525 528 +3
Lines 34558 34668 +110
Branches 3993 4005 +12
==========================================
+ Hits 30172 30174 +2
- Misses 3515 3620 +105
- Partials 871 874 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
src/fides/api/task/conditional_dependencies/privacy_request/convenience_fields.py
Outdated
Show resolved
Hide resolved
src/fides/api/task/conditional_dependencies/privacy_request/convenience_fields.py
Show resolved
Hide resolved
src/fides/api/task/conditional_dependencies/privacy_request/util.py
Outdated
Show resolved
Hide resolved
src/fides/api/task/conditional_dependencies/privacy_request/schemas.py
Outdated
Show resolved
Hide resolved
|
@greptile please review |
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.
6 files reviewed, no comments
erosselli
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.
thanks for making the changes. not sure if this one needs a changelog?
|
Ticket ENG-1290
Description Of Changes
🎯 As a user, I want to specify conditions that must be true to create manual tasks, which check the request data, so that I can create tasks conditionally based on data in the request.
This PR adds convenience columns for adding privacy request conditional dependencies. As well as a small refactor moving a function to improve re-usability.
has_access_rulewhich is a boolean for evaluation. There is not a clear indicator on our models because policies can have multiple rules. If we just want this to run on policies with access then we can useprivacy_request.policy.has_access_rule: Trueand if we want to exclude the ones with consent rules from that setprivacy_request.policy.has_consent_rule: Falseextract_nested_valuefunction. It can now be used on more things than dictionaries including objects and lists. It is now in the conditional_dependencies utils so multiple files can use itset_nested_valuefunction that is used in [ENG-1290] Privacy Request Fields #6984 and in fidesplus PR #2814Code Changes
src/fides/api/task/conditional_dependencies/schemas.py- new classConditionalDependencyFieldInfosrc/fides/api/task/conditional_dependencies/privacy_request/convenience_fields.pysrc/fides/api/task/conditional_dependencies/privacy_request/util.pysrc/fides/api/task/manual/manual_task_conditional_evaluation.pyto use new function from utilssrc/fides/api/task/conditional_dependencies/util.pyincludes the refactored nested column functionNote: There are many tests for convenience cols and set_nested_value in the next PR #6984 where they are actually used.
Steps to Confirm
Pre-Merge Checklist
CHANGELOG.mdupdatedmaindowngrade()migration is correct and works