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

[BUGFIX release] Update Ember.deprecate and Ember.warn calls to include required information #3575

Merged
merged 1 commit into from
Jul 24, 2015

Conversation

HeroicEric
Copy link
Member

fixes #3568 for release branch

Related: #3570

@HeroicEric HeroicEric force-pushed the add-required-info-to-deprecations branch 3 times, most recently from 1f8c6e9 to 59f0aa9 Compare July 23, 2015 00:41
@HeroicEric HeroicEric changed the title [WIP release] Update Ember.deprecate and Ember.warn calls to include required information [BUGFIX release] Update Ember.deprecate and Ember.warn calls to include required information Jul 23, 2015
@HeroicEric
Copy link
Member Author

@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 until: '2.0.0'. Everything else is the same as it was in the other PR, so there may be some additional things that should be changed from '3.0.0' to '2.0.0'.

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'
Copy link
Member Author

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?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

@HeroicEric HeroicEric force-pushed the add-required-info-to-deprecations branch from 59f0aa9 to 8cdd5c5 Compare July 24, 2015 01:17
@HeroicEric
Copy link
Member Author

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'
Copy link
Contributor

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 warns?

@HeroicEric
Copy link
Member Author

@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'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💣 until

@HeroicEric HeroicEric force-pushed the add-required-info-to-deprecations branch from 8cdd5c5 to f3ee1d1 Compare July 24, 2015 05:08
@HeroicEric
Copy link
Member Author

All the untils have been removed from the warnings

@wecc
Copy link
Contributor

wecc commented Jul 24, 2015

@HeroicEric sweet! can you update the message (mentioned above) from Ember Data 1.0 => Ember Data 2.0 and I'll be happy to merge!

@wecc
Copy link
Contributor

wecc commented Jul 24, 2015

And [BUGFIX release] in commit message :)

@HeroicEric HeroicEric force-pushed the add-required-info-to-deprecations branch from f3ee1d1 to d490ae2 Compare July 24, 2015 05:36
@HeroicEric
Copy link
Member Author

@wecc done

@HeroicEric HeroicEric force-pushed the add-required-info-to-deprecations branch from d490ae2 to 7afbd99 Compare July 24, 2015 05:37
wecc added a commit that referenced this pull request Jul 24, 2015
…tions

[BUGFIX release] Update `Ember.deprecate` and `Ember.warn` calls to include required information
@wecc wecc merged commit 1c4d452 into emberjs:release Jul 24, 2015
@wecc
Copy link
Contributor

wecc commented Jul 24, 2015

Thanks!

@HeroicEric HeroicEric deleted the add-required-info-to-deprecations branch July 24, 2015 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants