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

Get Bid Type For Adjustments Bug Fix #2767

Merged
merged 34 commits into from
May 10, 2023

Conversation

AlexBVolcy
Copy link
Contributor

Addresses issue with getBidTypeForAdjustments, which is used to determine what bid type should be used to get the relevant bid adjustment. This is necessary specifically for the case where the bid type on the request is Video, but for bid adjustments we need to determine if that bid type is video-instream or video-outstream by looking at the Imp tied to a request.

The issue here was I assumed that if the bid type was video, that the imp would also have a video type in it. But it turns out Video could be nil in the imp, which lead to a nil dereference panic.

So I just needed to add a nil check into this function, and added an extra unit test for coverage.

@bsardo bsardo self-assigned this May 10, 2023
Copy link
Contributor

@guscarreon guscarreon left a comment

Choose a reason for hiding this comment

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

LGTM

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.

3 participants