Closed ajaysubra closed 3 months ago
Makes sense with your annotations, two questions remain in my mind:
- Can the snapshot tests for push token request reflect profile attributes, so that this important case is covered by tests
- Does the event API suffer the same sort of problem? If I set profile attributes and created an event, would the profile attributes get sent to the backend appropriately?
pendingProfile
when flushing the queue we will make a profile/token request until pendingProfile
is nil. Lines 247-249. In order words, you could make an events request either before or after setting profile attributes, the event request will not have the profile attributes. Instead there will be a profile/token request that is made after the profile attributes are set. This is the current setup, there could be a world where this is captured in the events request and we can avoid a network call but I'll keep that out of the scope of this PR.
Sorry, I didn't even notice this was a draft! I knew you'd said something about tests somewhere.
Sounds good about the events question, just wanted to be sure we weren't already merging profile changes into events calls too. Definitely not something I expected you to add now.
Description
Check List
Manual Test Plan
Supporting Materials