-
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
When the TC String is included in GPP and Layer 1 is visible, the signalStatus should be "not ready" #4957
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
1396afa
to
5a8ec5d
Compare
Passing run #8150 ↗︎
Details:
Review all test suite changes for PR #4957 ↗︎ |
@@ -133,18 +133,19 @@ const initializeGppCmpApi = () => { | |||
makeStub(); | |||
const cmpApi = new CmpApi(ETHYCA_CMP_ID, CMP_VERSION); | |||
cmpApi.setCmpStatus(CmpStatus.LOADED); | |||
// If consent does not need to be resurfaced, then we can set the signal to Ready here |
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 was redundant with the notes starting on 141
sectionsChanged.forEach((section) => { | ||
cmpApi.fireSectionChange(section.name); | ||
}); |
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 was confirmed to have been missing from before
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.
PR looks great. Approved!
window.addEventListener("FidesInitialized", (event) => { | ||
// TODO (PROD-1439): re-evaluate if GPP is "cheating" accessing window.Fides instead of using the event details only | ||
const { experience, saved_consent: savedConsent } = window.Fides; | ||
const { experience, saved_consent: savedConsent, options } = window.Fides; | ||
const isTcfEnabled = options.tcfEnabled; |
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 also really like having boolean variables name starting with 'is' or 'has'.
Passing run #8161 ↗︎
Details:
Review all test suite changes for PR #4957 ↗︎ |
Closes PROD-2020
Description Of Changes
Adding a check for TCF when setting the signal status to ensure it doesn't get set incorrectly. We've been setting it to "ready" too early in TCF enabled environments.
Code Changes
Steps to Confirm
/fides-js-demo.html?geolocation=fr-id
)__gpp('ping', ({signalStatus})=>{console.log(signalStatus)})
Pre-Merge Checklist
CHANGELOG.md