[deprecations] Use store.query instead of store.find where appropriate
This commit is contained in:
parent
f5823669b2
commit
131a09c9c5
|
@ -220,7 +220,7 @@ Repo.reopenClass({
|
||||||
return promise;
|
return promise;
|
||||||
} else {
|
} else {
|
||||||
login = reposIdsOrlogin;
|
login = reposIdsOrlogin;
|
||||||
return store.find('repo', {
|
return store.query('repo', {
|
||||||
member: login,
|
member: login,
|
||||||
orderBy: 'name'
|
orderBy: 'name'
|
||||||
});
|
});
|
||||||
|
@ -253,7 +253,7 @@ Repo.reopenClass({
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
return store.find('repo', {
|
return store.query('repo', {
|
||||||
search: query,
|
search: query,
|
||||||
orderBy: 'name'
|
orderBy: 'name'
|
||||||
});
|
});
|
||||||
|
@ -299,7 +299,7 @@ Repo.reopenClass({
|
||||||
return repo;
|
return repo;
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
promise = store.find('repo', {
|
promise = store.query('repo', {
|
||||||
slug: slug
|
slug: slug
|
||||||
}).then(function(repos) {
|
}).then(function(repos) {
|
||||||
return repos.get('firstObject') || (function() {
|
return repos.get('firstObject') || (function() {
|
||||||
|
|
|
@ -3,11 +3,11 @@ window.deprecationWorkflow.config = {
|
||||||
workflow: [
|
workflow: [
|
||||||
// DONE
|
// DONE
|
||||||
{ handler: "log", matchMessage: "Ember.LinkView is deprecated. Please use Ember.LinkComponent." },
|
{ handler: "log", matchMessage: "Ember.LinkView is deprecated. Please use Ember.LinkComponent." },
|
||||||
|
{ handler: "log", matchMessage: "Calling store.find() with a query object is deprecated. Use store.query() instead." },
|
||||||
{ handler: "log", matchMessage: new RegExp("A property of .*? was modified inside the didInsertElement hook. You should never change properties on components, services or models during didInsertElement because it causes significant performance degradation.") },
|
{ handler: "log", matchMessage: new RegExp("A property of .*? was modified inside the didInsertElement hook. You should never change properties on components, services or models during didInsertElement because it causes significant performance degradation.") },
|
||||||
{ handler: "log", matchMessage: "Ember.arrayComputed is deprecated. Replace it with plain array methods" },
|
{ handler: "log", matchMessage: "Ember.arrayComputed is deprecated. Replace it with plain array methods" },
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
{ handler: "silence", matchMessage: "Calling store.find() with a query object is deprecated. Use store.query() instead." },
|
|
||||||
{ handler: "silence", matchMessage: "Ember.View is deprecated. Consult the Deprecations Guide for a migration strategy." },
|
{ handler: "silence", matchMessage: "Ember.View is deprecated. Consult the Deprecations Guide for a migration strategy." },
|
||||||
{ handler: "silence", matchMessage: "The filter API will be moved into a plugin soon. To enable store.filter using an environment flag, or to use an alternative, you can visit the ember-data-filter addon page" },
|
{ handler: "silence", matchMessage: "The filter API will be moved into a plugin soon. To enable store.filter using an environment flag, or to use an alternative, you can visit the ember-data-filter addon page" },
|
||||||
{ handler: "silence", matchMessage: "Usage of `state` is deprecated, use `_state` instead." },
|
{ handler: "silence", matchMessage: "Usage of `state` is deprecated, use `_state` instead." },
|
||||||
|
|
Loading…
Reference in New Issue
Block a user