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

Plugin live listeners during mass addition and deletion of objects is error-prone #120

Open
gagik opened this issue Jan 6, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@gagik
Copy link
Contributor

gagik commented Jan 6, 2023

While the plugin does listen for individual deletions/additions/changes etc. if there are mass deletions and/or additions, the plugin may end up in a state where it list previously deleted objects.

Steps to reproduce:

  1. Open Legacy Tester on testApp on iOS.
  2. Open "Deliver" tab on the desktop flipper plugin.
  3. Click "Delete + Create parcel test data" on the device.
  4. You will now have 14 objects instead of 10 even though this function deletes all (10) deliveries and creates new (10) deliveries.
  5. Refreshing would bring it to the correct state.

This is likely caused by the delay between the listeners and the deletions/additions. We may want to simply refresh the entire realm if we receive too many changes from the device at once.

@gagik gagik added the bug Something isn't working label Jan 6, 2023
@gagik gagik changed the title Mass addition and deletion is error-prone Plugin live listeners during mass addition and deletion of objects is error-prone Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant