From f136e7e6d11fdf97ebc74d9b1a50162f5024629f Mon Sep 17 00:00:00 2001 From: eastandwestwind Date: Wed, 4 Sep 2024 11:27:08 +0200 Subject: [PATCH 1/6] adds mappings and new data use for special purposes 3 --- src/fideslang/default_taxonomy/data_uses.py | 6 ++++++ src/fideslang/gvl/__init__.py | 4 ++-- src/fideslang/gvl/gvl_data_use_mapping.json | 9 +++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/fideslang/default_taxonomy/data_uses.py b/src/fideslang/default_taxonomy/data_uses.py index 1b733084..ce145687 100644 --- a/src/fideslang/default_taxonomy/data_uses.py +++ b/src/fideslang/default_taxonomy/data_uses.py @@ -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", diff --git a/src/fideslang/gvl/__init__.py b/src/fideslang/gvl/__init__.py index ec1c7d0a..8613c4be 100644 --- a/src/fideslang/gvl/__init__.py +++ b/src/fideslang/gvl/__init__.py @@ -7,7 +7,7 @@ from .models import Feature, GVLDataCategory, MappedDataCategory, MappedPurpose, Purpose -### (Special) Purposes +### Purposes & Special Purposes PURPOSE_MAPPING_FILE = join( dirname(__file__), @@ -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__), diff --git a/src/fideslang/gvl/gvl_data_use_mapping.json b/src/fideslang/gvl/gvl_data_use_mapping.json index c7de1778..8bb816fa 100644 --- a/src/fideslang/gvl/gvl_data_use_mapping.json +++ b/src/fideslang/gvl/gvl_data_use_mapping.json @@ -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." + ] } } } From be8ee9d8c8e50ab77e7d63accd44eb67496ee15c Mon Sep 17 00:00:00 2001 From: eastandwestwind Date: Wed, 4 Sep 2024 11:30:12 +0200 Subject: [PATCH 2/6] adds changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d5731e6..c65651d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ The types of changes are: - `Security` in case of vulnerabilities. ## [Unreleased](https://github.com/ethyca/fideslang/compare/3.0.3...main) +- 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) From 5d27c906074ff0b8798ffb0193a295a743ec22ec Mon Sep 17 00:00:00 2001 From: eastandwestwind Date: Wed, 4 Sep 2024 11:32:48 +0200 Subject: [PATCH 3/6] fix test --- tests/fideslang/test_default_taxonomy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fideslang/test_default_taxonomy.py b/tests/fideslang/test_default_taxonomy.py index d04f8e9b..d4098f69 100644 --- a/tests/fideslang/test_default_taxonomy.py +++ b/tests/fideslang/test_default_taxonomy.py @@ -7,7 +7,7 @@ taxonomy_counts = { "data_category": 85, - "data_use": 55, + "data_use": 56, "data_subject": 15, } From 3efe1ead442077c988bdcd4ba50c3f1f42fcbedd Mon Sep 17 00:00:00 2001 From: eastandwestwind Date: Wed, 4 Sep 2024 14:38:20 +0200 Subject: [PATCH 4/6] fix another test --- tests/fideslang/gvl/test_gvl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fideslang/gvl/test_gvl.py b/tests/fideslang/gvl/test_gvl.py index 633d13b9..62ffdaf2 100644 --- a/tests/fideslang/gvl/test_gvl.py +++ b/tests/fideslang/gvl/test_gvl.py @@ -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(): From 4f1b3f03276fec09b65af936125e5dc959b15c52 Mon Sep 17 00:00:00 2001 From: Adam Sachs Date: Wed, 11 Sep 2024 10:23:23 -0400 Subject: [PATCH 5/6] update changelog for 3.0.4 release --- CHANGELOG.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c65651d9..90b586f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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/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) From fb3c0e636a14a36cb3dd2518d860355e051c2de7 Mon Sep 17 00:00:00 2001 From: Adam Sachs Date: Wed, 11 Sep 2024 10:27:14 -0400 Subject: [PATCH 6/6] bump upload artifact version in build --- .github/workflows/pr_checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr_checks.yml b/.github/workflows/pr_checks.yml index 54191aeb..47775cd8 100644 --- a/.github/workflows/pr_checks.yml +++ b/.github/workflows/pr_checks.yml @@ -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