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

feat(datastore): DataStore Hub events (#766) #795

Merged
merged 6 commits into from
Oct 20, 2020
Merged

Conversation

ruiguoamz
Copy link
Contributor

@ruiguoamz ruiguoamz commented Oct 2, 2020

Want to merge:

into main

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

* initialize networkStatus PR

* fixed an indentation

* fixed unit test

* added ready but not yet implemented

* ready for review

* removed one publisher

* fixed a typo

* updated passthroughSubject to CurrentValueSubject in NetworkReachabilityNotifier

* updated ReachabilityNotifierTests

* plural

* removed one log info

* Update DataStoreCategory+HubPayloadEventName.swift

* updated integration test

* updated integration test

Co-authored-by: Guo <[email protected]>
@ruiguoamz ruiguoamz added the datastore Issues related to the DataStore category label Oct 2, 2020
@ruiguoamz ruiguoamz self-assigned this Oct 2, 2020
ruiguoamz and others added 4 commits October 2, 2020 16:30
* initialize networkStatus PR

* fixed an indentation

* fixed unit test

* added ready but not yet implemented

* ready for review

* removed one publisher

* fixed a typo

* updated passthroughSubject to CurrentValueSubject in NetworkReachabilityNotifier

* updated ReachabilityNotifierTests

* plural

* removed one log info

* Update DataStoreCategory+HubPayloadEventName.swift

* updated integration test

* updated integration test

Co-authored-by: Guo <[email protected]>
* switching branch

* switching branch

* initial modelsynced && syncQueriesReady PR

* updated some mock* files

* self.modelSyncedEvent.build()

* updated ReconcileAndLocalSave: query to check local store before deciding create or update mutationType

* added one integration test for modelsynced event

* update count to atomic operation

* update count to atomic operation

* did some clean up

* ready for review

* ready for review 2

* updated part of comments

* updated logic

* fixed one unit test

* modified reconcileAndLocalSave

* did some clean up

* reimplement logic: Added SyncEventEmitter & ModelSyncEventEmitter

* did some clean up and fixed a bug for causing a unit test to fail

* ready for review

* addressed some comments

* fixed some mock class

* removed testing part for modelsynced

* addressed some PR comments

* updated several unit tests and added ready event

* DispatchQueue.main -> DispatchQueue.global() in RemoteSyncEngine

* updated two unit tests

* removed ready event from this PR

* Added SyncEventEmitterTests

* added one unit test in ReconcileAndLocalSave test

* updated two unit tests class

* updated two unit test classes: InitialSyncOrchestratorTests and SyncEventEmitterTests

* 10/08/2020 comments addressed

* fixed some comments part1

* fixed one build error

* try to fix a cicd error

* addressed lots of comments

* fix underlying queue for InitialSyncOrchestrator

* ready for re-review

* abc

* remove one reset from setup()

* error handling in initialSyncOrchestrator

* updated some comments

Co-authored-by: Guo <[email protected]>
Co-authored-by: Tim Schmelter <[email protected]>
* switching branch

* switching branch

* initial modelsynced && syncQueriesReady PR

* updated some mock* files

* self.modelSyncedEvent.build()

* updated ReconcileAndLocalSave: query to check local store before deciding create or update mutationType

* added one integration test for modelsynced event

* update count to atomic operation

* update count to atomic operation

* did some clean up

* ready for review

* ready for review 2

* updated part of comments

* updated logic

* fixed one unit test

* modified reconcileAndLocalSave

* did some clean up

* reimplement logic: Added SyncEventEmitter & ModelSyncEventEmitter

* did some clean up and fixed a bug for causing a unit test to fail

* ready for review

* addressed some comments

* fixed some mock class

* removed testing part for modelsynced

* addressed some PR comments

* updated several unit tests and added ready event

* DispatchQueue.main -> DispatchQueue.global() in RemoteSyncEngine

* updated two unit tests

* removed ready event from this PR

* Added SyncEventEmitterTests

* Initialize Ready event PR

* remove dispatchGroup, use AtomicValue

* fixed a typo

* added one unit test in ReconcileAndLocalSave test

* updated two unit tests class

* Initialize Ready event PR

* remove dispatchGroup, use AtomicValue

* fixed a typo

* Revert "fixed a typo"

This reverts commit b7871af.

* fjk

* updated two unit test classes: InitialSyncOrchestratorTests and SyncEventEmitterTests

* 10/08/2020 comments addressed

* fixed some comments part1

* fixed one build error

* try to fix a cicd error

* addressed lots of comments

* fix underlying queue for InitialSyncOrchestrator

* ready for re-review

* abc

* remove one reset from setup()

* error handling in initialSyncOrchestrator

* addressed comments

* updated some comments

Co-authored-by: Guo <[email protected]>
Co-authored-by: Tim Schmelter <[email protected]>
@ruiguoamz ruiguoamz marked this pull request as ready for review October 15, 2020 17:01
@ruiguoamz ruiguoamz added this to the 1.4.0 milestone Oct 15, 2020
Copy link
Contributor

@lawmicha lawmicha left a comment

Choose a reason for hiding this comment

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

approving as this is just a merge from feature branch into main. all related PRs in description have been merged into this feature branch.

@ruiguoamz ruiguoamz merged commit 62946da into main Oct 20, 2020
@ruiguoamz ruiguoamz deleted the feature/hub-events branch October 20, 2020 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datastore Issues related to the DataStore category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants