-
-
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
[DOC] Added documentation URL to evented deprecation warnings #6396
[DOC] Added documentation URL to evented deprecation warnings #6396
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.
overall this seems good
@yohanmishkin - Mind rebasing? We've fixed some bugs on master that should fix CI... |
5eaf8bc
to
c204c4a
Compare
@@ -607,11 +607,15 @@ module('unit/model - Model', function(hooks) { | |||
let record = store.createRecord('person'); | |||
|
|||
record.on('event!', F); | |||
|
|||
assert.expectDeprecation(/Called event! on person/); |
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.
this will need to be wrapped in an if (DEBUG)
packages/serializer/addon/rest.js
Outdated
@@ -286,8 +286,10 @@ const RESTSerializer = JSONSerializer.extend({ | |||
'The adapter returned an array for the primary data of a `queryRecord` response. This is deprecated as `queryRecord` should return a single record.'; | |||
|
|||
deprecate(message, !isQueryRecordAnArray, { | |||
id: 'ds.serializer.rest.queryRecord-array-response', | |||
id: 'ember-data:store-queryrecord-array-response-with-restserializer', |
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.
dont change the ID
c204c4a
to
d7e09ec
Compare
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.
Needs a lint fix yarn lint:prettier --fix
should autofix if possible and tell you errors if not
In #6059 deprecation warnings for Evented usage we added. This PR adds a URL to the deprecation documentation for the console warnings.
before
after