-
-
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 relationships] fix infinite retry bug for failed relationship fetches #6112
Conversation
0dd8ddb
to
2f778c2
Compare
2f778c2
to
737cca3
Compare
… fetches Cherry picked from emberjs#6112
737cca3
to
5bfe4b4
Compare
🎉 Thanks for fixing this! It will be awesome to get back on the latest release 😄 This did fix my errors with infinite 404's. However, I noticed a few more errors in my test suite when running with this branch (they do not happen on current master branch). They all center around ember-data relationships and mostly when unloading a new record. One bug seems to happen when pushing directly into a relationship (ex: Another bug I am still working through is that calling I still have one other test error to investigate but I'm hoping it is just another manifestation of one of the above issues. |
aa7579b
to
c78080d
Compare
Test failures are the usual suspects (flakey Travis test, odd linting issue when running M3 with newer Data) |
… fetches (emberjs#6112) * [BUGFIX relationships] fix infinite retry bug for failed relationship fetches * Typescript cleanup * adds test coverage for unloading newly created records from relationships * [BUGFIX unloadRecord] unloading newly created records should not trigger fetch
- There is a problem with ember-data >= 3.5.0 that invalid relationships gets refetched over and over again - 3.11.x series of ember-data does not have the needed fix yet emberjs/data#6112 and never (beta) versions complain about `ember-fetch` that complains about other missing dependency and yady yady yada - Pinning ember-data to LTS version does not seem to hurt anyone and avoids this problem
Is this going to be backported? I'm just wondering because of the large impact of the bug? |
@mansona not likely given it wasn’t reported much despite being an issue for 6 releases and its a harder fix to port. It’ll be in 3.12. |
@runspired we're actually experiencing this issue with v3.1.2 (which we upgraded to for the fix for #4963). We're aiming to upgrade rapidly soon, but have a few blocking factors that we have to tackle first. |
@runspired any Idea if we can consume Ember data 3.12 with Ember 3.4 ? Trying ED 3.5 upgrade atm and the bug above would be a blocker for us (upgrading to higher Ember versions across our main app + its engines would take us months). There was another blocker bug in ED 3.4 @mansona @jakebixbyavalara interested if you have any ways around this thanks |
@Leooo as for "have any ways around", you can try this way: https://github.com/Mifrill/ember-data-stop-infinite-retry-for-failed-relationship-fetches |
This PR unskips tests skipped for landing RecordData and fixes regressions introduced around relationship fetching in 3.5
cc @code0100fun please confirm this resolves #5814 et al.