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

Remove references to AdapterFetch #464

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions tests/dummy/app/adapters/application.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// TODO: Remove the need for this mixin
// eslint-disable-next-line ember/no-mixins
import AdapterFetch from 'ember-fetch/mixins/adapter-fetch';
import JSONAPIAdapter from '@ember-data/adapter/json-api';

export default JSONAPIAdapter.extend(AdapterFetch);
export default JSONAPIAdapter.extend();
1 change: 0 additions & 1 deletion tests/dummy/config/deprecation-workflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
self.deprecationWorkflow = self.deprecationWorkflow || {};
self.deprecationWorkflow.config = {
workflow: [
{ handler: 'silence', matchId: 'deprecate-fetch-ember-data-support' },
{
handler: 'silence',
matchId: 'deprecated-run-loop-and-computed-dot-access',
Expand Down
4 changes: 0 additions & 4 deletions tests/helpers/utility-methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ import ActiveModelAdapter, {
} from 'active-model-adapter';
import { param } from 'ember-data-factory-guy/utils/helper-functions';
import { getContext } from '@ember/test-helpers';
// TODO: Remove the need for this mixin
// eslint-disable-next-line ember/no-mixins
import AdapterFetch from 'ember-fetch/mixins/adapter-fetch';

export function fetchJSON({ url, params, method = 'GET' } = {}) {
let body = '';
Expand Down Expand Up @@ -137,7 +134,6 @@ export function containerSetup(application, serializerType) {
});
}
adapter = application.lookup('adapter:' + adapterType);
adapter = adapter.reopen(AdapterFetch);

serializerType = serializerType === '-json' ? '-default' : serializerType;
let serializer = application.lookup('serializer:' + serializerType);
Expand Down