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

Sovrn: Accept Imp.ext Bidfloor either as a number or string #3955

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

ikagotso
Copy link
Contributor

@ikagotso ikagotso commented Oct 4, 2024

purpose of this commit is to fix this issue : #3514

Copy link

github-actions bot commented Oct 4, 2024

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, 3e1298a

sovrn

Refer here for heat map coverage report

github.com/prebid/prebid-server/v2/adapters/sovrn/sovrn.go:28:	MakeRequests		84.6%
github.com/prebid/prebid-server/v2/adapters/sovrn/sovrn.go:134:	addHeaderIfNonEmpty	100.0%
github.com/prebid/prebid-server/v2/adapters/sovrn/sovrn.go:140:	MakeBids		84.0%
github.com/prebid/prebid-server/v2/adapters/sovrn/sovrn.go:194:	getExtBidFloor		100.0%
github.com/prebid/prebid-server/v2/adapters/sovrn/sovrn.go:212:	getTagId		100.0%
github.com/prebid/prebid-server/v2/adapters/sovrn/sovrn.go:220:	getImpIdx		100.0%
github.com/prebid/prebid-server/v2/adapters/sovrn/sovrn.go:233:	Builder			100.0%
total:								(statements)		87.5%

@przemkaczmarek przemkaczmarek self-assigned this Oct 10, 2024
przemkaczmarek
przemkaczmarek previously approved these changes Oct 23, 2024
@bsardo
Copy link
Collaborator

bsardo commented Nov 4, 2024

Hi @ikagotso, we recently released PBS 3.0, more specifically v3.1.0, which updates Prebid Server package import references throughout the project from v2 to v3.
For example:

import (
    "github.com/prebid/prebid-server/v3/adapters"
)

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 v3 such that the test suite passes so we can resume reviewing. Thanks!

Copy link

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, 55c0b16

sovrn

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/sovrn/sovrn.go:29:	MakeRequests		84.6%
github.com/prebid/prebid-server/v3/adapters/sovrn/sovrn.go:135:	addHeaderIfNonEmpty	100.0%
github.com/prebid/prebid-server/v3/adapters/sovrn/sovrn.go:141:	MakeBids		84.0%
github.com/prebid/prebid-server/v3/adapters/sovrn/sovrn.go:195:	getExtBidFloor		100.0%
github.com/prebid/prebid-server/v3/adapters/sovrn/sovrn.go:213:	getTagId		100.0%
github.com/prebid/prebid-server/v3/adapters/sovrn/sovrn.go:221:	getImpIdx		100.0%
github.com/prebid/prebid-server/v3/adapters/sovrn/sovrn.go:234:	Builder			100.0%
total:								(statements)		87.5%

@ikagotso
Copy link
Contributor Author

Hi @ikagotso, we recently released PBS 3.0, more specifically v3.1.0, which updates Prebid Server package import references throughout the project from v2 to v3. For example:

import (
    "github.com/prebid/prebid-server/v3/adapters"
)

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 v3 such that the test suite passes so we can resume reviewing. Thanks!

hey,
done.

AdUnitCode string `json:"adunitcode,omitempty"`
TagId string `json:"tagId,omitempty"`
Tagid string `json:"tagid,omitempty"`
BidFloor json.RawMessage `json:"bidfloor,omitempty"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

You can make this type interface{} and then you won't have to unmarshal in getExtBidFloor.

Copy link

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, 8069767

sovrn

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/sovrn/sovrn.go:29:	MakeRequests		84.6%
github.com/prebid/prebid-server/v3/adapters/sovrn/sovrn.go:135:	addHeaderIfNonEmpty	100.0%
github.com/prebid/prebid-server/v3/adapters/sovrn/sovrn.go:141:	MakeBids		84.0%
github.com/prebid/prebid-server/v3/adapters/sovrn/sovrn.go:195:	getExtBidFloor		100.0%
github.com/prebid/prebid-server/v3/adapters/sovrn/sovrn.go:207:	getTagId		100.0%
github.com/prebid/prebid-server/v3/adapters/sovrn/sovrn.go:215:	getImpIdx		100.0%
github.com/prebid/prebid-server/v3/adapters/sovrn/sovrn.go:228:	Builder			100.0%
total:								(statements)		87.1%

@bsardo bsardo self-assigned this Nov 22, 2024
@bsardo bsardo self-requested a review November 22, 2024 02:40
@bsardo
Copy link
Collaborator

bsardo commented Nov 22, 2024

I don't see a adapters/sovrn/params_test.go file. Please add it to ensure your bidder params rules defined in your static/bidder-params/sovrn.json file are working properly and be sure to adequately exercise these new rules for bidfloor. I suggest copying it from another adapter as a starting point.

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