realm-core
realm-core copied to clipboard
No notification for write transaction that contains only change to backlink property
Expected results
A write transaction that contains only a change to a backlink property notifies.
Actual Results
A write transaction that contains only a change to a backlink property does not notify.
Steps & Code to Reproduce
Test reproduction in realm-core. The difference between this test and the previous passing test is that the previous test both creates an object and reassigns the backlink property.
How to reproduce with realm-cocoa.
Core version
Core version: 11.4.1
After looking at the TransactLogParser I think the issue might be that only switch cases that add modifications to changeset are hit when the write transaction contains only a change to the linkingObjects property. But changes to linking objects are represented by insertions.
So some questions:
- Is this actually the case? And an issue?
- Would the solution be changing the TransactLogParser?
- Would the solution be changing realm-core treats a change to a linkingObject property?
- Any other ways?
I've attached an example that uses Realm-Swift and valuePublisher that shows a short example of this issue happening. Hopefully it helps.
@pavel-ship-it @ericjordanmossman any updates on this issue being addressed?
I am going to have a look at this issue.