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

Core: Add validation by BIDDER.yaml for media types #1798

Merged
merged 24 commits into from
Jun 27, 2022

Conversation

CTMBNara
Copy link
Collaborator

No description provided.

@SerhiiNahornyi SerhiiNahornyi changed the title Add bid request processor which filter imps by bidder supported media types Add validation by BIDDER.yaml for media types Mar 31, 2022
@CTMBNara CTMBNara requested review from And1sS and mtuchkova April 5, 2022 14:24
Copy link
Contributor

@muuki88 muuki88 left a comment

Choose a reason for hiding this comment

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

This looks super useful. If I understand the change correctly, unsupported media type configurations for a bid will be removed depending on the bidders yml config?

I wonder why this is not enabled by default then.


public interface MediaTypeProcessor {

MediaTypeProcessingResult process(BidRequest bidRequest, String supportedBidderName);
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be awesome to add some documentation what the use cases are for this processor is

Copy link
Collaborator

Choose a reason for hiding this comment

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

Done

@@ -34,8 +35,8 @@ public static BidderInfo create(boolean enabled,
String endpoint,
String aliasOf,
String maintainerEmail,
List<String> appMediaTypes,
List<String> siteMediaTypes,
List<MediaType> appMediaTypes,
Copy link
Contributor

Choose a reason for hiding this comment

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

I really appreciate string being replaced by proper types 👍

CTMBNara and others added 9 commits April 27, 2022 21:37
…media-type

# Conflicts:
#	src/main/java/org/prebid/server/auction/ExchangeService.java
#	src/test/java/org/prebid/server/auction/ExchangeServiceTest.java
…media-type

# Conflicts:
#	src/main/java/org/prebid/server/bidder/BidderInfo.java
#	src/test/groovy/org/prebid/server/functional/tests/BidderParamsSpec.groovy
#	src/test/java/org/prebid/server/bidder/BidderCatalogTest.java
#	src/test/java/org/prebid/server/handler/info/BidderDetailsHandlerTest.java
# Conflicts:
#	src/test/groovy/org/prebid/server/functional/tests/BidderParamsSpec.groovy
@SerhiiNahornyi SerhiiNahornyi changed the title Add validation by BIDDER.yaml for media types Core: Add validation by BIDDER.yaml for media types Jun 16, 2022
…media-type

# Conflicts:
#	src/main/java/org/prebid/server/bidder/HttpBidderRequester.java
@SerhiiNahornyi SerhiiNahornyi force-pushed the add-filter-for-imp-media-type branch from dceefe2 to 688155e Compare June 20, 2022 05:05
@SerhiiNahornyi SerhiiNahornyi merged commit 3add4da into master Jun 27, 2022
@SerhiiNahornyi SerhiiNahornyi deleted the add-filter-for-imp-media-type branch June 27, 2022 13:51
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.

5 participants