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

Upgrade to core 14.7.0 #1746

Merged
merged 4 commits into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
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
8 changes: 5 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## 2.0.0-SNAPSHOT (YYYY-MM-DD)

[!NOTE]
This release will bump the Realm file format from version 23 to 24. Opening a file with an older format will automatically upgrade it from file format v10. If you want to upgrade from an earlier file format version you will have to use Realm Kotlin v1.13.1 or earlier. Downgrading to a previous file format is not possible.
This release will bump the Realm file format 24. Opening a file with an older format will automatically upgrade it from file format v10. If you want to upgrade from an earlier file format version you will have to use Realm Kotlin v1.13.1 or earlier. Downgrading to a previous file format is not possible.

### Breaking changes
* Removed property `RealmLog.level`. Log levels can be set with `RealmLog.setLevel`. (Issue [#1691](https://github.com/realm/realm-kotlin/issues/1691) [JIRA](https://jira.mongodb.org/browse/RKOTLIN-1038))
Expand All @@ -13,7 +13,8 @@ This release will bump the Realm file format from version 23 to 24. Opening a fi
* Add support for filtering logs by category. (Issue [#1691](https://github.com/realm/realm-kotlin/issues/1691) [JIRA](https://jira.mongodb.org/browse/RKOTLIN-1038))

### Fixed
* None.
* Inserting the same typed link to the same key in a dictionary more than once would incorrectly create multiple backlinks to the object. This did not appear to cause any crashes later, but would have affecting explicit backlink count queries (eg: `...@links.@count`) and possibly notifications (Core Issue [realm/realm-core#7676](https://github.com/realm/realm-core/issues/7676) since v1.16.0).
* [Sync] Automatic client reset recovery would crash when recovering AddInteger instructions on a Mixed property if its type was changed to non-integer (Core issue [realm/realm-core#7683](https://github.com/realm/realm-core/pull/7683), since v0.11.0).

### Compatibility
* File format: Generates Realms with file format v24 (reads and upgrades file format v10 or later).
Expand All @@ -31,7 +32,8 @@ This release will bump the Realm file format from version 23 to 24. Opening a fi
* Minimum R8: 8.0.34.

### Internal
* None.
* Updated to Realm Core 14.7.0 commit c280bdb17522323d5c30dc32a2b9efc9dc80ca3b.


## 1.16.0 (2024-05-01)

Expand Down
2 changes: 1 addition & 1 deletion packages/external/core
Submodule core updated 39 files
+8 −2 .clang-format
+64 −2 CHANGELOG.md
+1 −1 Package.swift
+4 −3 bindgen/spec.yml
+5 −0 bindgen/src/realm_helpers.h
+3 −3 dependencies.yml
+14 −1 src/realm/array_backlink.cpp
+39 −15 src/realm/cluster.cpp
+1 −0 src/realm/cluster.hpp
+3 −3 src/realm/dictionary.cpp
+1 −1 src/realm/object-store/audit.mm
+20 −10 src/realm/object-store/sync/app.cpp
+2 −0 src/realm/object-store/sync/app.hpp
+50 −43 src/realm/object-store/sync/sync_session.cpp
+8 −8 src/realm/object-store/sync/sync_session.hpp
+165 −113 src/realm/object_converter.cpp
+8 −5 src/realm/object_converter.hpp
+91 −56 src/realm/parser/driver.cpp
+1 −0 src/realm/replication.cpp
+7 −7 src/realm/replication.hpp
+1 −0 src/realm/sync/changeset.cpp
+7 −6 src/realm/sync/client.cpp
+1 −1 src/realm/sync/client.hpp
+119 −57 src/realm/sync/instruction_applier.cpp
+3 −5 src/realm/sync/instruction_applier.hpp
+152 −83 src/realm/sync/noinst/client_reset_recovery.cpp
+4 −1 src/realm/sync/protocol.hpp
+14 −0 src/realm/table.cpp
+4 −3 test/object-store/audit.cpp
+1 −1 test/object-store/c_api/c_api.cpp
+3 −1 test/object-store/sync/app.cpp
+1,973 −33 test/object-store/sync/client_reset.cpp
+69 −3 test/object-store/sync/flx_sync.cpp
+856 −600 test/object-store/sync/session/progress_notifications.cpp
+48 −8 test/object-store/util/sync/baas_admin_api.cpp
+6 −0 test/test_dictionary.cpp
+19 −1 test/test_list.cpp
+17 −2 test/test_parser.cpp
+17 −17 test/test_sync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ import kotlinx.coroutines.withTimeout
import org.mongodb.kbson.ObjectId
import kotlin.test.AfterTest
import kotlin.test.BeforeTest
import kotlin.test.Ignore
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertFailsWith
Expand Down Expand Up @@ -85,7 +84,6 @@ class ProgressListenerTests {
}

@Test
@Ignore // https://github.com/realm/realm-core/issues/7627
fun downloadProgressListener_changesOnly() = runBlocking {
Realm.open(createSyncConfig(app.createUserAndLogIn())).use { uploadRealm ->
// Verify that we:
Expand Down Expand Up @@ -175,7 +173,6 @@ class ProgressListenerTests {
}

@Test
@Ignore // https://github.com/realm/realm-core/issues/7627
fun worksAfterExceptions() = runBlocking {
Realm.open(createSyncConfig(app.createUserAndLogIn())).use { realm ->
realm.writeSampleData(TEST_SIZE, timeout = TIMEOUT)
Expand All @@ -198,7 +195,6 @@ class ProgressListenerTests {
}

@Test
@Ignore // https://github.com/realm/realm-core/issues/7627
fun worksAfterCancel() = runBlocking {
Realm.open(createSyncConfig(app.createUserAndLogIn())).use { realm ->
realm.writeSampleData(TEST_SIZE, timeout = TIMEOUT)
Expand Down Expand Up @@ -229,7 +225,6 @@ class ProgressListenerTests {
}

@Test
@Ignore // https://github.com/realm/realm-core/issues/7627
fun triggerImmediatelyWhenRegistered() = runBlocking {
Realm.open(createSyncConfig(app.createUserAndLogIn())).use { realm ->
withTimeout(10.seconds) {
Expand Down
Loading