Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

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

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#1160
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
Contributor

Summary

The CMAB prediction service was using the attribute key as the map key when filtering user attributes for CMAB experiments. The prediction endpoint expects the attribute id in the id field of the JSON payload, not the key. This change corrects the filtered attributes map to use attribute IDs as keys.

Changes

  • Updated CMAB service to use attribute ID instead of attribute key as the map key when building filtered attributes for prediction requests
  • Updated corresponding test assertions to expect attribute IDs as map keys

Jira Ticket

FSSDK-12750

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 77.691%. remained the same — ai/raju-opti/FSSDK-12750-test-1 into master

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