Skip to content

Make SyncEngine an interface. #3283

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

Merged
merged 6 commits into from
Jun 26, 2020
Merged

Make SyncEngine an interface. #3283

merged 6 commits into from
Jun 26, 2020

Conversation

wu-hui
Copy link
Contributor

@wu-hui wu-hui commented Jun 25, 2020

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Jun 25, 2020

🦋 Changeset is good to go

Latest commit: e035d7c

We got this.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jun 25, 2020

Binary Size Report

Affected SDKs

  • @firebase/firestore

    Type Base (fa70d0a) Head (ca73887) Diff
    browser 248 kB 248 kB +78 B (+0.0%)
    esm2017 194 kB 194 kB +82 B (+0.0%)
    main 493 kB 494 kB +692 B (+0.1%)
    module 246 kB 246 kB +78 B (+0.0%)
  • @firebase/firestore/memory

    Type Base (fa70d0a) Head (ca73887) Diff
    browser 186 kB 186 kB +40 B (+0.0%)
    esm2017 145 kB 145 kB +40 B (+0.0%)
    main 363 kB 363 kB +368 B (+0.1%)
    module 184 kB 184 kB +40 B (+0.0%)
  • firebase

    Type Base (fa70d0a) Head (ca73887) Diff
    firebase-firestore.js 287 kB 287 kB +78 B (+0.0%)
    firebase-firestore.memory.js 226 kB 226 kB +40 B (+0.0%)
    firebase.js 820 kB 820 kB +78 B (+0.0%)

Test Logs

@wu-hui wu-hui force-pushed the wuandy/MakeSyncEngineInterface branch from ce908d8 to 618e60a Compare June 25, 2020 17:36
/**
* An impplementation of SyncEngine that implement SharedClientStateSyncer for
* An extension of SyncEngine that also include SharedClientStateSyncer for
Copy link
Contributor

Choose a reason for hiding this comment

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

s/include/includes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

*/
registerPendingWritesCallback(callback: Deferred<void>): Promise<void>;

activeLimboDocumentResolutions(): SortedMap<DocumentKey, TargetId>;
Copy link
Contributor

Choose a reason for hiding this comment

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

Add // Visible for testing

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.


activeLimboDocumentResolutions(): SortedMap<DocumentKey, TargetId>;

enqueuedLimboDocumentResolutions(): DocumentKey[];
Copy link
Contributor

Choose a reason for hiding this comment

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

Add // Visible for testing

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@wu-hui wu-hui assigned Feiyang1 and unassigned wu-hui Jun 26, 2020
@wu-hui wu-hui merged commit 8e0c036 into master Jun 26, 2020
@firebase firebase locked and limited conversation to collaborators Jul 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants