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

sspBC adapter: update to v4.6 (notifications, user sync) #5941

Merged
merged 15 commits into from
Nov 25, 2020

Conversation

wojciech-bialy-wpm
Copy link
Contributor

Type of change

  • Feature

Description of change

Update sspBC adapter to v4.6:

  • add notification endpoint
  • send bidWon and onTimeout notifications
  • send CMP version to user sync endpoint

Wojciech Biały and others added 12 commits July 22, 2020 16:14
…set test mode in adexchange, read site SN from bid response
Update sspbc-adapter branch
Update sspbc-adapter branch
Update sspbc-adapter branch
Update sspbc-adapter branch
Update adapter to v4.6
- add notification endpoint
- send bidWon and onTimeout notifications
- send CMP version to user sync endpoint
@wojciech-bialy-wpm wojciech-bialy-wpm changed the title sspBC adapter: update to v4.6 (notifications, ser sync) sspBC adapter: update to v4.6 (notifications, user sync) Nov 9, 2020
@robertrmartinez
Copy link
Collaborator

please add unit tests @wojciech-bialy-wpm

@osazos
Copy link
Collaborator

osazos commented Nov 13, 2020

Hi @wojciech-bialy-wpm,

In order to approve your PR, could you please

  • add tests to cover onBidWon and onTimeout events, without these tests, your test-coverage is under 80%.
  • fix your CI errors (Lint)
  • fix your failing test : ✖ should provide correct url, if frame sync is allowed

You should add in your conditions: bid.params && bid.params.length ? … : '' to avoid error if a params array is empty.

@wojciech-bialy-wpm
Copy link
Contributor Author

Sorry for the delay.

Tests updated:

  • getUserSyncs test fixed (failed when adapter started appending tcf version to the url)
  • onBidWon test added
  • onTimeout test added

In the last two cases, while I can't get sinon to work with Prebid.js ajax module (similar case as in #3842) methods now check whether notification payload is correctly constructed.

@osazos
Copy link
Collaborator

osazos commented Nov 17, 2020

@wojciech-bialy-wpm, where is your updated test file please? I can't see it in your the files changed of this PR.

Update tests for sspBC adapter: 
- add onBidWon test
- add onTimeout test
- alter getUserSyncs test
@wojciech-bialy-wpm
Copy link
Contributor Author

@osazos Oh, I see the last commit (with changes to test/spec/modules/sspBCAdapter_spec.js) did not go through. Updating now.

Copy link
Collaborator

@osazos osazos left a comment

Choose a reason for hiding this comment

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

LGTM

@osazos osazos added the LGTM label Nov 23, 2020
@osazos osazos merged commit 678ffdf into prebid:master Nov 25, 2020
stsepelin pushed a commit to cointraffic/Prebid.js that referenced this pull request May 28, 2021
Update adapter to v4.6
- add notification endpoint
- send bidWon and onTimeout notifications
- send CMP version to user sync endpoint

Co-authored-by: Wojciech Biały <wb@WojciechBialy.local>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants