Skip to content

Commit da11cf8

Browse files
committed
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 489e806 commit da11cf8

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ The types of changes are:
1414
- `Fixed` for any bug fixes.
1515
- `Security` in case of vulnerabilities.
1616

17-
## [Unreleased](https://github.com/ethyca/fideslang/compare/1.4.4...main)
17+
## [Unreleased](https://github.com/ethyca/fideslang/compare/1.4.5...main)
18+
19+
## [1.4.5](https://github.com/ethyca/fideslang/compare/1.4.4...1.4.5)
20+
21+
### Changed
22+
23+
- Update `system.legal_basis_for_profiling` and `system.legal_basis_for_transfers` fields [#156](https://github.com/ethyca/fideslang/pull/156)
1824

1925
## [1.4.4](https://github.com/ethyca/fideslang/compare/1.4.3...1.4.4)
2026

src/fideslang/models.py

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

166-
ADEQUACY_DECISION = "Adequacy decision"
167-
STANDARD_CONTRACTUAL_CLAUSES = "Standard contractual clauses"
168-
BINDING_CORPORATE_RULES = "Binding corporate rules"
166+
ADEQUACY_DECISION = "Adequacy Decision"
167+
SCCS = "SCCs"
168+
BCRS = "BCRs"
169169
OTHER = "Other"
170170

171171

@@ -1114,15 +1114,17 @@ class System(FidesModel):
11141114
default=False,
11151115
description="Whether the vendor uses data to profile a consumer in a way that has a legal effect.",
11161116
)
1117-
legal_basis_for_profiling: Optional[LegalBasisForProfilingEnum] = Field(
1118-
description="The legal basis for performing profiling that has a legal effect.",
1117+
legal_basis_for_profiling: List[LegalBasisForProfilingEnum] = Field(
1118+
default_factory=list,
1119+
description="The legal basis (or bases) for performing profiling that has a legal effect.",
11191120
)
11201121
does_international_transfers: bool = Field(
11211122
default=False,
11221123
description="Whether this system transfers data to other countries or international organizations.",
11231124
)
1124-
legal_basis_for_transfers: Optional[LegalBasisForTransfersEnum] = Field(
1125-
description="The legal basis under which the data is transferred.",
1125+
legal_basis_for_transfers: List[LegalBasisForTransfersEnum] = Field(
1126+
default_factory=list,
1127+
description="The legal basis (or bases) under which the data is transferred.",
11261128
)
11271129
requires_data_protection_assessments: bool = Field(
11281130
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)