Skip to content

Conversation

@osulzhenko
Copy link
Collaborator

@osulzhenko osulzhenko commented Sep 16, 2025

🔧 Type of changes

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

✨ What's the context?

What's the context for the changes?

🧠 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 hostnames
  • geographic host parameters are NOT required
  • 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 requested a review from marki1an September 16, 2025 10:39
@osulzhenko osulzhenko added do not merge Not the time for merging yet tests Functional or other tests labels Sep 16, 2025
@osulzhenko osulzhenko changed the title Functional tests/targeting truncating keys message Test: Add a warning for when targeting attributes are truncated Sep 16, 2025
@osulzhenko osulzhenko changed the base branch from master to targeting-truncating-keys-message September 16, 2025 13:38
@osulzhenko osulzhenko removed the do not merge Not the time for merging yet label Sep 16, 2025
@osulzhenko osulzhenko self-assigned this Sep 26, 2025
private static final Integer SUBORDINATE_RANK = 2
private static final Integer DEFAULT_TRUNCATE_CHARS = 20
private static final Integer EXTENDED_TRUNCATE_CHARS = PbsConfig.targetingConfig.get('settings.targeting.truncate-attr-chars').toInteger()
private static final Map<String, String> DEFAULT_TARGETING_CONFIG = ['settings.targeting.truncate-attr-chars': null] as Map
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 double quotes or single quotes
It isn't default, rather empty or undefined

def ampResponse = pbsWithDefaultTargetingLength.sendAmpRequest(ampRequest)

then: "Amp response should contain warning"
assert ampResponse.ext?.warnings[TARGETING]*.message == ["Key prefix value is dropped to default. " +
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can be constant with placeholder

def accountConfig = new AccountConfig(status: ACTIVE, auction: accountAuctionConfig)
def pbsService = pbsServiceFactory.getService(
["settings.default-account-config": encode(accountConfig)])
def pbsConfig = ["settings.default-account-config": encode(accountConfig)]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add and block between creating of account and creating pbs container

@osulzhenko osulzhenko requested a review from marki1an September 29, 2025 07:48
@osulzhenko osulzhenko merged commit effec49 into targeting-truncating-keys-message Sep 29, 2025
1 check passed
@osulzhenko osulzhenko deleted the functional-tests/targeting-truncating-keys-message branch September 29, 2025 09:46
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