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

Sync config error handler #577

Merged
merged 102 commits into from
May 25, 2022
Merged

Sync config error handler #577

merged 102 commits into from
May 25, 2022

Conversation

desistefanova
Copy link
Contributor

FlexibleSyncConfig ErrorHandle implementation. Fixes #361

nielsenko and others added 30 commits May 12, 2022 08:12
Only synchonous version for now, since async C-API doesn't allow userdata
This requires support for out-of-isolate callbacks. To do this a dart
specific EventLoopDispatcher and DispatchFreeUserdata is introduced.
Also, SubscriptionSet.remove* are now void methods, and corresponding
_RealmCore functions uses invokeGetBool.
When nothing is found we should return null on find. Hence we cannot use
invokeGetPointer, and also we need to pass null up the conversion stack.
* Add subscription tests to test_driver/realm_test.dart
* Allow network use from test_driver app on macos
The add method takes an optional update parameter, that default to
false. If true, the add will update the existing subscription if any.
Otherwise, it will fail if the subscription exists.
* remove is now called removeByQuery
* remove instead takes a Subscription as an argument
* removeAll is renamed to clear to match List.clear
* all remove* methods now returns a boolean indicating whether a
  subscription was removed
Base automatically changed from ni/sync-session to master May 19, 2022 20:11
@desistefanova desistefanova marked this pull request as draft May 23, 2022 08:12
test/session_test.dart Outdated Show resolved Hide resolved
test/session_test.dart Outdated Show resolved Hide resolved
@desistefanova desistefanova marked this pull request as ready for review May 24, 2022 13:54
lib/src/native/realm_core.dart Show resolved Hide resolved
@desistefanova desistefanova merged commit 168de03 into master May 25, 2022
@desistefanova desistefanova deleted the sync_config_error_handler branch May 25, 2022 20:30
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sync Client Config: set error handler
5 participants