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

Change notifications not fired when removing and adding an object with the same PK within a transaction. #4010

Closed
sync-by-unito bot opened this issue Oct 22, 2020 · 1 comment
Assignees

Comments

@sync-by-unito
Copy link

sync-by-unito bot commented Oct 22, 2020

This issue was originally reported on realm-java: link.

Depending on the realm version and if a model has or not PK you might not get change listeners events. The test case is of the following:

Three models:

  • A: no primary key.
  • B: integer PK
  • C: string PK

For each model:

  • Add a dummy object
  • Query for all objects and attach a listener to the results
  • In a transaction do:
    • Delete all objects
    • Insert a modified copy of the dummy with the same PK

Observed behavior:

  • Core v5.23.8: will trigger change events for the no-PK, int-PK, and string-pk models.
  • Core v6.0.25: will trigger for no-PK and int-PK but not for the string-pk.
  • Core v10.0.0: will just trigger for no-PK but not for the int-pk or string-pk.
@sync-by-unito
Copy link
Author

sync-by-unito bot commented Dec 9, 2020

➤ Jonathan Reams commented:

Bumping the priority on this to P2 since it's a dupe of RCORE-430, which was a P2.

@jedelbo jedelbo closed this as completed Dec 18, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant