Skip to content

[AI-FSSDK] [FSSDK-12750] Use attribute id instead of key for CMAB prediction requests#416

Open
raju-opti wants to merge 1 commit into
masterfrom
ai/raju-opti/FSSDK-12750-test-1
Open

[AI-FSSDK] [FSSDK-12750] Use attribute id instead of key for CMAB prediction requests#416
raju-opti wants to merge 1 commit into
masterfrom
ai/raju-opti/FSSDK-12750-test-1

Conversation

@raju-opti

@raju-opti raju-opti commented Jun 26, 2026

Copy link
Copy Markdown

Summary

The CMAB prediction request payload was incorrectly sending the attribute's key instead of its id in the "id" field. The CMAB prediction endpoint expects the attribute id, not the key, so this fix ensures the correct identifier is used when building filtered attribute maps for CMAB experiments.

Changes

  • Fix FilterAttributes in DefaultCmabService to use attribute id instead of key as the dictionary key
  • Update CMAB service tests to verify attribute ids are used in filtered attribute maps
  • Add explicit test case to confirm attribute id is used over attribute key

Jira Ticket

FSSDK-12750

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.

1 participant