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

Remove internal factoryInjection API #14816

Closed
wants to merge 3 commits into from
Closed

Conversation

locks
Copy link
Contributor

@locks locks commented Jan 11, 2017

  • Container: A factory returned from lookupFactory has a debugkey
  • Ember.Application Dependency Injection – toString: instances
  • Ember.Application Dependency Injection – toString: with a custom resolver

@locks locks force-pushed the skull-emoji-factory-injection branch from 9e40ee1 to 7041640 Compare January 12, 2017 13:42
Remove factoryInjections related code
Kill lookupFactory debugkey test
Add NAME_KEY to injectedFactory class
@locks locks force-pushed the skull-emoji-factory-injection branch from 275739b to d69f8d3 Compare January 12, 2017 15:03
@locks locks requested a review from dgeb January 13, 2017 15:47
Copy link
Member

@rwjblue rwjblue left a comment

Choose a reason for hiding this comment

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

I'm happy with all of this work, but I'd really like to see us remove that last reopenClass in deprecatedFactoryFor. Though maybe it isn't worth a ton of effort since we plan to remove that whole chunk of code with the ember-factory-for feature flag...


let injectedFactory = factory.extend(injections);

// TODO - remove all `container` injections when Ember reaches v3.0.0
injectDeprecatedContainer(injectedFactory.prototype, container);
injectedFactory.reopenClass(factoryInjections);
injectedFactory.reopenClass({ [NAME_KEY]: registry.makeToString(factory, fullName) });
Copy link
Member

Choose a reason for hiding this comment

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

Ideally we can get rid of this also (I'm not sure we have solved the "problem" of factory injections if we cannot remove this reopenClass).

@homu
Copy link
Contributor

homu commented Mar 14, 2017

☔ The latest upstream changes (presumably #15014) made this pull request unmergeable. Please resolve the merge conflicts.

@stefanpenner
Copy link
Member

@locks ping

@stefanpenner
Copy link
Member

stefanpenner commented Mar 16, 2017

@locks nice, I think this may be a bugfix beta? @rwjblue c/d

@locks
Copy link
Contributor Author

locks commented Mar 16, 2017

@stefanpenner there was a problem with 5b2dc4d that I don't know how to address. I think it particularly broke some of Ember Data's output.

@homu
Copy link
Contributor

homu commented Apr 27, 2017

☔ The latest upstream changes (presumably #15177) made this pull request unmergeable. Please resolve the merge conflicts.

@stefanpenner
Copy link
Member

@stefanpenner there was a problem with 5b2dc4d that I don't know how to address. I think it particularly broke some of Ember Data's output.

@locks can you enumerate the problem, steps to reproduce?

@rwjblue
Copy link
Member

rwjblue commented Apr 30, 2017

I believe this will be replaced by #15193.

@locks locks closed this Apr 30, 2017
@locks locks deleted the skull-emoji-factory-injection branch April 30, 2017 11:41
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.

None yet

4 participants