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

UOE-11757/UOE-11758: Changes for /geo endpoint with updated response #992

Open
wants to merge 6 commits into
base: ci
Choose a base branch
from

Conversation

pm-saurabh-narkhede
Copy link
Collaborator

No description provided.

continue
}
//TO-DO keeping case-sensitive?
countryCodes[countryCode] = struct{}{}
Copy link
Collaborator Author

@pm-saurabh-narkhede pm-saurabh-narkhede Jan 9, 2025

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()
Copy link
Collaborator Author

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
Copy link
Collaborator Author

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)
Copy link
Collaborator Author

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?

Copy link
Collaborator Author

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)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

check IPs at Prod

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.

1 participant