-
Notifications
You must be signed in to change notification settings - Fork 748
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
Flipp: use height value from server response #3940
Conversation
…ds in decisions response (#8) * add compactHeight and standardHeight fields in decision response * modify tests * modify tests * modify tests * modify tests * adding height to expectedBidResponses * final testing * final changes * final changes * final changes
Code coverage summaryNote:
flippRefer here for heat map coverage report
|
Hi, could I please get two reviews to proceed with this change? Thank you @przemkaczmarek @bsardo @onkarvhanumante @minaguib @dlackty @dmitris @asweeney86 @hhhjort |
Hi @przemkaczmarek, I hope you're doing well. Can we get an update on this? |
Hello, could I please get another review to proceed with this change? Thank you @bsardo @onkarvhanumante @minaguib @dlackty @dmitris @asweeney86 @hhhjort |
Hi @bsardo , I hope you're doing well. Can we get an update on this? |
Hi @MishelleBit, we recently released PBS 3.0, more specifically v3.1.0, which updates Prebid Server package import references throughout the project from
As a result, please merge with master (no rebase) and then ensure all Prebid Server package import references in the files you’ve changed are |
Code coverage summaryNote:
flippRefer here for heat map coverage report
|
Code coverage summaryNote:
flippRefer here for heat map coverage report
|
Hi @bsardo, done! |
Hi @bsardo I hope you're doing well, can we get an update? |
adapters/flipp/flipp.go
Outdated
@@ -231,7 +243,20 @@ func buildBid(decision *InlineModel, impId string) *openrtb2.Bid { | |||
if decision.Contents[0].Data.Width != 0 { | |||
bid.W = decision.Contents[0].Data.Width | |||
} | |||
bid.H = 0 | |||
customDataInterface := decision.Contents[0].Data.CustomData | |||
customDataMap := customDataInterface.(map[string]interface{}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a test case where customdata is a different type to verify this adapter code gracefully handles and error and doesn't panic on an incorrect response.
Code coverage summaryNote:
flippRefer here for heat map coverage report
|
Thanks @SyntaxNode ! It should handle different types and i've set |
Hi @przemkaczmarek can you please reapprove? thank you! |
Hi @SyntaxNode can you please reapprove? thank you! |
@SyntaxNode Hello, you previously approved can you please re-approve? thank you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one last change and then we're good to go.
adapters/flipp/flipp.go
Outdated
if err != nil { | ||
return nil, []error{fmt.Errorf("flipp params not found. %v", err)} | ||
} | ||
err = json.Unmarshal(params, &flippExtParams) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use jsonutil.Unmarshal
instead.
7c84694
Code coverage summaryNote:
flippRefer here for heat map coverage report
|
Using standardHeight and compactHeight from server response. Modified some tests accordingly as well.