Skip to content

[AI-FSSDK] [FSSDK-12670] Block ODP identify event for single identifier#1152

Merged
raju-opti merged 7 commits into
masterfrom
ai/jaeopt/FSSDK-12670-odp-event
Jun 1, 2026
Merged

[AI-FSSDK] [FSSDK-12670] Block ODP identify event for single identifier#1152
raju-opti merged 7 commits into
masterfrom
ai/jaeopt/FSSDK-12670-odp-event

Conversation

@jaeopt
Copy link
Copy Markdown
Contributor

@jaeopt jaeopt commented May 26, 2026

Summary

Fixes ODP identify event to only send when multiple valid identifiers exist. Previously, the SDK sent an identify event even with a single identifier (just fs_user_id or just vuid), which provides no identity-linking value and generates unnecessary network traffic.

Changes

  • Added identifier count guard in DefaultOdpManager.identifyUser to skip event dispatch when fewer than 2 valid identifiers are present
  • Added debug-level logging when the identify event is skipped due to single identifier
  • Updated tests for single-identifier cases to expect no event sent

Jira Ticket

FSSDK-12670

Notes

Comment thread lib/odp/odp_manager.ts Outdated
// Identify requires 2+ identifiers to link (e.g., vuid + fs_user_id).
// A single identifier has no cross-reference value and generates unnecessary traffic.
if (identifiers.size < 2) {
this.logger.log(LogLevel.Debug, 'ODP identify event is not dispatched (fewer than 2 valid identifiers).');
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this is not a supported interface. Should use this.logger.debug(msg) instead

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

also, logger can be undefined. should use this.logger?.debug

@coveralls
Copy link
Copy Markdown

coveralls commented Jun 1, 2026

Coverage Status

coverage: 77.713% (-0.05%) from 77.761% — ai/jaeopt/FSSDK-12670-odp-event into master

@raju-opti raju-opti merged commit 80e4c84 into master Jun 1, 2026
15 of 24 checks passed
@raju-opti raju-opti deleted the ai/jaeopt/FSSDK-12670-odp-event branch June 1, 2026 19:17
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