-
Notifications
You must be signed in to change notification settings - Fork 72
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
Restrict TCF Privacy Experience Config if TCF Disabled #4348
Conversation
… up in GET /privacy-experience-config if TCF is not enabled.
Passing run #4873 ↗︎
Details:
Review all test suite changes for PR #4348 ↗︎ |
@@ -1,6 +1,7 @@ | |||
export const COMPONENT_MAP = new Map([ | |||
["overlay", "Overlay"], | |||
["privacy_center", "Privacy center"], | |||
["tcf_overlay", "TCF overlay"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't break the cypress tests with this did I? I think I see those same failures on main?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup no worries—we know about the failures on main and are working on it separately! thanks for updating this 👍
if not CONFIG.consent.tcf_enabled: | ||
privacy_experience_config_query = privacy_experience_config_query.filter( | ||
PrivacyExperienceConfig.component != ComponentType.tcf_overlay | ||
) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the primary change of this PR!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yay looks 💯 !
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4348 +/- ##
=======================================
Coverage 87.72% 87.72%
=======================================
Files 335 335
Lines 21157 21160 +3
Branches 2752 2753 +1
=======================================
+ Hits 18560 18563 +3
Misses 2127 2127
Partials 470 470
☔ View full report in Codecov by Sentry. |
Closes https://ethyca.atlassian.net/browse/PROD-1273
Description Of Changes
We have an endpoint that retrieves the Privacy Experience Config resources, which contain the language or the copy used for each experience type. This is the endpoint that is queried on the "Privacy Experience" page. TCF copy returns, regardless of whether TCF is enabled.
Code Changes
tcf_overlay
component type in the Privacy Experience Admin UISteps to Confirm
nox -s dev -- shell
http://localhost:8080/api/v1/experience-config?show_disabled=true&page=1&size=50
tcf_overlay
isn't there.nox -s dev -- shell
againAlso adds this casing change:
Pre-Merge Checklist
CHANGELOG.md