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

[DOC] Added documentation URL to evented deprecation warnings #6396

Merged
merged 3 commits into from
Sep 21, 2019

Conversation

yohanmishkin
Copy link
Contributor

@yohanmishkin yohanmishkin commented Aug 30, 2019

In #6059 deprecation warnings for Evented usage we added. This PR adds a URL to the deprecation documentation for the console warnings.

before

image

after

image

@yohanmishkin yohanmishkin marked this pull request as ready for review August 30, 2019 19:21
@yohanmishkin yohanmishkin changed the title Added deprecations documentation URL to evented usage api warnings Added documentation URL to evented deprecation warnings Aug 30, 2019
@yohanmishkin yohanmishkin changed the title Added documentation URL to evented deprecation warnings [DOC] Added documentation URL to evented deprecation warnings Aug 30, 2019
Copy link
Contributor

@runspired runspired left a 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

@rwjblue
Copy link
Member

rwjblue commented Sep 10, 2019

@yohanmishkin - Mind rebasing? We've fixed some bugs on master that should fix CI...

@yohanmishkin yohanmishkin force-pushed the tj/deprecation-warning-url branch 2 times, most recently from 5eaf8bc to c204c4a Compare September 13, 2019 19:07
@@ -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/);
Copy link
Contributor

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)

@@ -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',
Copy link
Contributor

Choose a reason for hiding this comment

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

dont change the ID

@yohanmishkin yohanmishkin force-pushed the tj/deprecation-warning-url branch from c204c4a to d7e09ec Compare September 20, 2019 18:54
Copy link
Contributor

@runspired runspired left a 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

@runspired runspired merged commit af1d77e into emberjs:master Sep 21, 2019
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.

3 participants