-
-
Notifications
You must be signed in to change notification settings - Fork 113
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
Breaking change ED 2.11.1 to 2.11.2 #251
Comments
Hmm. I can't see anything obvious that is wrong with your code. Also looking at the ember-data changelog I don't see anything that sticks out. I'll see if I can make some time today or tomorrow to investigate. |
Yeap, it seems our tests are broken.
|
Yep, that looks like the bug. Thanks for looking into it! |
@lindyhopchris It turns out that I'm inadvertently the culprit here. I filled: emberjs/data#4810 to fix another injection issue. And it was fixed by: emberjs/data#4810 (and backported to release). Unfortuantely, that breaks our override logic here: addon/ext.js#L371. The I'll get this fixed today or tomorrow. I need to think about the right solution here to not break backwards compatibility. Thanks for reporting this! |
No problem! I've tied my app to 2.11.1 so this isn't causing me major problems at the moment, but glad to hear you're on the case. |
@lindyhopchris Would you be able to confirm that this is fixed on master? I'd appreciate it. |
@workmanw I just tried upgrading to ember-data 2.11.3 and am running into this bug too so i can check if this fixes it. |
@workmanw I can confirm this issue is fixed on master |
@jakesjews Excellent. Thank you! Obviously we need to have another point release. There are two quick things I want to look into first. ember-cli/ember-twiddle#531 and I saw a deprecation warnings when I was running the test locally. I want to be sure it would create deprecation warnings for users. Should be ready to go by tomorrow. |
@workmanw this is also fixed for me using |
Really useful package!
So I've got an app that was working fine with Model Fragments
2.11.1
and Ember Data2.11.1
. However when I upgrade ED to2.11.2
or2.11.3
I get an error.The error I'm hitting is this assertion:
https://github.com/lytics/ember-data-model-fragments/blob/master/addon/transforms/fragment.js#L59
With ED
2.11.1
the serializer for the fragment must be aJSONSerializer
whereas with the upgraded ED it's aJSONAPISerializer
.My setup is that I've got a Fragment serializer:
And an initializer as per your README:
Am I doing something wrong that shouldn't have worked in the first place? Or has the ED change introduced something breaking?
The text was updated successfully, but these errors were encountered: