Skip to content

LI module: Use matcher instead of source for eid premission#4487

Open
peixunzhang wants to merge 14 commits into
prebid:masterfrom
LiveIntent:DATA-46376
Open

LI module: Use matcher instead of source for eid premission#4487
peixunzhang wants to merge 14 commits into
prebid:masterfrom
LiveIntent:DATA-46376

Conversation

@peixunzhang
Copy link
Copy Markdown

🔧 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?

Use matcher to determine when to apply EID permissions, instead of source names, to avoid collisions with unrelated traffic and ensure we only permission IDs we enrich.

🏎 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?

@Net-burst Net-burst requested review from CTMBNara and Net-burst May 7, 2026 15:07
Comment on lines +229 to +230
final List<ExtRequestPrebidDataEidPermissions> modifiedEidPermissions = CollectionUtils
.isEmpty(eidPermissions)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

One-line it

.build())
.toList();
private List<ExtRequestPrebidDataEidPermissions> createEidPermissions() {
return List.of(ExtRequestPrebidDataEidPermissions.builder()
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

List.of -> Collections.singletonList

@peixunzhang peixunzhang requested a review from CTMBNara May 18, 2026 08:04
CTMBNara
CTMBNara previously approved these changes May 19, 2026
Net-burst
Net-burst previously approved these changes May 20, 2026
Copy link
Copy Markdown
Collaborator

@Net-burst Net-burst left a comment

Choose a reason for hiding this comment

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

LGTM

@peixunzhang
Copy link
Copy Markdown
Author

LGTM

Thanks!

@osulzhenko
Copy link
Copy Markdown
Collaborator

Hi @peixunzhang, Danylo made a good point, build is currently broken. Could you fix the checkstyle?

Error:  /home/runner/work/prebid-server-java/prebid-server-java/extra/modules/live-intent-omni-channel-identity/src/main/java/org/prebid/server/hooks/modules/liveintent/omni/channel/identity/v1/hooks/LiveIntentOmniChannelIdentityProcessedAuctionRequestHook.java:221:17: 'if' child has incorrect indentation level 16, expected level should be 12. [Indentation]
Error:  /home/runner/work/prebid-server-java/prebid-server-java/extra/modules/live-intent-omni-channel-identity/src/main/java/org/prebid/server/hooks/modules/liveintent/omni/channel/identity/v1/hooks/LiveIntentOmniChannelIdentityProcessedAuctionRequestHook.java:288:17: 'if' child has incorrect indentation level 16, expected level should be 12. [Indentation]

@peixunzhang
Copy link
Copy Markdown
Author

peixunzhang commented May 20, 2026

Hi @peixunzhang, Danylo made a good point, build is currently broken. Could you fix the checkstyle?

Error:  /home/runner/work/prebid-server-java/prebid-server-java/extra/modules/live-intent-omni-channel-identity/src/main/java/org/prebid/server/hooks/modules/liveintent/omni/channel/identity/v1/hooks/LiveIntentOmniChannelIdentityProcessedAuctionRequestHook.java:221:17: 'if' child has incorrect indentation level 16, expected level should be 12. [Indentation]
Error:  /home/runner/work/prebid-server-java/prebid-server-java/extra/modules/live-intent-omni-channel-identity/src/main/java/org/prebid/server/hooks/modules/liveintent/omni/channel/identity/v1/hooks/LiveIntentOmniChannelIdentityProcessedAuctionRequestHook.java:288:17: 'if' child has incorrect indentation level 16, expected level should be 12. [Indentation]

sure, i will fix it

i fixed the indent, please check~
thank you

Use matcher to determine when to apply EID permissions, instead of source names, to avoid collisions with unrelated traffic and ensure we only permission IDs we enrich.:
@peixunzhang peixunzhang dismissed stale reviews from Net-burst and CTMBNara via 8cf09db May 20, 2026 13:41
@peixunzhang peixunzhang requested review from CTMBNara and Net-burst May 21, 2026 08:45
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.

4 participants