-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[BUGFIX] resolve issues with RecordArray sync for peekAll #5378
Conversation
@runspired, it works so far! I'll check back in when I get more coverage of my app |
I tested this with our app that has been stuck at Ember Data 2.13.2 for a while and this lets us go all the way to 3.x 😄 |
I really have to dig and try to narrow my problem then, I still encounter a
In my scenario, there are several |
@sly7-7 I had the same issue way back in 2.13. I think I resolved it by routing away from where the models were in use and then performed the unload. As an aside, @runspired, what will it take to get this merged? This has been the most promising fix in the last few months. I owe you big time. You’re a huge value to this community. |
Will this make it into 3.1? |
@tylerturdenpants Thank you for the tip, I will see if I can try that as a workaround, but for sure there is 'something' wrong 'somewhere' |
@sly7-7 I have some thoughts on what your bug is, will try to write a test to see if it fails. |
Found a related issue: #5395 #bummer |
@bmac In what version is this slated to land? |
@tylerturdenpants It should be in the just released 3.1. You will encounter a warning though: #5372 (comment) but as @bmac said patch will be soon released too 😄 |
Oh nice @sly7-7. Wish you luck on your issues. I’m still encountering the “Id already used” but is much easier to patch. |
Since this was just merged I didn't cherry pick it into 3.1 just yet. Currently its only on |
Unfortunately I'm still receiving the error: |
This PR resolves issues with ensuring that RecordArray is correctly synced for peekAll.
Resolves #5271
Resolves #5167
Resolves #5175
Resolves #5111 / #5157
It also includes tests and a fix for #5350 and #5025 / #5095 wherein non-materialized records would remain in live-record-arrays and filtered record arrays upon unload.
Resolves #5025
cc @tylerturdenpants @igorT @hjdivad @workmanw