Skip to content
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

[SDKS-7657] fix SDK_UPDATE issue #264

Closed
wants to merge 2 commits into from
Closed

[SDKS-7657] fix SDK_UPDATE issue #264

wants to merge 2 commits into from

Conversation

emmaz90
Copy link
Contributor

@emmaz90 emmaz90 commented Oct 31, 2023

Javascript commons library

What did you accomplish?

How do we test the changes introduced in this PR?

Extra Notes

@emmaz90 emmaz90 requested a review from a team as a code owner October 31, 2023 21:39
@@ -170,6 +206,8 @@ export function splitChangesUpdaterFactory(
return Promise.resolve(!splitsEventEmitter.splitsArrived || (since !== splitChanges.till && (isClientSide || checkAllSegmentsExist(segments))))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can follow the same approach than Android SDK https://github.com/splitio/android-client/pull/550/files
Remove computeFromSets function, and instead use the return value of splits.removeSplits(mutation.removed):

          return Promise.all([
            splits.setChangeNumber(splitChanges.till),
            splits.addSplits(mutation.added),
            splits.removeSplits(mutation.removed),
            segments.registerSegments(mutation.segments)
          ]).then(([,addedList,removedList,]) => {

@emmaz90 emmaz90 closed this Nov 1, 2023
@emmaz90 emmaz90 deleted the sdks-7657 branch November 1, 2023 20:12
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