-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[BUGFIX release] Update Ember.deprecate
and Ember.warn
calls to include required information
#3575
[BUGFIX release] Update Ember.deprecate
and Ember.warn
calls to include required information
#3575
Conversation
1f8c6e9
to
59f0aa9
Compare
Ember.deprecate
and Ember.warn
calls to include required informationEmber.deprecate
and Ember.warn
calls to include required information
@wecc this has all of the stuff from #3570 as well as anything additional that was left in the release branch. I assumed that everything that was still in the release branch but was no longer in master could be marked as |
Ember.deprecate('DS.FixtureAdapter has been deprecated and moved into an unsupported addon: https://github.com/emberjs/ember-data-fixture-adapter/tree/master'); | ||
Ember.deprecate('DS.FixtureAdapter has been deprecated and moved into an unsupported addon: https://github.com/emberjs/ember-data-fixture-adapter/tree/master', false, { | ||
id: 'ds.adapter.fixture-adapter-deprecated', | ||
until: '3.0.0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be 2.0.0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
59f0aa9
to
8cdd5c5
Compare
after talking to @bmac in slack, all deprecations/warnings are now marked as until 2.0.0 |
Ember.warn(this.warnMessageNoModelForKey(prop, modelName), false); | ||
Ember.warn(this.warnMessageNoModelForKey(prop, modelName), false, { | ||
id: 'ds.serializer.model-for-key-missing', | ||
until: '3.0.0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need until
for warn
s?
@wecc you're right "Warnings likewise will be required to pass a canonical id:" says nothing about requiring the until |
Ember.warn('Ember Data expected to find records with the following ids in the adapter response but they were missing: ' + Ember.inspect(Ember.A(missingRecords).mapBy('id')), false); | ||
Ember.warn('Ember Data expected to find records with the following ids in the adapter response but they were missing: ' + Ember.inspect(Ember.A(missingRecords).mapBy('id')), false, { | ||
id: 'ds.store.missing-records-from-adapter', | ||
until: '2.0.0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💣 until
8cdd5c5
to
f3ee1d1
Compare
All the |
@HeroicEric sweet! can you update the message (mentioned above) from |
And |
f3ee1d1
to
d490ae2
Compare
@wecc done |
…lude required options
d490ae2
to
7afbd99
Compare
…tions [BUGFIX release] Update `Ember.deprecate` and `Ember.warn` calls to include required information
Thanks! |
fixes #3568 for release branch
Related: #3570