-
Notifications
You must be signed in to change notification settings - Fork 739
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
Privacy Request Metrics #1378
Privacy Request Metrics #1378
Conversation
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.
LGTM
exchange/utils.go
Outdated
parsedConsent, err := vendorconsent.ParseString(consent) | ||
if err == nil { | ||
cleanMetrics.gdprTcfVersion = int(parsedConsent.Version()) | ||
version := int(parsedConsent.Version()) | ||
privacyLabels.GDPRTCFVersion = pbsmetrics.TCFVersionValue(version) |
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.
Shouldn't this call refer to the TCFVersionToValue
function found in pbsmetrics/metrics.go
instead?
280 func TCFVersionToValue(version int) TCFVersionValue {
281 switch {
282 case version == 1:
283 return TCFVersionV1
284 case version == 2:
285 return TCFVersionV2
286 }
287 return TCFVersionErr
288 }
pbsmetrics/metrics.go
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.
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.
You're exactly right. Bug fixed. Tests added.
This PR isn't behaving correctly. Something is out of sync. I'm going to close and recreate. |
Following up on #1360 to extend to CCPA, COPPA, and LMT for requests.