Skip to content
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

Merged
merged 7 commits into from
Aug 15, 2017

Conversation

stefanpenner
Copy link
Member

No description provided.

rwjblue and others added 7 commits August 10, 2017 10:00
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.
@stefanpenner stefanpenner changed the base branch from master to fix-ember-try-config August 15, 2017 17:46
@@ -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() {
Copy link
Member Author

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thank you @stefanpenner.

@stefanpenner stefanpenner merged commit b6877b7 into fix-ember-try-config Aug 15, 2017
@stefanpenner stefanpenner deleted the pr-5127 branch August 15, 2017 18:05
stefanpenner added a commit that referenced this pull request Aug 15, 2017
Avoid MODEL_FACTORY_INJECTION deprecations in tests on Ember >= 2.14.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants