Skip to content
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

Flexible Legal Basis = True Default #4434

Merged
merged 4 commits into from
Nov 16, 2023

Conversation

pattisdr
Copy link
Contributor

@pattisdr pattisdr commented Nov 15, 2023

Contains migration; check downrev
Dependent on fideslang release of https://github.com/ethyca/fideslang/pull/184

Closes #PROD-1264

Description Of Changes

Make "flexible legal basis for processing" non nullable and True by default in the backend.

Code Changes

  • Update PrivacyDeclaration.flexible_legal_basis_for_processing to get rid of the third state. Make it required, and set the server default to True, to match what should happen when systems are created outside of Compass.
  • Add a migration that first updates existing flexible_legal_basis_for_processing to False if it is currently null, then adds the new server default and makes it required.

Steps to Confirm

  • Creating a system without this field specified via the API (POST System) will set this value to True by default in the backend.

Pre-Merge Checklist

- Update PrivacyDeclaration.flexible_legal_basis_for_processing to get rid of the third state. Make it required, and set the server default to True, to match what should happen when systems are created outside of Compass.
- Add a migration that first updates existing flexible_legal_basis_for_processing to False if it is currently null, then adds the new server default and makes it required.
Copy link

vercel bot commented Nov 15, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
fides-plus-nightly ⬜️ Ignored (Inspect) Visit Preview Nov 16, 2023 9:04pm

requirements.txt Outdated Show resolved Hide resolved
@pattisdr pattisdr requested a review from adamsachs November 15, 2023 22:41
Copy link

cypress bot commented Nov 15, 2023

Passing run #5260 ↗︎

0 4 0 0 Flakiness 0
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.

Details:

Merge a12b309 into 7dbd31b...
Project: fides Commit: 10131804a2 ℹ️
Status: Passed Duration: 00:34 💡
Started: Nov 16, 2023 9:14 PM Ended: Nov 16, 2023 9:15 PM

Review all test suite changes for PR #4434 ↗︎

Copy link

codecov bot commented Nov 15, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7dbd31b) 87.10% compared to head (a12b309) 87.10%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4434   +/-   ##
=======================================
  Coverage   87.10%   87.10%           
=======================================
  Files         329      329           
  Lines       20358    20358           
  Branches     2621     2621           
=======================================
  Hits        17733    17733           
  Misses       2162     2162           
  Partials      463      463           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pattisdr
Copy link
Contributor Author

@adamsachs I think this is ready to go, just need a 👍

@adamsachs
Copy link
Contributor

@adamsachs I think this is ready to go, just need a 👍

Looks good - does changelog need to be updated?

Copy link
Contributor

@adamsachs adamsachs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, thank you for making quick work of this!

@pattisdr
Copy link
Contributor Author

thank you for the changelog catch, I thought I'd done it, but just in fideslang!

@pattisdr pattisdr merged commit a391a50 into main Nov 16, 2023
@pattisdr pattisdr deleted the PROD-1264_flexible_legal_basis_for_processing_update branch November 16, 2023 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants