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

OFF-1457: height should use the compactHeight and standardHeight fields in decisions response #8

Merged
merged 10 commits into from
Sep 25, 2024

Conversation

MishelleBit
Copy link

No description provided.

@hasan-kanjee
Copy link

@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

@MishelleBit MishelleBit changed the title add compactHeight and standardHeight fields in decision response OFF:1457 add compactHeight and standardHeight fields in decision response Sep 19, 2024
Copy link

gitstream-cm bot commented Sep 19, 2024

This PR is missing a Jira ticket reference in the title or description.
Please add a Jira ticket reference to the title or description of this PR.

Copy link

gitstream-cm bot commented Sep 19, 2024

🥷 Code experts: hasan-kanjee

hasan-kanjee has most 🧠 knowledge in the files.

See details

adapters/flipp/flipp.go

Knowledge based on git-blame:
hasan-kanjee: 93%

To learn more about /:\ gitStream - Visit our Docs

@MishelleBit MishelleBit changed the title OFF:1457 add compactHeight and standardHeight fields in decision response OFF-1457 add compactHeight and standardHeight fields in decision response Sep 20, 2024
@MishelleBit MishelleBit changed the title OFF-1457 add compactHeight and standardHeight fields in decision response OFF-1457 Sep 20, 2024
Copy link

@hasan-kanjee hasan-kanjee left a 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.

adTypes = []int64{4309, 641}
dtxTypes = []int64{5061}
flippExtParams openrtb_ext.ImpExtFlipp
key string
Copy link

@hasan-kanjee hasan-kanjee Sep 24, 2024

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

Copy link
Author

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

Comment on lines 248 to 254
if flippExtParams.Options.StartCompact {
bid.H = defaultCompactHeight
key = "compactHeight"
} else {
bid.H = defaultStandardHeight
key = "standardHeight"
}

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"

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

Copy link

@hasan-kanjee hasan-kanjee left a 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

@MishelleBit MishelleBit changed the title OFF-1457 OFF-1457: height should use the compactHeight and standardHeight fields in decisions response Sep 25, 2024
@MishelleBit MishelleBit merged commit 70dec6e into master Sep 25, 2024
5 of 6 checks passed
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.

2 participants