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

Add bidderInfoResponse container as a first step to use BidInfo in workflow #1254

Merged
merged 5 commits into from
Apr 29, 2021

Conversation

DGarbar
Copy link
Contributor

@DGarbar DGarbar commented Apr 28, 2021

Based on #1249

@DGarbar DGarbar requested review from schernysh and rpanchyk April 28, 2021 12:37
# Conflicts:
#	src/main/java/org/prebid/server/auction/BidResponseCreator.java
#	src/main/java/org/prebid/server/auction/model/BidInfo.java
Copy link
Contributor

@rpanchyk rpanchyk left a comment

Choose a reason for hiding this comment

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

Minor issues, mainly about naming. Pls consider, up to you.

import java.util.List;

/**
* Seatid returned by a {@link Bidder}.
Copy link
Contributor

Choose a reason for hiding this comment

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

Pls fix typo.

*/
@AllArgsConstructor(staticName = "of")
@Value
public class BidderInfoSeatBid {
Copy link
Contributor

Choose a reason for hiding this comment

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

Or BidderSeatBidInfo ? ;-)

public class BidderInfoSeatBid {

/**
* List of bids which bidder wishes to make.
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably we can skip java docs in this model since we've already described in original BidderSeatBid.

/**
* List of bids which bidder wishes to make.
*/
List<BidInfo> bids;
Copy link
Contributor

Choose a reason for hiding this comment

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

Or bidInfos ?

*/
@AllArgsConstructor(staticName = "of")
@Value
public class BidderInfoResponse {
Copy link
Contributor

Choose a reason for hiding this comment

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

Or BidderResponseInfo ?

return imps.stream()
.filter(imp -> Objects.equals(impId, imp.getId()))
.findFirst()
// Should never occur. See ResponseBidValidator
Copy link
Contributor

Choose a reason for hiding this comment

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

Actually, we can if secureMarkupEnforcement == skip.

Copy link
Contributor

Choose a reason for hiding this comment

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

Will be fixed in next PR.

@rpanchyk rpanchyk merged commit 452ce18 into master Apr 29, 2021
@rpanchyk rpanchyk deleted the introduce-bidder-info-response branch April 29, 2021 12:20
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.

2 participants