-
Notifications
You must be signed in to change notification settings - Fork 0
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
OFF-1457: height should use the compactHeight and standardHeight fields in decisions response #8
Conversation
@MishelleBit there are tests that are failing due to the change and need to be fixed https://github.com/wishabi/prebid-server/actions/runs/10944550258/job/30386689526?pr=8 |
This PR is missing a Jira ticket reference in the title or description. |
🥷 Code experts: hasan-kanjee hasan-kanjee has most 🧠 knowledge in the files. See details
Knowledge based on git-blame: To learn more about /:\ gitStream - Visit our Docs |
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.
@MishelleBit can you look at the tests again and make sure we are only updating the relevant values. We should be updating the mockResponse
customData
and the expectedBidResponses
h
value.
adapters/flipp/flipp.go
Outdated
adTypes = []int64{4309, 641} | ||
dtxTypes = []int64{5061} | ||
flippExtParams openrtb_ext.ImpExtFlipp | ||
key string |
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.
you can just initialize the key here to be standardHeight
. Also maybe we can make it a bit more descriptive like customDataKey
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.
initializing the key there to be standardHeight causes some errors. I think it's because the key will never be modified again in buildBid to standardHeight from compactHeight if it's needed @hasan-kanjee
adapters/flipp/flipp.go
Outdated
if flippExtParams.Options.StartCompact { | ||
bid.H = defaultCompactHeight | ||
key = "compactHeight" | ||
} else { | ||
bid.H = defaultStandardHeight | ||
key = "standardHeight" | ||
} |
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.
then here you can do something like
bid.H = defaultStandardHeight
if flippExtParams.Options.StartCompact {
bid.H = defaultCompactHeight
key = "compactHeight"
}
customDataMap := customDataInterface.(map[string]interface{}) | ||
|
||
bid.H = defaultStandardHeight | ||
customDataKey = "standardHeight" |
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.
@MishelleBit looks good you can just move this to the top where you are declaring the customDataKey
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.
LGTM @MishelleBit can you please update the PR title name as well
No description provided.