Skip to content

Commit

Permalink
Merge pull request #7400 from jrjohnson/data-config
Browse files Browse the repository at this point in the history
Ember data compatibility upgrade
  • Loading branch information
stopfstedt committed Sep 11, 2023
2 parents e0c4cb3 + 9ecae3c commit 431caa4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/components/reports/subject/new/instructor.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default class ReportsSubjectNewInstructorComponent extends Component {

@cached
get selectedInstructor() {
return new TrackedAsyncData(this.store.find('user', this.args.currentId));
return new TrackedAsyncData(this.store.findRecord('user', this.args.currentId));
}

@action
Expand Down
2 changes: 1 addition & 1 deletion app/components/reports/subject/new/mesh-term.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default class ReportsSubjectNewProgramComponent extends Component {

@cached
get selectedMeshTerm() {
return new TrackedAsyncData(this.store.find('mesh-descriptor', this.args.currentId));
return new TrackedAsyncData(this.store.findRecord('mesh-descriptor', this.args.currentId));
}

@action
Expand Down
8 changes: 0 additions & 8 deletions config/deprecation-workflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,6 @@ window.deprecationWorkflow.config = {
{ handler: 'silence', matchId: 'ember-modifier.use-modify' },
{ handler: 'silence', matchId: 'ember-modifier.function-based-options' },
{ handler: 'silence', matchId: 'ember-polyfills.deprecate-assign' },
{ handler: 'silence', matchId: 'ember-data:model-save-promise' }, //https://github.com/emberjs/data/issues/7997
{ handler: 'silence', matchId: 'ember-data:deprecate-promise-proxies' }, //https://github.com/emberjs/data/issues/7997
{ handler: 'silence', matchId: 'ember-data:deprecate-non-strict-relationships' },
{ handler: 'silence', matchId: 'ember-data:deprecate-early-static' },
{ handler: 'silence', matchId: 'ember-data:deprecate-array-like' },
{ handler: 'silence', matchId: 'ember-data:deprecate-promise-many-array-behaviors' },
{ handler: 'silence', matchId: 'ember-data:no-a-with-array-like' },
{ handler: 'silence', matchId: 'ember-data:deprecate-store-find' },
{ handler: 'silence', matchId: 'common.dates-no-dates' },
],
};
3 changes: 3 additions & 0 deletions ember-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ module.exports = function (defaults) {
sourcemaps: {
enabled: true,
},
emberData: {
compatWith: '5.2',
},

hinting: isTestBuild,
babel: {
Expand Down

0 comments on commit 431caa4

Please sign in to comment.