-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FSSDK-10265] fix: UPS Lookup
& Save
during batched Decide
#374
[FSSDK-10265] fix: UPS Lookup
& Save
during batched Decide
#374
Conversation
I want this reference PR to be clear about what needs changing.
_decisionBatchInProgress from true to false
I'm hitting `Lookup` thrice for some reason in DecideAllWithUspShouldOnlyLookupSaveOnce
This reverts commit dfe1367.
Lookup
& Save
during batched Decide
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good!
I have a couple of suggestions for legacy API support and testing.
userProfileServiceMock.Verify(l => l.Save(It.IsAny<Dictionary<string, object>>()), | ||
Times.Once); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These tests look good. Wondering if we have tests covering the contents of the final UPS save call, combining all decisions in the session.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also have the similar coverage (lookup once - save once, the ups save contents) with legacy APIs (activate, getVariation) for regression?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added coverage of the final UPS Save
as requested.
I'm researching the Activate
and GetVariation
tests where UPS is used.
Co-authored-by: Jae Kim <45045038+jaeopt@users.noreply.github.com>
…h-decide' into mike/FSSDK-10265-ups-during-batch-decide
I need more time to fix tests
Summary
Lookup
andSave
once when usingDecideAll
andDecideForKeys
.Test plan
Issues