Skip to content

Commit

Permalink
Relax System Legal Basis for Transfers (#162)
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Sachs <[email protected]>
  • Loading branch information
pattisdr and adamsachs authored Sep 8, 2023
1 parent a160d70 commit f0563cd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions src/fideslang/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,18 @@ class LegalBasisForProfilingEnum(str, Enum):


class LegalBasisForTransfersEnum(str, Enum):
"""The model for describing the legal basis under which data is transferred"""
"""
The model for describing the legal basis under which data is transferred
We currently do _not_ enforce this enum on the `legal_basis_for_transfers`
field, because the set of allowable values seems to be changing frequently
and without clear notice in upstream, public data sources.
"""

ADEQUACY_DECISION = "Adequacy Decision"
SCCS = "SCCs"
BCRS = "BCRs"
SUPPLEMENTARY_MEASURES = "Supplementary Measures"
OTHER = "Other"


Expand Down Expand Up @@ -1181,7 +1188,7 @@ class System(FidesModel):
default=False,
description="Whether this system transfers data to other countries or international organizations.",
)
legal_basis_for_transfers: List[LegalBasisForTransfersEnum] = Field(
legal_basis_for_transfers: List[str] = Field(
default_factory=list,
description="The legal basis (or bases) under which the data is transferred.",
)
Expand Down
2 changes: 1 addition & 1 deletion tests/fideslang/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ def test_expanded_system(self):
uses_profiling=True,
legal_basis_for_profiling=["Explicit consent", "Contract"],
does_international_transfers=True,
legal_basis_for_transfers=["Adequacy Decision", "SCCs"],
legal_basis_for_transfers=["Adequacy Decision", "SCCs", "New legal basis"],
requires_data_protection_assessments=True,
dpa_location="www.example.com/dpa_location",
privacy_policy="https://vdx.tv/privacy/",
Expand Down

0 comments on commit f0563cd

Please sign in to comment.