-
Notifications
You must be signed in to change notification settings - Fork 760
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
Conversation
endpoints/cookie_sync_test.go
Outdated
@@ -1909,27 +1909,32 @@ func TestCookieSyncActivityControlIntegration(t *testing.T) { | |||
testCases := []struct { | |||
name string | |||
bidderName string | |||
allow bool | |||
accPrivacy *config.AccountPrivacy |
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.
IMHO acc
is not a common abbreviation for account. Please consider calling this accountPrivacy
for clarity.
privacy/enforcer.go
Outdated
plan, planDefined := e.plans[activity] | ||
|
||
if !planDefined { | ||
return ActivityAbstain | ||
return true |
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 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.
Because of we return bool instead of activity result we need to check result is not a Deny.