Skip to content

Conversation

@osulzhenko
Copy link
Collaborator

@osulzhenko osulzhenko commented Nov 20, 2024

🔧 Type of changes

  • new bid adapter
  • update bid adapter
  • new feature
  • new analytics adapter
  • new module
  • bugfix
  • documentation
  • configuration
  • tech debt (test coverage, refactorings, etc.)

✨ What's the context?

What's the context for the changes? Are there any

🧠 Rationale behind the change

Why did you choose to make these changes? Were there any trade-offs you had to consider?

🔎 New Bid Adapter Checklist

  • verify email contact works
  • NO fully dynamic hosts
  • geographic host parameters are NOT required
  • NO direct use of HTTP is prohibited - implement an existing Bidder interface that will do all the job
  • if the ORTB is just forwarded to the endpoint, use the generic adapter - define the new adapter as the alias of the generic adapter
  • cover an adapter configuration with an integration test

🧪 Test plan

How do you know the changes are safe to ship to production?

🏎 Quality check

  • Are your changes following our code style guidelines?
  • Are there any breaking changes in your code?
  • Does your test coverage exceed 90%?
  • Are there any erroneous console logs, debuggers or leftover code in your changes?

@osulzhenko osulzhenko added do not merge Not the time for merging yet tests Functional or other tests labels Nov 20, 2024
@osulzhenko osulzhenko requested a review from marki1an November 20, 2024 13:24
@osulzhenko osulzhenko self-assigned this Nov 20, 2024
@osulzhenko osulzhenko changed the base branch from master to privacy/gdpr-update November 21, 2024 16:26
@osulzhenko osulzhenko removed the do not merge Not the time for merging yet label Nov 21, 2024
Copy link
Collaborator

@marki1an marki1an left a comment

Choose a reason for hiding this comment

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

All comments should be applied for auction spec

Comment on lines 726 to 727
then: "Bidder should be called"
assert !bidder.getBidderRequests(ampStoredRequest.id)
Copy link
Collaborator

Choose a reason for hiding this comment

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

then: "Bidder shouldn't be called"

assert metrics[TEMPLATE_REQUEST_DISALLOWED_COUNT.getValue(ampStoredRequest, FETCH_BIDS)] == 1

where:
requestCountry | accountCountry | requestIpV4 | requestIpV6 | header
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please use accountCountry and header in your test

and: "Flush metrics"
flushMetrics(privacyPbsService)

when: "PBS processes auction request"
Copy link
Collaborator

Choose a reason for hiding this comment

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

when: "PBS processes amp request"

Comment on lines 794 to 796
and: "Save account config without eea countries into DB"
accountDao.save(getAccountWithGdpr(ampRequest.account,
new AccountGdprConfig(enabled: true, eeaCountries: PBSUtils.getRandomEnum(Country.class, [BULGARIA]))))
Copy link
Collaborator

Choose a reason for hiding this comment

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

and: "Save account config with eea countries into DB"
     def account = getAccountWithGdpr(ampRequest.account,
                new AccountGdprConfig(enabled: true, eeaCountries: PBSUtils.getRandomEnum(Country.class, [BULGARIA])))
 accountDao.save(account)

@osulzhenko osulzhenko requested a review from marki1an December 3, 2024 09:36
@osulzhenko osulzhenko merged commit a046e2e into privacy/gdpr-update Dec 4, 2024
@osulzhenko osulzhenko deleted the functional-tests/Increase-GDPR-test-coverage branch December 4, 2024 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Functional or other tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants