Skip to content

Commit

Permalink
New TCF Purpose Header Field on Translations (#5246)
Browse files Browse the repository at this point in the history
- Adds a new purpose_header field on the ExperienceTranslation and on the historical record, the PrivacyExperienceConfigHistory table
- Adds a data migration to populate purpose_header fields on all existing TCF translations as well as update the existing description, provided the customer is still on version 1 for that translation, meaning they've made no edits
  • Loading branch information
pattisdr committed Aug 30, 2024
1 parent 657e3dd commit 284c632
Show file tree
Hide file tree
Showing 6 changed files with 350 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .fides/db_dataset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1121,6 +1121,8 @@ dataset:
data_categories: [ system.operations ]
- name: privacy_preferences_link_label
data_categories: [ system.operations ]
- name: purpose_header
data_categories: [ system.operations]
- name: reject_button_label
data_categories: [ system.operations ]
- name: save_button_label
Expand Down Expand Up @@ -1937,6 +1939,8 @@ dataset:
data_categories: [system.operations]
- name: privacy_preferences_link_label
data_categories: [system.operations]
- name: purpose_header
data_categories: [ system.operations]
- name: reject_button_label
data_categories: [system.operations]
- name: save_button_label
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ The types of changes are:
- Adding source and submitted_by fields to privacy requests (Fidesplus) [#5206](https://github.com/ethyca/fides/pull/5206)
- Added Action Required / Monitored / Unmonitored tabs to Data Detection & Discovery page [#5236](https://github.com/ethyca/fides/pull/5236)
- Adding erasure support for Microsoft Advertising [#5197](https://github.com/ethyca/fides/pull/5197)
- New purpose header field for TCF banner [#5246](https://github.com/ethyca/fides/pull/5246)

### Changed
- Removed unused `username` parameter from the Delighted integration configuration [#5220](https://github.com/ethyca/fides/pull/5220)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
"""purpose_header_to_translations
Adds new purpose_header field to Experience Translation table and
Privacy Experience Config History table
Revision ID: 1332815dcd71
Revises: 9cad5a5c438c
Create Date: 2024-08-28 21:05:41.933572
"""

import sqlalchemy as sa
from alembic import op

# revision identifiers, used by Alembic.
revision = "1332815dcd71"
down_revision = "9cad5a5c438c"
branch_labels = None
depends_on = None


def upgrade():
op.add_column(
"experiencetranslation", sa.Column("purpose_header", sa.String(), nullable=True)
)
op.add_column(
"privacyexperienceconfighistory",
sa.Column("purpose_header", sa.String(), nullable=True),
)


def downgrade():
op.drop_column("privacyexperienceconfighistory", "purpose_header")
op.drop_column("experiencetranslation", "purpose_header")
Loading

0 comments on commit 284c632

Please sign in to comment.