-
-
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
Avoid MODEL_FACTORY_INJECTION deprecations in tests on Ember >= 2.14. #5128
Conversation
This hook was added in [ember-cli/rfcs#90](https://github.com/ember-cli/rfcs/blob/master/complete/0090-addon-tree-caching.md), and essentially guarantees that a given tree returned by an addon is considered stable (or not). In the case of Ember Data, we do not have different tree output based on our parent (project or addon). Specifically, this implementation allows both an app _and_ a lazy engine to depend on `ember-data` without duplicating the `ember-data` assets in both the `assets/vendor.js` and `engine-dist/<engine-name>/assets/engine-vendor.js`.
The bizarre failures on CI are related to the super old Yarn version in use on the Trusty arch (0.17.5), and seem to randomly fail based on which CI image a build runs on (super frustratingly :P ). This updates our Travis config to ensure the latest yarn is installed (and also updates the mechansim we use to get phantom so that it works across both Trusty and Precise images).
[BUGFIX beta] Implement `cacheKeyForTree` hook.
Remove Bower dependency and related files.
@@ -11,7 +11,6 @@ const { attr, hasMany, belongsTo } = DS; | |||
const { hash } = RSVP; | |||
|
|||
let env, store, User, Message, Post, Comment, Book, Chapter, Author, NewMessage; | |||
const injectionValue = Ember.MODEL_FACTORY_INJECTIONS; | |||
|
|||
module("integration/relationship/belongs_to Belongs-To Relationships", { | |||
beforeEach() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rwjblue previously, you ran setupModelFactoryInjections
here mistakenly. Turns out the code was only resetting the injection stuff here, not actually setting it up. Instead I simply removed it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thank you @stefanpenner.
Avoid MODEL_FACTORY_INJECTION deprecations in tests on Ember >= 2.14.
No description provided.