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

PROD-2645: Adds mappings and new data use for special purposes 3 #15

Merged
merged 6 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pr_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
tags: ${{ env.IMAGE }}

- name: Upload fideslang container
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ env.CONTAINER }}
path: /tmp/${{ env.CONTAINER }}.tar
Expand Down
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@ The types of changes are:
- `Fixed` for any bug fixes.
- `Security` in case of vulnerabilities.

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


## [3.0.4](https://github.com/ethyca/fideslang/compare/3.0.3...3.0.4)

### Added

- Adds mappings and new data use for special purposes 3 [#15](https://github.com/ethyca/fideslang/pull/15)


## [3.0.3](https://github.com/ethyca/fideslang/compare/3.0.2...3.0.3)
Expand Down
6 changes: 6 additions & 0 deletions src/fideslang/default_taxonomy/data_uses.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,12 @@
description="Stores or accesses information from the device as needed when using a product, service, application, or system",
parent_key="functional",
),
default_use_factory(
fides_key="functional.storage.privacy_preferences",
name="Local Data Storage for Privacy Preferences",
description="Stores or accesses privacy preferences information from the device as needed when using a product, service, application, or system",
parent_key="functional.storage",
),
default_use_factory(
fides_key="functional.service",
name="Service",
Expand Down
4 changes: 2 additions & 2 deletions src/fideslang/gvl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from .models import Feature, GVLDataCategory, MappedDataCategory, MappedPurpose, Purpose

### (Special) Purposes
### Purposes & Special Purposes

PURPOSE_MAPPING_FILE = join(
dirname(__file__),
Expand All @@ -21,7 +21,7 @@
MAPPED_SPECIAL_PURPOSES: Dict[int, MappedPurpose] = {}
MAPPED_PURPOSES_BY_DATA_USE: Dict[str, MappedPurpose] = {}

### (Special) Features
### Features & Special Features

FEATURE_MAPPING_FILE = join(
dirname(__file__),
Expand Down
9 changes: 9 additions & 0 deletions src/fideslang/gvl/gvl_data_use_mapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,15 @@
"illustrations": [
"Clicking on a link in an article might normally send you to another page or part of the article. To achieve this, 1°) your browser sends a request to a server linked to the website, 2°) the server answers back (“here is the article you asked for”), using technical information automatically included in the request sent by your device, to properly display the information / images that are part of the article you asked for. Technically, such exchange of information is necessary to deliver the content that appears on your screen."
]
},
"3": {
"id": 3,
"name": "Save and communicate privacy choices",
"data_uses": ["functional.storage.privacy_preferences"],
"description": "The choices you make regarding the purposes and entities listed in this notice are saved and made available to those entities in the form of digital signals (such as a string of characters). This is necessary in order to enable both this service and those entities to respect such choices.",
"illustrations": [
"When you visit a website and are offered a choice between consenting to the use of profiles for personalised advertising or not consenting, the choice you make is saved and made available to advertising providers, so that advertising presented to you respects that choice."
]
}
}
}
2 changes: 1 addition & 1 deletion tests/fideslang/gvl/test_gvl.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def test_purpose_to_data_use():
purpose_to_data_use(12)

with pytest.raises(KeyError):
purpose_to_data_use(3, True)
purpose_to_data_use(4, True)


def test_features():
Expand Down
2 changes: 1 addition & 1 deletion tests/fideslang/test_default_taxonomy.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

taxonomy_counts = {
"data_category": 85,
"data_use": 55,
"data_use": 56,
"data_subject": 15,
}

Expand Down
Loading