Skip to content

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

Merged
Mat001 merged 1 commit into
masterfrom
ai/raju-opti/FSSDK-12750-cmab-attribute-id-fix
Jul 1, 2026
Merged

[AI-FSSDK] [FSSDK-12750] Use attribute ID instead of key for CMAB prediction requests#456
Mat001 merged 1 commit into
masterfrom
ai/raju-opti/FSSDK-12750-cmab-attribute-id-fix

Conversation

@raju-opti

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

Copy link
Copy Markdown
Contributor

Summary

The CMAB service's attribute filtering was using attribute keys as map keys in the filtered attributes passed to the prediction endpoint. The CMAB prediction API expects the attribute ID (not key) in the "id" field of each attribute object. This fix ensures the filtered attributes map uses attribute IDs as keys so the downstream HTTP request sends the correct identifiers.

Changes

  • Updated filterAttributes() to store filtered attributes by attribute ID instead of attribute key
  • Updated related tests to verify attributes are keyed by ID in filtered output, client calls, and cache hash computation

Jira Ticket

FSSDK-12750

@Mat001 Mat001 left a comment

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.

lgtm

@Mat001 Mat001 merged commit 3e503a9 into master Jul 1, 2026
12 of 13 checks passed
@Mat001 Mat001 deleted the ai/raju-opti/FSSDK-12750-cmab-attribute-id-fix branch July 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.

2 participants