-
-
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
Sideloaded nested relationships stopped working #5124
Sideloaded nested relationships stopped working #5124
Conversation
013f205
to
2063848
Compare
@nbrookie thanks reporting this and adding the failing test! Just ran into this myself and had to roll-back to 2.13 again. |
Hi there, I believe I'm facing a very similar issue. I'm happy to open a new PR if you think it's different. Here is a repository to reproduce with a failing test: https://github.com/gabz75/ember-data-bug-with-sideloaded-relationships |
started looking at this, I have an idea (thanks for the failing test) going to grab some food, then take another look later today. |
I believe data/addon/-private/system/relationships/relationship-payloads.js Lines 307 to 358 in e6cb564
|
fixed -> #5147 |
thanks for the test case, made this very actionable! |
Say I was to load a model, sideloading parent models as well:
Which generates this JSONAPI response:
JSONAPI Response
Then in a template:
It seems that accessing the nested model that is two levels deep no longer works.
This PR includes a test that replicates the issue.
Versions effected:
2.14.0-beta.1
-2.16.0-canary
This problem appears to have been introduced in this commit: a38f408
Versions not effected
Anything below
2.13.2
Relevant Twiddles:
ember-data 2.12.2 works fine: Twiddle
(ember-data 2.13.2 works fine too, but twiddle does not work with ember-data 2.13.2 yet
ember-data 2.14.10 does not work: Twiddle
Related issues
#4982