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

Remove all imp.ext.prebid.imp #3378

Merged
merged 5 commits into from
Aug 21, 2024
Merged

Remove all imp.ext.prebid.imp #3378

merged 5 commits into from
Aug 21, 2024

Conversation

osulzhenko
Copy link
Collaborator

@osulzhenko osulzhenko commented Aug 18, 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?

What's the context for the changes? Are there any

🧠 Rationale behind the change

Why did you choose to make these changes? Were there any trade-offs you had to consider?

🧪 Test plan

How do you know the changes are safe to ship to production?

🏎 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?

@osulzhenko osulzhenko force-pushed the imp-exp-prebid-imp-fix branch from 0b28785 to 06e4b21 Compare August 19, 2024 09:02
@@ -156,6 +157,34 @@ class ImpRequestSpec extends BaseSpec {
bidderName << [WILDCARD, UNKNOWN]
}

def "PBS shouldn't update imp fields without warning when imp.ext.prebid.imp contain not applicable bidder"() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

PBS shouldn't update imp fields and without warning when imp.ext.prebid.imp contain not applicable bidder

def bidRequest = BidRequest.defaultBidRequest.tap {
imp.first.tap {
pmp = impPmp
ext.prebid.imp = [(notApplicableBidder): new Imp(pmp: Pmp.defaultPmp)]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can be directly ext.prebid.imp = [(RUBICON): new Imp(pmp: Pmp.defaultPmp)]

then: "Bid response should not contain warning"
assert !response?.ext?.warnings

and: "BidderRequest shouldn't update imp information based on imp.ext.prebid.imp value"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Sounds strange
BidderRequest should contain pmp from imp.ext.prebid.imp.pmp

@osulzhenko osulzhenko requested a review from marki1an August 19, 2024 09:56
@osulzhenko osulzhenko changed the title Add warning and remove all imp.ext.prebid.imp Remove all imp.ext.prebid.imp Aug 19, 2024
@Compile-Ninja Compile-Ninja merged commit 39c7a9f into master Aug 21, 2024
5 checks passed
@Compile-Ninja Compile-Ninja deleted the imp-exp-prebid-imp-fix branch August 21, 2024 06:11
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