Skip to content

Commit 6932bce

Browse files
authored
fideslang - update system.legal_basis_for_transfers and system.legal_basis_for_profiling (#156)
* update legal_basis_for_transfers - make multivalue and update allowed values * make legal_basis_for_profiling multivalue * update changelog
1 parent 3952d06 commit 6932bce

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ The types of changes are:
1616

1717
## [Unreleased](https://github.com/ethyca/fideslang/compare/2.0.1...main)
1818

19+
### Changed
20+
21+
- Update `system.legal_basis_for_profiling` and `system.legal_basis_for_transfers` fields [#156](https://github.com/ethyca/fideslang/pull/156)
22+
1923
## [2.0.1](https://github.com/ethyca/fideslang/compare/2.0.0...2.0.1)
2024

2125
### Changed

src/fideslang/models.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,9 @@ class LegalBasisForProfilingEnum(str, Enum):
227227
class LegalBasisForTransfersEnum(str, Enum):
228228
"""The model for describing the legal basis under which data is transferred"""
229229

230-
ADEQUACY_DECISION = "Adequacy decision"
231-
STANDARD_CONTRACTUAL_CLAUSES = "Standard contractual clauses"
232-
BINDING_CORPORATE_RULES = "Binding corporate rules"
230+
ADEQUACY_DECISION = "Adequacy Decision"
231+
SCCS = "SCCs"
232+
BCRS = "BCRs"
233233
OTHER = "Other"
234234

235235

@@ -1173,15 +1173,17 @@ class System(FidesModel):
11731173
default=False,
11741174
description="Whether the vendor uses data to profile a consumer in a way that has a legal effect.",
11751175
)
1176-
legal_basis_for_profiling: Optional[LegalBasisForProfilingEnum] = Field(
1177-
description="The legal basis for performing profiling that has a legal effect.",
1176+
legal_basis_for_profiling: List[LegalBasisForProfilingEnum] = Field(
1177+
default_factory=list,
1178+
description="The legal basis (or bases) for performing profiling that has a legal effect.",
11781179
)
11791180
does_international_transfers: bool = Field(
11801181
default=False,
11811182
description="Whether this system transfers data to other countries or international organizations.",
11821183
)
1183-
legal_basis_for_transfers: Optional[LegalBasisForTransfersEnum] = Field(
1184-
description="The legal basis under which the data is transferred.",
1184+
legal_basis_for_transfers: List[LegalBasisForTransfersEnum] = Field(
1185+
default_factory=list,
1186+
description="The legal basis (or bases) under which the data is transferred.",
11851187
)
11861188
requires_data_protection_assessments: bool = Field(
11871189
default=False,

tests/fideslang/test_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,9 +402,9 @@ def test_expanded_system(self):
402402
exempt_from_privacy_regulations=False,
403403
reason_for_exemption=None,
404404
uses_profiling=True,
405-
legal_basis_for_profiling="Explicit consent",
405+
legal_basis_for_profiling=["Explicit consent", "Contract"],
406406
does_international_transfers=True,
407-
legal_basis_for_transfers="Standard contractual clauses",
407+
legal_basis_for_transfers=["Adequacy Decision", "SCCs"],
408408
requires_data_protection_assessments=True,
409409
dpa_location="www.example.com/dpa_location",
410410
privacy_policy="https://vdx.tv/privacy/",

0 commit comments

Comments
 (0)