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

Ix: Bidder updates #2616

Merged
merged 8 commits into from
Sep 11, 2023
Merged

Ix: Bidder updates #2616

merged 8 commits into from
Sep 11, 2023

Conversation

And1sS
Copy link
Member

@And1sS And1sS commented Sep 6, 2023

Updates from #2484

Copy link
Collaborator

@AntoxaAntoxic AntoxaAntoxic left a comment

Choose a reason for hiding this comment

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

Great job!

# Conflicts:
#	src/test/java/org/prebid/server/bidder/ix/IxBidderTest.java
Copy link
Collaborator

@SerhiiNahornyi SerhiiNahornyi left a comment

Choose a reason for hiding this comment

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

ix.json outdated

? Publisher.builder().id(siteId).build()
: publisher.toBuilder().id(siteId).build();
private BidRequest modifyBidRequest(BidRequest bidRequest, List<Imp> imps, Set<String> siteIds) {
final String publisherId = siteIds.size() == 1 ? siteIds.stream().findAny().orElse(null) : null;
Copy link
Collaborator

Choose a reason for hiding this comment

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

What about?

final String publisherId = Optional.of(siteIds)
                .filter(siteIdsSet -> siteIdsSet.size() == 1)
                .map(Collection::stream)
                .flatMap(Stream::findFirst)
                .orElse(null);

@SerhiiNahornyi SerhiiNahornyi merged commit a510234 into master Sep 11, 2023
1 of 2 checks passed
@SerhiiNahornyi SerhiiNahornyi deleted the ix/updates branch September 11, 2023 13:48
SerhiiNahornyi pushed a commit that referenced this pull request Nov 30, 2023
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