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

Deprecate usage of {{render helper with a model param #13268

Merged
merged 1 commit into from
Apr 7, 2016

Conversation

pittst3r
Copy link
Contributor

@pittst3r pittst3r commented Apr 6, 2016

Addresses first part of #13183.

This is my first time diving into Ember internals like this, so I'm pretty sure it won't be 100% off the bat. Also not sure about how to tag this.

@@ -0,0 +1,54 @@
import { deprecate } from 'ember-metal/debug';
Copy link
Member

Choose a reason for hiding this comment

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

Small nit-pick, but this file doesn't transform anything. Can you rename to deprecate-render-model.js instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I was wondering about that (the best name for the file).

@rwjblue
Copy link
Member

rwjblue commented Apr 6, 2016

This is looking great, thanks for tackling! I left a few comments inline for tweaks/suggestions, and when you are done can you squash commits?

We will also need a PR to the website repo adding this deprecation to the list for Ember 2.6.

@pittst3r pittst3r force-pushed the render-model-param-deprecation branch from 45f6720 to 87691e3 Compare April 6, 2016 19:36
@pittst3r pittst3r force-pushed the render-model-param-deprecation branch from 87691e3 to 39c71b4 Compare April 6, 2016 19:39
@pittst3r
Copy link
Contributor Author

pittst3r commented Apr 6, 2016

@rwjblue No problem, it was fun. Made the requested changes. I'll work on the website update later/tomorrow.

@pittst3r
Copy link
Contributor Author

pittst3r commented Apr 7, 2016

Website PR

@rwjblue rwjblue merged commit 8908d5d into emberjs:master Apr 7, 2016

deprecate(deprecationMessage(moduleName, node, param), false, {
id: 'ember-template-compiler.deprecate-render-model',
until: '3.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.

Whoops! I just realized that this doesn't include the URL from the website PR. Can you submit a follow up to add that in?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

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.

2 participants