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

Privacy: Fix GDPR being ignored when in COPPA scope #3565

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

And1sS
Copy link
Member

@And1sS And1sS commented Nov 21, 2024

🔧 Type of changes

  • new bid adapter
  • update bid adapter
  • new feature
  • new analytics adapter
  • new module
  • bugfix
  • documentation
  • configuration
  • tech debt (test coverage, refactorings, etc.)

✨ What's the context?

Right now GDPR processing is not happening both when the BidRequest.reg.ext.gdpr=1 is specified and when the request IP is from EEA.

🧪 Test plan

Unit tests, functional tests

🏎 Quality check

  • Are your changes following our code style guidelines?
  • Are there any breaking changes in your code?
  • Does your test coverage exceed 90%?
  • Are there any erroneous console logs, debuggers or leftover code in your changes?

Comment on lines 73 to 78
final Set<String> bidders = results.stream()
.map(BidderPrivacyResult::getRequestBidder)
.collect(Collectors.toSet());
final Map<String, User> bidderToUser = results.stream()
.map(result -> new AbstractMap.SimpleEntry<>(result.getRequestBidder(), result.getUser()))
.collect(HashMap::new, (map, entry) -> map.put(entry.getKey(), entry.getValue()), HashMap::putAll);
Copy link
Collaborator

Choose a reason for hiding this comment

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

        final Map<String, User> bidderToUser = results.stream()
                .collect(Collectors.toMap(BidderPrivacyResult::getRequestBidder, BidderPrivacyResult::getUser));
        final Set<String> bidders = bidderToUser.keySet();

@And1sS And1sS requested a review from CTMBNara November 25, 2024 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants