refactor: Route bulk user attribute sync through onSetAllUserAttributes#691
Conversation
…ner kits AppsFlyer and Braze: forward snapshot maps to AttributeListener.setAllUserAttributes. Singular: align override parameter names with UserAttributeListener and delegate. Made-with: Cursor
…one call - Declare onSetAllUserAttributes on BaseAttributeListener; remove from UserAttributeListener - KitManagerImpl: call BaseAttributeListener.onSetAllUserAttributes only (no duplicate setAllUserAttributes) - AttributeListener-only kits: delegate onSetAllUserAttributes to setAllUserAttributes - AttributeListenerTestKit: align setAllUserAttributes maps with Java API Made-with: Cursor
Compute getInstance(mpid, provider) once before the supportsAttributeLists branch. Made-with: Cursor
Drop the method from KitIntegration.AttributeListener; full sync is delivered via BaseAttributeListener.onSetAllUserAttributes. Kits keep setAllUserAttributes as ordinary helpers (no override). Update KitManagerImplTest and AttributeListenerTestKit accordingly. Made-with: Cursor
Remove redundant setAllUserAttributes helpers from kits and AttributeListenerTestKit. Update BaseAttributeListener Javadoc in KitIntegration. Made-with: Cursor
PR SummaryMedium Risk Overview
Affected kits and test kits are updated to implement Written by Cursor Bugbot for commit 641a6d3. This will update automatically on new commits. Configure here. |
|


Background
Bulk user attribute sync is now delivered through
BaseAttributeListener.onSetAllUserAttributesso kits implement one callback instead of maintaining a separatesetAllUserAttributeshelper.AttributeListenerno longer declaressetAllUserAttributes.What Has Changed
onSetAllUserAttributesonBaseAttributeListener;KitManagerImplcalls it when user attributes are received or lists are supported.setAllUserAttributesfromAttributeListener; kits implement logic directly inonSetAllUserAttributes(including former dual-listener delegation).setAllUserAttributeshelpers in affected kits andAttributeListenerTestKit; updatedKitManagerImplTestexpectations.Screenshots/Video
N/A
Checklist
Additional Notes
Target branch:
workstation/6.0-Release.