-
Notifications
You must be signed in to change notification settings - Fork 5
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
UOE-11757/UOE-11758: Changes for /geo
endpoint with updated response
#992
base: ci
Are you sure you want to change the base?
Conversation
continue | ||
} | ||
//TO-DO keeping case-sensitive? | ||
countryCodes[countryCode] = struct{}{} |
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.
Check with AdServer team about adding entry in table
Discussion to keeping this as only lower or upper case.
Also check whenever gdpr country table is updated we should get notified
@@ -87,6 +89,8 @@ var initReloader = func(fe *feature) { | |||
for { | |||
//Populating feature config maps from cache | |||
fe.updateFeatureConfigMaps() | |||
//update gdprCountryCodes | |||
fe.updateGDPRCountryCodes() |
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.
Create a separate task for customizing separate default expiry for different features
func (fe *feature) IsCountryGDPREnabled(countryCode string) bool { | ||
codes := fe.gdprCountryCodes.codes[fe.gdprCountryCodes.index] | ||
_, enabled := codes[countryCode] | ||
return enabled |
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.
define custom type for map[string]struct{}
metricLabels.RequestStatus = prometheus.RequestStatusBadInput | ||
return | ||
} | ||
pubIdStr = r.URL.Query().Get(models.PublisherID) |
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.
Do we really need to parse pubid from request? can we remove it?
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.
remove the error if possible
return | ||
} | ||
|
||
ip := util.GetIP(r) |
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.
check IPs at Prod
No description provided.