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(aws-datastore): Make the Sync Engine pausable/resumable on connectivity changes #2306

Merged
merged 27 commits into from
Mar 30, 2023

Conversation

manueliglesias
Copy link
Contributor

  • PR title and description conform to Pull Request guidelines.

Issue #, if available:
Fixes: #1757
Closes: #1963

Description of changes:

  • Makes the Orchestrator (SyncEngine) network-status-aware, so it can now be paused/resumed independently of the whole DataStore.

How did you test these changes?
Created an application with a custom ReachabilityMonitor to have control of the network status events. Tested toggling network connectivity and verified that only the network related pieces of DataStore were being paused/resumed correctly (e.g. The subscriptions/queries/mutations would happen again on connectivity available).

Documentation update required?

  • No
  • Yes (Please include a PR link for the documentation update)

General Checklist

  • Added Unit Tests
  • Added Integration Tests
  • Security oriented best practices and standards are followed (e.g. using input sanitization, principle of least privilege, etc)

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

@manueliglesias manueliglesias marked this pull request as ready for review February 27, 2023 03:47
@manueliglesias manueliglesias requested review from a team as code owners February 27, 2023 03:47
div5yesh
div5yesh previously approved these changes Feb 28, 2023
Signed-off-by: Manuel Iglesias <6154160+manueliglesias@users.noreply.github.com>
@div5yesh div5yesh enabled auto-merge (squash) March 8, 2023 19:07
@div5yesh div5yesh merged commit fc94e4c into main Mar 30, 2023
@div5yesh div5yesh deleted the manuelig/datastore/pause-resume-orchestrator branch March 30, 2023 16:02
@div5yesh div5yesh restored the manuelig/datastore/pause-resume-orchestrator branch May 4, 2023 17:27
@div5yesh div5yesh deleted the manuelig/datastore/pause-resume-orchestrator branch May 4, 2023 17:28
div5yesh added a commit that referenced this pull request May 4, 2023
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.

DataStore event networkStatus true when offline
4 participants