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 URL to queryRecord deprecation warning #6397

Merged

Conversation

yohanmishkin
Copy link
Contributor

Maybe this deprecation should be removed altogether (and throw some kind of error) since we've passed 3.0?

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

Choose a reason for hiding this comment

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

I have concerns about changing the ID of the deprecation post-release. Also I think I agree that we should just change this to an assert at this point. Thoughts @rwjblue ?

Copy link
Member

Choose a reason for hiding this comment

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

Ya, agree.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated.

@yohanmishkin yohanmishkin force-pushed the tj/deprecation-warning-url-queryRecord branch from cd31f9c to 8328fbd Compare September 13, 2019 19:10
@rwjblue rwjblue merged commit 279cb81 into emberjs:master Sep 18, 2019
@yohanmishkin yohanmishkin deleted the tj/deprecation-warning-url-queryRecord branch September 19, 2019 15:13
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