-
Notifications
You must be signed in to change notification settings - Fork 84
ENG-1945: Generic Erasure Email Changes #6938
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
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6938 +/- ##
=======================================
Coverage 87.32% 87.32%
=======================================
Files 525 525
Lines 34418 34421 +3
Branches 3960 3960
=======================================
+ Hits 30055 30058 +3
Misses 3500 3500
Partials 863 863 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Greptile OverviewGreptile SummaryThis PR prevents generic erasure emails from being sent for privacy requests submitted under policies with multiple action types (e.g., consent + erasure). The change addresses a specific issue where combined policy requests (used for "Do Not Sell" features) were incorrectly including user identities in generic erasure email notifications. Key Changes:
Notes:
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.
3 files reviewed, 1 comment
| # do not send erasure emails if there is more than 1 action type for the request. | ||
| # we use consent + erasure types to facilitate Do Not Sell features. | ||
| multiple_action_types = len(privacy_request.policy.get_all_action_types()) > 1 |
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.
style: Check that test coverage includes the new multiple action types logic - existing tests in test_erasure_email_connector.py don't validate that needs_email() returns False when a policy has multiple action types (e.g., consent + erasure)
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.
This makes sense :) let's add a test that checks that the multiple action DSRs don't trigger the erasure email send
Good call, added the requested test. Let me know if you'd like me to add something more thorough but I think this should be sufficient. |
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.
ship it
Do not include identities submitted as combined policy requests in generic erasure emails.
Co-authored-by: Eliana Rosselli <eliana@ethyca.com>
Do not include identities submitted as combined policy requests in generic erasure emails.
Ticket ENG-1945
Description Of Changes
Do not include submitted Privacy Request Identities in generic erasure emails if the policy has more than one type.
Code Changes
Steps to Confirm
Pre-Merge Checklist
CHANGELOG.mdupdatedmaindowngrade()migration is correct and works