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

Updates for consent signal processing #5200

Merged
merged 37 commits into from
Aug 27, 2024
Merged
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
91e635d
Updates for consent signal processing
galvana Aug 15, 2024
224b5dc
Updating RequestOverrideFunction type
galvana Aug 15, 2024
7c8cda0
Minor cleanup of consentable item access
galvana Aug 15, 2024
9521550
Adding source and submitted_by fields to privacy request
galvana Aug 15, 2024
4eca107
Updating type for Admin UI
galvana Aug 15, 2024
1b0f595
Updating source values in Privacy Center to use enums
galvana Aug 15, 2024
5753e94
Storing submitted_by for privacy requests
galvana Aug 16, 2024
aa1ad40
Refactoring logic to filter out consent webhook requests
galvana Aug 16, 2024
146df41
Adding tests
galvana Aug 16, 2024
9066caf
Hiding privacy request source data behind plus flag
galvana Aug 16, 2024
ddd554f
Merge branch 'main' into PROD-1788-track-request-origin
galvana Aug 16, 2024
296fd54
Fixing tests
galvana Aug 17, 2024
b6dec0a
Adding connections to client
galvana Aug 20, 2024
d0adc40
Merge branch 'main' into PROD-1788-track-request-origin
galvana Aug 20, 2024
a967723
Merge branch 'main' into PROD-2601-updates-for-consent-signal-processing
galvana Aug 20, 2024
e22f113
Adding connections to client model
galvana Aug 20, 2024
a20d2e4
Adding token_duration_override to is_token_expired
galvana Aug 21, 2024
fd674ed
Merge branch 'main' into PROD-1788-track-request-origin
galvana Aug 21, 2024
0b7bb0f
Merge branch 'PROD-1788-track-request-origin' into PROD-2601-updates-…
galvana Aug 21, 2024
27e8774
Fixing downrev
galvana Aug 21, 2024
1d69b06
Adding support for Fides.js as a source
galvana Aug 22, 2024
22176f7
Merge branch 'PROD-1788-track-request-origin' into PROD-2601-updates-…
galvana Aug 22, 2024
7d95255
Updating client model tests
galvana Aug 22, 2024
03a389a
Merge branch 'main' into PROD-1788-track-request-origin
galvana Aug 23, 2024
227ddbd
Changes based on PR feedback
galvana Aug 23, 2024
1301015
Refactoring PrivacyRequestSource to avoid cyclic dependency
galvana Aug 23, 2024
837e347
Prettier fix
galvana Aug 23, 2024
f0b86b3
Merge branch 'main' into PROD-1788-track-request-origin
galvana Aug 24, 2024
13a0893
Fixing tests
galvana Aug 24, 2024
2593fe3
Merge branch 'PROD-1788-track-request-origin' into PROD-2601-updates-…
galvana Aug 24, 2024
1aef805
Updating Fides dataset
galvana Aug 24, 2024
384d8d5
Enabling custom privacy request field collection for tests
galvana Aug 24, 2024
2273cc4
Merge branch 'PROD-1788-track-request-origin' into PROD-2601-updates-…
galvana Aug 24, 2024
f58ed0c
Constraining the keys for the ConsentWebhookResult identity map
galvana Aug 25, 2024
2c9c8cb
Fixing tests
galvana Aug 25, 2024
30a18d5
Merge branch 'main' into PROD-2601-updates-for-consent-signal-processing
galvana Aug 26, 2024
6de8e72
Updating change log
galvana Aug 27, 2024
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
Prev Previous commit
Next Next commit
Constraining the keys for the ConsentWebhookResult identity map
galvana committed Aug 25, 2024
commit f58ed0cc8232b31725e0e6a9677dc66c85e96c51
6 changes: 4 additions & 2 deletions src/fides/api/schemas/consentable_item.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, Dict, List, Optional
from typing import Any, Dict, List, Literal, Optional

from pydantic import BaseModel, Field

@@ -83,7 +83,9 @@ class ConsentWebhookResult(BaseModel):
A wrapper class for the identity map and notice map values returned from a `PROCESS_CONSENT_WEBHOOK` function.
"""

identity_map: Dict[str, Any] = {}
identity_map: Dict[
Literal["email", "phone_number", "fides_user_device", "external_id"], str
] = {}
notice_map: Dict[str, UserConsentPreference] = {}
galvana marked this conversation as resolved.
Show resolved Hide resolved

@property
Loading