Skip to content

Conversation

@And1sS
Copy link
Collaborator

@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
CTMBNara
CTMBNara previously approved these changes Nov 26, 2024
* Increase test coverage for GDPR enforcement when COPPA in scope
@CTMBNara CTMBNara merged commit 7b3fd70 into master Dec 4, 2024
6 of 7 checks passed
@CTMBNara CTMBNara deleted the privacy/gdpr-update branch December 4, 2024 14:55
sergseven pushed a commit to openx/prebid-server-java that referenced this pull request Dec 23, 2024
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.

4 participants