-
Notifications
You must be signed in to change notification settings - Fork 576
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
Support Flexible Sync #5301
Merged
Merged
Support Flexible Sync #5301
Changes from 26 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
050bb2e
Refactored Realm constructor
kraenhansen 8c91182
Implement Subscription.
elle-j 26b26d0
Implement BaseSubscriptionSet.
elle-j 1843c76
Update spec.yaml and expose helper functions.
elle-j e31fc4e
Implement MutableSubscriptionSet.
elle-j b0fed0d
Implement SubscriptionSet.
elle-j 8ccfdb6
Handle configuration with flexible set to true.
elle-j 94ecc6a
Increase timeout for Flexible Sync tests.
elle-j e911755
Add subscription classes to Sync namespace.
elle-j 0bfc50e
Refactor SubscriptionSet.update() into separate async and sync methods.
elle-j 3714923
Validate realm configuration.
elle-j 5e2c864
Handle initial subscriptions.
elle-j c1f65ff
Update expected error messages for tests.
elle-j b1d27c9
Move schema validation from Configuration.ts to /schema directory.
elle-j eb72a08
Import types instead of accessing them through Realm namespace in Typ…
elle-j 2a63ad8
Update variable names.
elle-j 41e098a
Support Asymmetric Sync.
elle-j 2d638a7
Enable previously skipped tests.
elle-j bf33629
Change test to not accept 'flexible: false'.
elle-j 6c5ad82
Allow opening a synced realm locally.
elle-j ef248ea
Use BaseSubscriptionSet as a proxy to allow index access operator.
elle-j 9ef8cc2
Rearrange if-conditions for increased readability.
elle-j 20405a0
Refactor subscription classes to use parameter properties.
elle-j 1858124
Make 'this.realm' available in asymmetric tests.
elle-j 2cdd147
Make subscription sets iterable.
elle-j 8f395b1
Fix bug when removing a subscription by object type.
elle-j 1d32347
Add 'isAsymmetric()' and 'isEmbedded()' helpers.
elle-j aefa998
Add '@example' to TSDocs.
elle-j 3cced95
Validate schema version is 0 or positive integer.
elle-j bb7024d
Validate sync config before getting a sync session.
elle-j 8189f83
Remove unnecessary copy of variable.
elle-j 3c7ffab
Update comments and minor refactor.
elle-j 6faba8d
Set timeout in tests to same as CI, and small refactor.
elle-j 4a0834f
Remove redundant docs.
elle-j 822766e
Update assert error messages for consistency.
elle-j 2d5c694
Remove redundant docs.
elle-j 60a27c6
Replace string with char.
elle-j c7a3e2a
Add '@internal' to validation functions.
elle-j 2eafc6f
Resolved merge conflict.
elle-j File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(General comment, not specific to this line)
Should any of these changes be backported to the master branch or are they bindgen-specific? Ideally, we want the tests in bindgen and master to be as in-sync as possible since that is how we are ensuring that we don't change behavior (except where we intend to!)