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

Geo Lookup Updates #3057

Merged
merged 3 commits into from
Mar 20, 2024
Merged

Geo Lookup Updates #3057

merged 3 commits into from
Mar 20, 2024

Conversation

AntoxaAntoxic
Copy link
Collaborator

@AntoxaAntoxic AntoxaAntoxic self-assigned this Mar 14, 2024
@And1sS And1sS requested a review from CTMBNara March 14, 2024 10:37
@AntoxaAntoxic AntoxaAntoxic requested a review from CTMBNara March 14, 2024 16:45
metrics.updateGeoLocationMetric(true);
final Boolean inEea = isCountryInEea(geoInfo.getCountry());
private TcfContext enrichWithGeoInfo(TcfContext defaultTcfContext, GeoInfo geoInfo, String defaultCountry) {
final String country = ObjectUtil.getIfNotNullOrDefault(geoInfo, GeoInfo::getCountry, () -> defaultCountry);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Optional.ofNullable(geoInfo)
      .map(GeoInfo::getCountry)
      .orElse(defaultCountry)

CTMBNara
CTMBNara previously approved these changes Mar 14, 2024
@SerhiiNahornyi SerhiiNahornyi merged commit d87c840 into master Mar 20, 2024
5 checks passed
@SerhiiNahornyi SerhiiNahornyi deleted the geo-lookup-updates branch March 20, 2024 10:34
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