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

Better experience to control DataStore model synchronization #1692

Open
3 of 9 tasks
HuiSF opened this issue Jun 6, 2022 · 1 comment
Open
3 of 9 tasks

Better experience to control DataStore model synchronization #1692

HuiSF opened this issue Jun 6, 2022 · 1 comment
Assignees
Labels
datastore Issues related to the DataStore Category feature-request A request for a new feature or an enhancement to an existing API or category.

Comments

@HuiSF
Copy link
Member

HuiSF commented Jun 6, 2022

Description

This issue is for tracking possible improvements on model synchronization with DataStore.

  1. Make it configurable to specify certain models to be excluded from DataStore sync engine, while still being able to operate these models in local DB
  2. Make it configurable to specify certain models to be excluded from DataStore local functionalities, i.e. when device is offline, DataStore APIs take no effect on these excluded models, but these models can be mutated or synced when the device is online
  3. Make it configurable to allow programmatically stop sync engine completely at runtime, and to remain the stopped state until DataStore.start is invoked
  4. ...

Categories

  • Analytics
  • API (REST)
  • API (GraphQL)
  • Auth
  • Authenticator
  • DataStore
  • Storage

Steps to Reproduce

No response

Screenshots

No response

Platforms

  • iOS
  • Android

Android Device/Emulator API Level

No response

Environment

N/A

Dependencies

N/A

Device

N/A

OS

N/A

CLI Version

N/A

Additional Context

No response

@HuiSF HuiSF added feature-request A request for a new feature or an enhancement to an existing API or category. datastore Issues related to the DataStore Category labels Jun 6, 2022
@vgribok
Copy link

vgribok commented Jan 6, 2023

Another case for excluding some model types from syncing is if owner user is not authorized to access a type. For example, with a dynamic group authorization, typical for multi-tenant back-office applications, a type may be fully inaccessible to the current mobile user, which currently will fail the sync, while in reality it's a valid use case needing to simply skip the sync of an unauthorized type.

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 feature-request A request for a new feature or an enhancement to an existing API or category.
Projects
None yet
Development

No branches or pull requests

2 participants