-
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
Backend System-Level Cookie Support #4383
Conversation
…tem level and not directly to a data use. Remove the functionality that keeps a cookie attached to a System if its PrivacyDeclaration is deleted. Cookies should now be linked to a privacy declaration or a system, not both. - Temporarily pin to fideslang commit that adds "cookies" to System schema. - Remove cookies from SystemResponse schema now that it is on the inherited System schema - Update "create_system" to pop off system level cookies from the request and upsert them separately - Update "update_system" to pop off system level cookies and upsert separately - Update "upsert_cookies" method to take in a system or a privacy declaration and link to the appropriate resource, not both. - Now cascade delete Cookies when a Privacy Declaration is updated instead of setting the privacy declaration id to null - Small data migration to detach Cookies from Systems that are also attached to a Privacy Declaration
…tem history response when no user id can be found. Just return the original id. This will be useful for automated system updates.
Passing run #5068 ↗︎
Details:
Review all test suite changes for PR #4383 ↗︎ |
… reporting - that cookie updates on systems can show up in the history.
@allisonking you can add the FE here directly if that's easier! |
we might need to push a fideslang alpha tag for this if that not being merged yet blocks you here - |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4383 +/- ##
==========================================
+ Coverage 87.04% 87.07% +0.02%
==========================================
Files 328 328
Lines 20267 20279 +12
Branches 2608 2610 +2
==========================================
+ Hits 17642 17658 +16
+ Misses 2162 2159 -3
+ Partials 463 462 -1
☔ View full report in Codecov by Sentry. |
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 looks great to me @pattisdr ! the code reads very cleanly, and the functionality here feels a lot more straightforward and maintainable.
thanks for revisiting this and taking the time to resolve this the right way
Did a separate PR for the FE just because a good number of files changed (all very small changes!) #4395 |
Co-authored-by: Adam Sachs <[email protected]>
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
Co-authored-by: Adam Sachs <[email protected]>
Lots of failing tests since bumping fideslang requirement - investigating. |
Closes https://ethyca.atlassian.net/browse/PROD-1310
❗ Contains migration; check downrev before merge
❗ Blocked by fideslang release: https://github.com/ethyca/fideslang/pull/181
❗ Blocked by FE accompaniment: https://ethyca.atlassian.net/browse/PROD-1319
Description Of Changes
Add system-level cookie support, (cookies that are attached at the System level and not directly to a data use). Remove the functionality that keeps a cookie attached to a System if its PrivacyDeclaration is deleted. Cookies should now be linked to a privacy declaration OR a system, not both.
Separately, while here:
Code Changes
System.previous_vendor_id
column to support being able to upgrade fideslang and pass in with System request in FESteps to Confirm
Pre-Merge Checklist
CHANGELOG.md