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 client reset handler #608

Merged
merged 124 commits into from
May 31, 2022
Merged
Show file tree
Hide file tree
Changes from 121 commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
00e58a2
Introduce hierarchy on Configurations
nielsenko Apr 20, 2022
12284db
Deprecate the inMemory field. Replaced with InMemoryConfiguration
nielsenko Apr 22, 2022
a6f5988
Support for flexible sync configuration
nielsenko Apr 22, 2022
2cf1d32
Add SubscriptionSet (and MutableSubscriptionSet)
nielsenko Apr 25, 2022
07f5f89
Add SubscriptionSet.waitForStateChangeSync.
nielsenko Apr 26, 2022
05351d3
Align with kotlin naming
nielsenko Apr 26, 2022
49287a8
Support session stop policy
nielsenko Apr 26, 2022
e15e3c7
Support async SubscriptionSet.waitForStateChange
nielsenko Apr 28, 2022
80530ce
Make subscription non-nullable. Throw, if configuration not a Flexibl…
nielsenko May 2, 2022
50d1edd
Add version & state properties to SubscriptionSet
nielsenko May 2, 2022
28fdbdd
Annoying hack
nielsenko May 2, 2022
d97fe8e
Fix SubscriptionSet.find* when nothing found
nielsenko May 2, 2022
a0f2c19
More tests
nielsenko May 2, 2022
eb654b8
Add elementAt test
nielsenko May 2, 2022
efcde2f
Fix windows build
fealebenpae May 2, 2022
b8d78d5
Add subscription tests to flutter tests
nielsenko May 5, 2022
9b699f5
Update core to c9c9f5e62 (v11.15.0-8-gc9c9f5e62)
nielsenko May 5, 2022
547d650
Use C-API in realm_dart_sync_on_subscription_set_state_change_async
nielsenko May 5, 2022
a55c85d
Prevent downcast of Realm.subscriptions to MutableSubscriptionSet
nielsenko May 5, 2022
ed3c4c9
Remove lifetime hack
nielsenko May 5, 2022
6632aed
Fix PR feedback
nielsenko May 9, 2022
0dfa78e
Rename addOrUpdate to add and return subscription
nielsenko May 9, 2022
c1544e0
Reorder and enhance doc comments
nielsenko May 9, 2022
0ae91d8
Rework SubscriptionSet.remove*
nielsenko May 10, 2022
852df8a
More PR feedback
nielsenko May 10, 2022
f83850f
Update core to dc15bdc (v11.15.0-16-gdc15bdc36)
nielsenko May 5, 2022
e7ed52f
Wire up properties on Subscription
nielsenko May 6, 2022
e34448e
Add Subscription properties test
nielsenko May 6, 2022
dc695a4
Fix PR feedback
nielsenko May 10, 2022
286c7bd
Update core to 8c2ad6f (v11.15.0-24-g8c2ad6fc8)
nielsenko May 11, 2022
fc9c426
Avoid storing _queryHandle on RealmResult
nielsenko May 11, 2022
5dcb73d
Added sync roundtrip test
nielsenko May 11, 2022
6fe3381
Hide SubscriptionSetState uncommitted and bootstrapping from users
nielsenko May 11, 2022
f044a2a
Tweak Subscription.operator== to use .id (workaround for capi issue)
nielsenko May 11, 2022
cc7985a
Test subscriptions with same name, but different classes throws
nielsenko May 11, 2022
79f563f
Test adding subscriptions with same name, different classes, with upd…
nielsenko May 11, 2022
4fce477
Test adding subscriptions with same query, different classes
nielsenko May 11, 2022
b020037
Test SubscriptionSet.find return match, even if named
nielsenko May 11, 2022
828e518
Test MutableSubscriptionSet.remove same query, different classes
nielsenko May 11, 2022
72d36b6
Augment elementAt tests, and throw proper RangeError on out-of-bounds
nielsenko May 11, 2022
cdcb1e1
Test MutableSubscriptionSet.add illegal query
nielsenko May 11, 2022
97d7627
Add some missing docs
nielsenko May 12, 2022
9104caf
Add dart scheduler trampolines for sync session
nielsenko May 10, 2022
3c47d5c
Update bindings
nielsenko May 11, 2022
5446e78
Wire up some of the session API
nirinchev May 11, 2022
ac83b8e
Use the dart trampoline
nirinchev May 11, 2022
f33f983
FlexibleSyncConfig ErrorHandle implementation
desistefanova May 16, 2022
69b5f8f
Code review changes
desistefanova May 17, 2022
18542f1
Add dart scheduler trampolines for sync session
nielsenko May 10, 2022
b154604
Update bindings
nielsenko May 11, 2022
ea63166
Wire up some of the session API
nirinchev May 11, 2022
64eafdd
Use the dart trampoline
nirinchev May 11, 2022
948e5ef
use correct config ctor
nirinchev May 16, 2022
919cf6a
Add more tests
nirinchev May 17, 2022
90d39f5
formatting
nirinchev May 17, 2022
e201952
Address PR feedback
nirinchev May 18, 2022
a480f46
Fix tests
nirinchev May 18, 2022
af3293c
Fix build errors
desistefanova May 18, 2022
be0a234
Store the http transport as persistent handle
nirinchev May 18, 2022
00dcef9
Merge branch 'ni/sync-session' into sync_config_error_handler
desistefanova May 18, 2022
6d322a7
API doc
desistefanova May 18, 2022
3388a93
Add dart scheduler trampolines for sync session
nielsenko May 10, 2022
757322f
Update bindings
nielsenko May 11, 2022
db3b075
Wire up some of the session API
nirinchev May 11, 2022
f6c3659
Use the dart trampoline
nirinchev May 11, 2022
ed1e21e
use correct config ctor
nirinchev May 16, 2022
80a9465
Add more tests
nirinchev May 17, 2022
a8ee0f0
formatting
nirinchev May 17, 2022
230a0cd
Address PR feedback
nirinchev May 18, 2022
e0939c7
Fix tests
nirinchev May 18, 2022
5de3e58
Store the http transport as persistent handle
nirinchev May 18, 2022
1db6963
Remove -
nirinchev May 18, 2022
fbc3505
Pick up config.sync rename
nirinchev May 18, 2022
5fa7f33
Merge branch 'ni/sync-session' into sync_config_error_handler
desistefanova May 18, 2022
95078c2
Fixes after merge
desistefanova May 18, 2022
66f582a
regenerate bindings
nirinchev May 18, 2022
db57894
Merge branch 'ni/sync-session' into sync_config_error_handler
desistefanova May 18, 2022
b6065b3
Fix API doc
desistefanova May 18, 2022
c7b9cc5
utii.dart deleted
desistefanova May 18, 2022
6395978
Fix merges
desistefanova May 18, 2022
f63d015
Remove -DREALM_ENABLE_SYNC=1
desistefanova May 18, 2022
b0d89dd
small fixes to another PR
blagoev May 19, 2022
873ad61
Merge branch 'master' into sync_config_error_handler
desistefanova May 19, 2022
4e02089
Merge branch 'master' into sync_config_error_handler
desistefanova May 19, 2022
94db93b
Merge branch 'ni/sync-session' into sync_config_error_handler
desistefanova May 19, 2022
4577c66
Merge branch 'master' into sync_config_error_handler
desistefanova May 23, 2022
4f45e36
Merge branch 'master' into sync_config_error_handler
desistefanova May 23, 2022
e569ea6
Test error handler with simulating error
desistefanova May 23, 2022
22eab79
Merge branch 'master' into sync_config_error_handler
desistefanova May 23, 2022
4b7cb58
Merge PR #587 into this one
desistefanova May 23, 2022
0f9d440
Add session tests to Flutter tests
desistefanova May 23, 2022
1fff5f3
Fix the text of simulated errors messages
desistefanova May 23, 2022
ba9fd41
Merge branch 'master' into sync_config_error_handler
desistefanova May 23, 2022
9fdb18b
Merge branch 'master' into sync_config_error_handler
desistefanova May 23, 2022
0b842c6
Merge branch 'master' into sync_config_error_handler
desistefanova May 23, 2022
89679d7
Implement clientResetHandler
desistefanova May 23, 2022
97c1ea9
Update test/session_test.dart
desistefanova May 23, 2022
6c252a3
Update test/session_test.dart
desistefanova May 23, 2022
fe92f6a
Update lib/src/native/realm_core.dart
desistefanova May 23, 2022
b8a1d97
Merge branch 'sync_config_error_handler' into ds/sync_config_client_r…
desistefanova May 23, 2022
61d2a67
print errors
desistefanova May 23, 2022
ce4aa59
Merge branch 'master' into sync_config_error_handler
desistefanova May 25, 2022
c2eaa08
Merge branch 'master' into sync_config_error_handler
desistefanova May 25, 2022
9f5fc36
Merge branch 'sync_config_error_handler' into ds/sync_config_client_r…
desistefanova May 25, 2022
e496d75
Merge branch 'master' into sync_config_error_handler
desistefanova May 25, 2022
67ea393
Merge branch 'sync_config_error_handler' into ds/sync_config_client_r…
desistefanova May 25, 2022
bcf5d34
Code review changes
desistefanova May 25, 2022
9cb82de
Merge branch 'master' into ds/sync_config_client_reset_handler
desistefanova May 25, 2022
08f0929
Merge branch 'master' into ds/sync_config_client_reset_handler
blagoev May 27, 2022
0f82c2e
generic sync error types
blagoev May 28, 2022
d0bec73
fix up SyncErrors support
blagoev May 29, 2022
9d8d702
fix changelog
blagoev May 29, 2022
8e33984
fixup build_resolvers dep to not use buggy 2.0.9 package.
blagoev May 29, 2022
4330e7a
Merge branch 'master' into ds/sync_config_client_reset_handler
blagoev May 29, 2022
59910d2
Merge branch 'master' into ds/sync_config_client_reset_handler
blagoev May 29, 2022
405b49c
bump flutter tests timeout
blagoev May 29, 2022
0eb1dc1
fix enums usage
blagoev May 30, 2022
90f7b43
Merge branch 'master' into ds/sync_config_client_reset_handler
blagoev May 30, 2022
3c8cbd4
fix bad merge
blagoev May 30, 2022
18b7456
add ManualSyncClientResetHandler
blagoev May 31, 2022
5b17445
Merge branch 'master' into ds/sync_config_client_reset_handler
blagoev May 31, 2022
92a717a
fix usage
blagoev May 31, 2022
9745272
handle PR comments
blagoev May 31, 2022
5b861fc
handle PR feedback
blagoev May 31, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
},
"files.associations": {
"filesystem": "cpp",
"*.ipp": "cpp"
"*.ipp": "cpp",
"system_error": "cpp"
},
}
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@
* Support user profile data. ([#570](https://github.com/realm/realm-dart/pull/570))
* Support flexible synchronization. ([#496](https://github.com/realm/realm-dart/pull/496))
* Added support for DateTime properties. ([#569](https://github.com/realm/realm-dart/pull/569))
* Support session error handler. ([#577](https://github.com/realm/realm-dart/pull/577))
* Support setting logger on AppConfiguration. ([#583](https://github.com/realm/realm-dart/pull/583))
* Support setting logger on Realm class. Default is to print info message or worse to the console. ([#583](https://github.com/realm/realm-dart/pull/583))
* Support SyncErrorHandler in FlexibleSyncConfiguration. ([#577](https://github.com/realm/realm-dart/pull/577))
* Support SyncClientResetHandler in FlexibleSyncConfiguration. ([#608](https://github.com/realm/realm-dart/pull/608))


### Fixed
* Fixed an issue that would result in the wrong transaction being rolled back if you start a write transaction inside a write transaction. ([#442](https://github.com/realm/realm-dart/issues/442))
Expand Down
Loading