Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

[WIP] Remove deprecation warnings in Patients route #181

Closed

Conversation

zinyando
Copy link
Contributor

@zinyando zinyando commented Oct 8, 2015

Remove deprecation warnings from the patients route.

  • Added ember-cli-deprecation-workflow addon and config/deprecation-workflow.js file.
  • Ember.Handlebars.helper is deprecated, please refactor to Ember.Helper.helper
  • Ember.Handlebars.makeViewHelper and Ember.HTMLBars.makeViewHelper are deprecated. Please refactor to normal component usage.
  • the component:nav-menu test module is implicitly running in unit test mode, which will change to integration test mode by default in an upcoming version of ember-test-helpers. Add unit: true or a needs:[] list to explicitly opt in to unit test mode.
  • Using Ember.HTMLBars._registerHelper is deprecated. Helpers (even dashless ones) are automatically resolved.
  • Ember.LinkView is deprecated. Please use Ember.LinkComponent.
  • lookup was called on a Registry. The initializer API no longer receives a container, and you should use an instanceInitializer to look up objects from the container.
  • Controller#needs is deprecated, please use Ember.inject.controller() instead
  • Using store.find(type) has been deprecated. Use store.findAll(type) to retrieve all records for a given type.
  • The default behavior of shouldReloadAll will change in Ember Data 2.0 to always return false when there is at least one "price-profile" record in the store. If you would like to preserve the current behavior please override shouldReloadAll in your adapter:application and return true.
  • Ember.View is deprecated. Consult the Deprecations Guide for a migration strategy.
  • Ember.keys is deprecated in favor of Object.keys
  • Your custom serializer uses the old version of the Serializer API, with extract hooks. Please upgrade your serializers to the new Serializer API using normalizeResponse hooks instead.
  • Calling store.find() with a query object is deprecated. Use store.query() instead.
  • RestAdapter#findQuery has been deprecated and renamed to query.
  • Ember.ArrayController is deprecated.
  • Using the context switching form of {{each}} is deprecated. Please use the keyword form ({{#each items as |item|}}) instead.
  • Depending on arrays using a dependent key ending with @each is deprecated. Please refactor from Ember.computed('reportRows.@each', function() {}); to Ember.computed('reportRows.[]', function() {}).
  • store.push(type, data) has been deprecated. Please provide a JSON-API document object as the first and only argument to store.push.
  • You tried to look up 'store:main', but this has been deprecated in favor of 'service:store'.
  • Using store.getById() has been deprecated. Use store.peekRecord to get a record by a given type and ID without triggering a fetch.
  • DS.Model#isDirty has been deprecated please use hasDirtyAttributes instead
  • Ember.ObjectController is deprecated, please use Ember.Controller and use model.propertyName.
  • Depending on arrays using a dependent key ending with @each is deprecated. Please refactor from Ember.computed('additionalDiagnosis@each', function() {}); to Ember.computed('additionalDiagnosi.[]', function() {}).
  • Usage of submit_button is deprecated, use submitButton instead.
  • You attempted to access isNew from <hospitalrun@controller:patients/edit::ember1079>, but object proxying is deprecated. Please use model.isNew instead.
  • You attempted to access errors from <hospitalrun@controller:patients/edit::ember1079>, but object proxying is deprecated. Please use model.errors instead.
  • You attempted to access friendlyId from <hospitalrun@controller:patients/edit::ember1079>, but object proxying is deprecated. Please use model.friendlyId instead.
  • You attempted to access firstName from <hospitalrun@controller:patients/edit::ember1079>, but object proxying is deprecated. Please use model.firstName instead.
  • You attempted to access middleName from <hospitalrun@controller:patients/edit::ember1079>, but object proxying is deprecated. Please use model.middleName instead.
  • You attempted to access lastName from <hospitalrun@controller:patients/edit::ember1079>, but object proxying is deprecated. Please use model.lastName instead.
  • You attempted to access gender from <hospitalrun@controller:patients/edit::ember1079>, but object proxying is deprecated. Please use model.gender instead.
  • You attempted to access dateOfBirth from <hospitalrun@controller:patients/edit::ember1079>, but object proxying is deprecated. Please use model.dateOfBirth instead.
  • You attempted to access display_dateOfBirth from <hospitalrun@controller:patients/edit::ember1079>, but object proxying is deprecated. Please use model.display_dateOfBirth instead.
  • You attempted to access age from <hospitalrun@controller:patients/edit::ember1079>, but object proxying is deprecated. Please use model.age instead.
  • You attempted to access placeOfBirth from <hospitalrun@controller:patients/edit::ember1079>, but object proxying is deprecated. Please use model.placeOfBirth instead.
  • You attempted to access patientType from <hospitalrun@controller:patients/edit::ember1079>, but object proxying is deprecated. Please use model.patientType instead.
  • You attempted to access status from <hospitalrun@controller:patients/edit::ember1079>, but object proxying is deprecated. Please use model.status instead.
  • You attempted to access externalPatientId from <hospitalrun@controller:patients/edit::ember1079>, but object proxying is deprecated. Please use model.externalPatientId instead.
  • You attempted to access bloodType from <hospitalrun@controller:patients/edit::ember1079>, but object proxying is deprecated. Please use model.bloodType instead.
  • ember-get-helper has been included in Ember 2.0. Use of this package is deprecated.
  • You attempted to access clinic from <hospitalrun@controller:patients/edit::ember1079>, but object proxying is deprecated. Please use model.clinic instead.
  • You attempted to access referredBy from <hospitalrun@controller:patients/edit::ember1079>, but object proxying is deprecated. Please use model.referredBy instead.
  • You attempted to access referredDate from <hospitalrun@controller:patients/edit::ember1079>, but object proxying is deprecated. Please use model.referredDate instead.
  • You attempted to access display_referredDate from <hospitalrun@controller:patients/edit::ember1079>, but object proxying is deprecated. Please use model.display_referredDate instead.
  • You attempted to access religion from <hospitalrun@controller:patients/edit::ember1079>, but object proxying is deprecated. Please use model.religion instead.
  • You attempted to access parent from <hospitalrun@controller:patients/edit::ember1079>, but object proxying is deprecated. Please use model.parent instead.
  • You attempted to access paymentProfile from <hospitalrun@controller:patients/edit::ember1079>, but object proxying is deprecated. Please use model.paymentProfile instead.
  • You attempted to access phone from <hospitalrun@controller:patients/edit::ember1079>, but object proxying is deprecated. Please use model.phone instead.
  • You attempted to access email from <hospitalrun@controller:patients/edit::ember1079>, but object proxying is deprecated. Please use model.email instead.
  • You attempted to access address from <hospitalrun@controller:patients/edit::ember1079>, but object proxying is deprecated. Please use model.address instead.
  • You attempted to access country from <hospitalrun@controller:patients/edit::ember1079>, but object proxying is deprecated. Please use model.country instead.
  • You attempted to access additionalContacts from <hospitalrun@controller:patients/edit::ember1079>, but object proxying is deprecated. Please use model.additionalContacts instead.
  • You attempted to access isValid from <hospitalrun@controller:patients/edit::ember1079>, but object proxying is deprecated. Please use model.isValid instead.
  • You attempted to access hideCancelButton from <hospitalrun@controller:patients/edit::ember1079>, but object proxying is deprecated. Please use model.hideCancelButton instead.
  • You attempted to access isDirty from <hospitalrun@controller:patients/edit::ember1079>, but object proxying is deprecated. Please use model.isDirty instead.
  • You attempted to access additionalButtons from <hospitalrun@controller:patients/edit::ember1079>, but object proxying is deprecated. Please use model.additionalButtons instead.
  • You attempted to set dateOfBirth from <hospitalrun@controller:patients/edit::ember1079>, but object proxying is deprecated. Please use model.dateOfBirth instead.
  • A property of <hospitalrun@view:-outlet::ember611> was modified inside the didInsertElement hook. You should never change properties on components, services or models during didInsertElement because it causes significant performance degradation.
  • You attempted to set referredDate from <hospitalrun@controller:patients/edit::ember1079>, but object proxying is deprecated. Please use model.referredDate instead.
  • You attempted to access isNew from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.isNew instead.
  • You attempted to access errors from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.errors instead.
  • You attempted to access friendlyId from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.friendlyId instead.
  • You attempted to access firstName from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.firstName instead.
  • You attempted to access middleName from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.middleName instead.
  • You attempted to access lastName from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.lastName instead.
  • You attempted to access gender from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.gender instead.
  • You attempted to access dateOfBirth from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.dateOfBirth instead.
  • You attempted to access display_dateOfBirth from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.display_dateOfBirth instead.
  • You attempted to access age from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.age instead.
  • You attempted to access placeOfBirth from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.placeOfBirth instead.
  • You attempted to access patientType from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.patientType instead.
  • You attempted to access status from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.status instead.
  • You attempted to access externalPatientId from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.externalPatientId instead.
  • You attempted to access bloodType from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.bloodType instead.
  • You attempted to access clinic from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.clinic instead.
  • You attempted to access referredBy from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.referredBy instead.
  • You attempted to access referredDate from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.referredDate instead.
  • You attempted to access display_referredDate from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.display_referredDate instead.
  • You attempted to access religion from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.religion instead.
  • You attempted to access parent from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.parent instead.
  • You attempted to access paymentProfile from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.paymentProfile instead.
  • You attempted to access phone from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.phone instead.
  • You attempted to access email from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.email instead.
  • You attempted to access address from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.address instead.
  • You attempted to access country from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.country instead.
  • You attempted to access additionalContacts from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.additionalContacts instead.
  • You attempted to access isValid from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.isValid instead.
  • You attempted to access hideCancelButton from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.hideCancelButton instead.
  • You attempted to access isDirty from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.isDirty instead.
  • You attempted to access additionalButtons from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.additionalButtons instead.
  • You attempted to set dateOfBirth from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.dateOfBirth instead.
  • A property of <hospitalrun@view:-outlet::ember1559> was modified inside the didInsertElement hook. You should never change properties on components, services or models during didInsertElement because it causes significant performance degradation.
  • You attempted to set referredDate from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.referredDate instead.
  • You attempted to set firstName from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.firstName instead.
  • You attempted to set lastName from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.lastName instead.
  • You attempted to access isDeleted from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.isDeleted instead.
  • Depending on arrays using a dependent key ending with @each is deprecated. Please refactor from Ember.computed('visits.@each', function() {}); to Ember.computed('visits.[]', function() {}).
  • You attempted to access visits from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.visits instead.
  • You attempted to access familyInfo from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.familyInfo instead.
  • You attempted to access expenses from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.expenses instead.
  • You attempted to access livingArrangement from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.livingArrangement instead.
  • You attempted to access familySupport1 from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.familySupport1 instead.
  • You attempted to access familySupport2 from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.familySupport2 instead.
  • [ ]You attempted to access familySupport3 from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.familySupport3 instead.
  • [ ]You attempted to access familySupport4 from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.familySupport4 instead.
  • [ ]You attempted to access familySupport5 from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.familySupport5 instead.
  • [ ]You attempted to access notes from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.notes instead.
  • [ ]You attempted to access socialRecommendation from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.socialRecommendation instead.
  • [ ]You attempted to access socialActionTaken from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.socialActionTaken instead.
  • [ ]You attempted to access insurance from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.insurance instead.
  • [ ]You attempted to access economicClassification from <hospitalrun@controller:patients/edit::ember1756>, but object proxying is deprecated. Please use model.economicClassification instead.
  • [ ]You attempted to access hideCancelButton from <hospitalrun@controller:dialog::ember2289>, but object proxying is deprecated. Please use model.hideCancelButton instead.
  • [ ]You attempted to access hideUpdateButton from <hospitalrun@controller:dialog::ember2289>, but object proxying is deprecated. Please use model.hideUpdateButton instead.
  • [ ]You attempted to access title from <hospitalrun@controller:dialog::ember2289>, but object proxying is deprecated. Please use model.title instead.
  • [ ]You attempted to access updateButtonAction from <hospitalrun@controller:dialog::ember2289>, but object proxying is deprecated. Please use model.updateButtonAction instead.
  • [ ]You attempted to access updateButtonText from <hospitalrun@controller:dialog::ember2289>, but object proxying is deprecated. Please use model.updateButtonText instead.
  • [ ]You attempted to access showProgress from <hospitalrun@controller:dialog::ember2289>, but object proxying is deprecated. Please use model.showProgress instead.
  • [ ]You attempted to access message from <hospitalrun@controller:dialog::ember2289>, but object proxying is deprecated. Please use model.message instead." }

@zinyando zinyando force-pushed the remove-deprecations-in-patients branch from 82b60f3 to c4be228 Compare October 15, 2015 12:57
jkleinsc added a commit that referenced this pull request Oct 15, 2015
 # Please enter a commit message to explain why this merge is necessary,
@jkleinsc
Copy link
Member

Closing this PR. The WIP has been merged in, but there are application wide deprecations that should be resolved outside of this PR.

@jkleinsc jkleinsc closed this Oct 15, 2015
matteovivona pushed a commit that referenced this pull request Jan 15, 2021
Convert AddRelatedPersonModal.test.tsx to RTL
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants