-
-
Notifications
You must be signed in to change notification settings - Fork 137
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
Compatibility with ember-data-model-fragments #182
Comments
I think this would be an ok hackeroo because as long as it does not affect the usual factory guy hokus pokus ( the tests all still pass ) and it's labelled ( "note the hack here because of model fragment" ) then everyone knows what is going on and no one will know the difference |
Great! I'll submit a PR some time this week. |
@whatthewhat just curious if you have tried out this fix? I tried it out but it then seemed to fail further down the line with another error. I'll dig it out when I get the chance. |
@patocallaghan Did not have time to test this yet, unfortunately. Will definitely play with it on the weekend, let me know if you find anything! |
…th model-fragments Context: adopted-ember-addons#182
…th model-fragments Context: adopted-ember-addons#182
I created an example repo If anyone wants to take a look. |
@patocallaghan , @whatthewhat , @mattmcginnis Not sure if you even care, but when using factories with fragments there was always an id put into the fixture. The id is now only used for building ( see release notes ) but removed afterwards. |
Hi, first of all great work with the library, really like the latest changes!
Currently there is an issue when trying to use latest factory-guy versions with ember-data-model-fragments.
It has to do with looking up transforms here, ember-data-model-fragments monkey patches the
transformFor
on the serializer to do it's magic and so when factory-guy tries to find the transform withcontainer.lookup
if fails with an error.Admittedly this is not exactly a factory-guy problem, but it would be nice if the 2 libraries could work together again and it does not seem like ember-data-model-fragments can stop depending on
transformFor
any time soon.So the question is, would a PR with a change similar to this be accepted (even though it basically adds a dependency on a private serializer method)?
Link to the discussion in the ember-data-model-fragments repo: adopted-ember-addons/ember-data-model-fragments#185
The text was updated successfully, but these errors were encountered: