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

Fix for blocked user sync if activities config is not specified. #3003

Merged
merged 5 commits into from
Aug 8, 2023

Conversation

VeronikaSolovei9
Copy link
Contributor

Because of we return bool instead of activity result we need to check result is not a Deny.

endpoints/cookie_sync.go Outdated Show resolved Hide resolved
@@ -1909,27 +1909,32 @@ func TestCookieSyncActivityControlIntegration(t *testing.T) {
testCases := []struct {
name string
bidderName string
allow bool
accPrivacy *config.AccountPrivacy
Copy link
Contributor

Choose a reason for hiding this comment

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

IMHO acc is not a common abbreviation for account. Please consider calling this accountPrivacy for clarity.

privacy/enforcer.go Show resolved Hide resolved
plan, planDefined := e.plans[activity]

if !planDefined {
return ActivityAbstain
return true
Copy link
Contributor

Choose a reason for hiding this comment

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

This true value is the same as activityDefaultToDefaultResult. Do you think it might be good to extract that to a constant value? in the future, we may need to replace that constant with a function if some of the activities change to a default of false.

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