Skip to content

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

Merged
junaed-optimizely merged 3 commits into
masterfrom
ai/raju-opti/FSSDK-12750-test-1
Jul 1, 2026
Merged

[AI-FSSDK] [FSSDK-12750] Use attribute id instead of key for CMAB prediction requests#416
junaed-optimizely merged 3 commits into
masterfrom
ai/raju-opti/FSSDK-12750-test-1

Conversation

@raju-opti

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

Copy link
Copy Markdown
Contributor

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

@junaed-optimizely junaed-optimizely merged commit f7617ee into master Jul 1, 2026
10 of 11 checks passed
@junaed-optimizely junaed-optimizely deleted the ai/raju-opti/FSSDK-12750-test-1 branch July 1, 2026 13:46
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.

2 participants