Include vendors disclosed segment in TC string for __tcfapi#7266
Include vendors disclosed segment in TC string for __tcfapi#7266gilluminate merged 2 commits intomainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
3ea5c81 to
62835bf
Compare
Greptile OverviewGreptile SummaryThis PR fixes a bug in the TC string extraction logic for the Key changes:
The change ensures integrations using Confidence Score: 5/5
Important Files Changed
|
speaker-ender
left a comment
There was a problem hiding this comment.
Tested locally and looks good!
Ticket ENG-2460
Description Of Changes
Fixed the TC string passed to the CMP API so that it includes the full TC string (including the vendors disclosed segment) instead of only the first segment. Previously
extractTCStringForCmpApistripped the string at the first., which removed the disclosed vendors portion. Integrations using__tcfapi(\"getTCData\", ...)now receive atcStringthat matches the TC portion ofFides.fides_stringand includes the disclosed vendors segment.Code Changes
extractTCStringForCmpApiintcf/events.tsto usedecodeFidesStringand return the fulltcvalue instead of splitting and taking only the first segment__tcfapigetTCData matches the TC portion ofFides.fides_stringand that both include the disclosed vendors segment (.)Steps to Confirm
Pre-Merge Checklist
CHANGELOG.mdupdatedmaindowngrade()migration is correct and works