Skip to content

Commit

Permalink
Merge branch 'hotfix-1.4.5' into temp_gvl_1_4_4_changes
Browse files Browse the repository at this point in the history
  • Loading branch information
adamsachs committed Aug 30, 2023
2 parents 6694dcc + da11cf8 commit d115ad9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ The types of changes are:
- `Fixed` for any bug fixes.
- `Security` in case of vulnerabilities.

## [Unreleased](https://github.com/ethyca/fideslang/compare/1.4.4...main)
## [Unreleased](https://github.com/ethyca/fideslang/compare/1.4.5...main)

## [1.4.5](https://github.com/ethyca/fideslang/compare/1.4.4...1.4.5)

### Changed

- Update `system.legal_basis_for_profiling` and `system.legal_basis_for_transfers` fields [#156](https://github.com/ethyca/fideslang/pull/156)

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

Expand Down
16 changes: 9 additions & 7 deletions src/fideslang/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ class LegalBasisForProfilingEnum(str, Enum):
class LegalBasisForTransfersEnum(str, Enum):
"""The model for describing the legal basis under which data is transferred"""

ADEQUACY_DECISION = "Adequacy decision"
STANDARD_CONTRACTUAL_CLAUSES = "Standard contractual clauses"
BINDING_CORPORATE_RULES = "Binding corporate rules"
ADEQUACY_DECISION = "Adequacy Decision"
SCCS = "SCCs"
BCRS = "BCRs"
OTHER = "Other"


Expand Down Expand Up @@ -1114,15 +1114,17 @@ class System(FidesModel):
default=False,
description="Whether the vendor uses data to profile a consumer in a way that has a legal effect.",
)
legal_basis_for_profiling: Optional[LegalBasisForProfilingEnum] = Field(
description="The legal basis for performing profiling that has a legal effect.",
legal_basis_for_profiling: List[LegalBasisForProfilingEnum] = Field(
default_factory=list,
description="The legal basis (or bases) for performing profiling that has a legal effect.",
)
does_international_transfers: bool = Field(
default=False,
description="Whether this system transfers data to other countries or international organizations.",
)
legal_basis_for_transfers: Optional[LegalBasisForTransfersEnum] = Field(
description="The legal basis under which the data is transferred.",
legal_basis_for_transfers: List[LegalBasisForTransfersEnum] = Field(
default_factory=list,
description="The legal basis (or bases) under which the data is transferred.",
)
requires_data_protection_assessments: bool = Field(
default=False,
Expand Down
4 changes: 2 additions & 2 deletions tests/fideslang/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,9 +402,9 @@ def test_expanded_system(self):
exempt_from_privacy_regulations=False,
reason_for_exemption=None,
uses_profiling=True,
legal_basis_for_profiling="Explicit consent",
legal_basis_for_profiling=["Explicit consent", "Contract"],
does_international_transfers=True,
legal_basis_for_transfers="Standard contractual clauses",
legal_basis_for_transfers=["Adequacy Decision", "SCCs"],
requires_data_protection_assessments=True,
dpa_location="www.example.com/dpa_location",
privacy_policy="https://vdx.tv/privacy/",
Expand Down

0 comments on commit d115ad9

Please sign in to comment.