-
-
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
[Fixes #4807] realize class + factory seperation #4810
Conversation
7d16d53
to
943b33e
Compare
|
||
factory.modelName = factory.modelName || modelName; | ||
// TODO: deprecate this | ||
klass.modelName = klass.modelName || modelName; |
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.
Can you do Ember.deprecate
instead of the TODO?
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.
We don't currently have a path forward yet. I would prefer to deprecate once this is the case.
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.
But will find a path forward for this soon!
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.
@chadhietala I'm doing a follow up PR (right now) that reduces ember-datas dependence on modelName
. That will be a pre-cursor to deprecating 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.
SG
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.
i've removed many more internal usages of modelName
, there are some more low hanging fruit but addressing it fully will be some effort (although I hope we can do asap).
Some notes: #4814
*note: this combined with embers factoryFor makes `MODEL_FACTORY_INJECTIONS` irrelevant.*
943b33e
to
314ae0b
Compare
note: this combined with embers factoryFor makes
MODEL_FACTORY_INJECTIONS
irrelevant.Fixes #4807