realm / realm-dotnet

Realm is a mobile database: a replacement for SQLite & ORMs
https://realm.io
Apache License 2.0
1.25k stars 165 forks source link

Wrong notification behaviour when subscribing both with `CollectionChanged` and `SubscribeForNotifications` #3613

Open papafe opened 5 months ago

papafe commented 5 months ago

How to reproduce:

https://github.com/realm/realm-dotnet/blob/521d915aed3399b5d835200e00be7c9c2594c37b/Tests/Realm.Tests/Database/NotificationTests.cs#L881-L922

Result: the test does not pass because a Replace notification is called when we modify an object, and the penultimate assertion is false

sync-by-unito[bot] commented 5 months ago

➤ PM Bot commented:

Jira ticket: RNET-1152

papafe commented 5 months ago

I think this is due to the caching we do for notifications