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

Always use fallback GVL for TCF1 #1657

Merged
merged 4 commits into from
Jan 28, 2021
Merged

Always use fallback GVL for TCF1 #1657

merged 4 commits into from
Jan 28, 2021

Conversation

bsardo
Copy link
Collaborator

@bsardo bsardo commented Jan 15, 2021

No description provided.

@SyntaxNode SyntaxNode changed the title Update TCF2 GVL subdomain and always use fallback GVL for TCF1 Always use fallback GVL for TCF1 Jan 23, 2021
return func(ctx context.Context, vendorListVersion uint16) (vendorlist.VendorList, error) {
return fallback, nil
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about combining the two tcfSpecVersion == tcf1SpecVersion conditions to eliminate the duplication?

Copy link
Contributor

@guscarreon guscarreon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. A small comment in regards to coverage

@@ -217,7 +217,7 @@ func (cfg *GDPR) validate(errs []error) []error {
errs = append(errs, fmt.Errorf("gdpr.amp_exception has been discontinued and must be removed from your config. If you need to disable GDPR for AMP, you may do so per-account (gdpr.integration_enabled.amp) or at the host level for the default account (account_defaults.gdpr.integration_enabled.amp)"))
}
if cfg.TCF1.FetchGVL == true {
glog.Warning("gdpr.tcf1.fetch_gvl is deprecated and will be removed in a future version, at which point TCF1 will always use the fallback GVL")
errs = append(errs, fmt.Errorf("gdpr.tcf1.fetch_gvl has been discontinued and must be removed from your config. TCF1 will always use the fallback GVL going forward"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Newly added conditional true branch seems to not have coverage. Also, in the config/config_test.go file, can we unify TestNegativeVendorID(t *testing.T) and TestOverflowedVendorID(t *testing.T) into a single table-test?

image

hhhjort
hhhjort previously approved these changes Jan 28, 2021
Copy link
Contributor

@guscarreon guscarreon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@hhhjort hhhjort left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hhhjort hhhjort merged commit ef06fac into prebid:master Jan 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants