Skip to content

Commit

Permalink
Restore personalize.profiling
Browse files Browse the repository at this point in the history
  • Loading branch information
pattisdr authored Oct 6, 2023
1 parent 94f9174 commit b039ca6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions src/fideslang/default_taxonomy/data_uses.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,14 @@
description="Personalizes the content of the product, service, application or system.",
parent_key="personalize",
),
default_use_factory(
fides_key="personalize.profiling",
name="Personalized Profiling",
description="Creates profiles for the purpose of serving content.",
parent_key="personalize",
version_deprecated="2.1.1",
replaced_by="personalize.content.profiling",
),
default_use_factory(
fides_key="personalize.content.limited",
name="Limited Content Personalization",
Expand Down
4 changes: 2 additions & 2 deletions 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": 54,
"data_use": 55,
"data_subject": 15,
"data_qualifier": 5,
}
Expand Down Expand Up @@ -46,7 +46,7 @@ def test_name_uniqueness(self, data_type: str) -> None:

@pytest.mark.parametrize("data_type", taxonomy_counts.keys())
def test_description_uniqueness(self, data_type: str) -> None:
keys = [x.description for x in getattr(DEFAULT_TAXONOMY, data_type)]
keys = [x.description for x in getattr(DEFAULT_TAXONOMY, data_type) if not x.version_deprecated]
duplicate_keys = {
key: value for key, value in Counter(keys).items() if value > 1
}
Expand Down

0 comments on commit b039ca6

Please sign in to comment.