-
-
Notifications
You must be signed in to change notification settings - Fork 408
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
rfc: ember-data | deprecate-non-strict-types #740
rfc: ember-data | deprecate-non-strict-types #740
Conversation
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.
definitely LGTM. Thanks for driving this @runspired
Deprecates when the `type` for a record provided by a user differs from the resolved | ||
type, thereby removing the need to configure `ember-inflector` to treat `types` as `uncountable` | ||
in order to use plural model names, and removing the dasherization constraint. |
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'd recommend clarifying what "resolved" means in this context.
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.
The resolved type means the on-disk file-path derived type. So for instance a model at app/models/foos/otherUsers.js
has the resolved type foos/otherUsers
while app/models/foos/bar-user.js
has the resolved type foos/bar-user
. For the latter example, foos/barUser
and foos/barUsers
could both currently be supplied to ember-data in most contexts today and still result in a successful lookup of the model. Said uses would be required to be refactored to use the resolved type.
I'll try to add a note to this effect to the RFC for clarification.
Advance RFC #740 `"EmberData | Deprecate Non Strict Types"` to Stage Ready for Release
Advance RFC #740 `"EmberData | Deprecate Non Strict Types"` to Stage Released
Full Text: Rendered