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 edge-case get and normalizeTuple behavior before fixes #4124

Merged
merged 1 commit into from
Jul 25, 2014

Conversation

mixonic
Copy link
Member

@mixonic mixonic commented Jan 11, 2014

Requires #4123.

PR #3852 changes some edge case behavior for get and normalizeTuple. Ahead of those changes, this commit introduces deprecation notices.

  • Deprecate get for local paths on global contexts, only if they
    return data.
  • Deprecate normalizeTuple calls that return a non-global contenxt
    and a simple global path.

/cc @ebryn @wagenet

@rwjblue
Copy link
Member

rwjblue commented Jan 11, 2014

This would be great to have in a release (or at least a beta release) before #3852 lands. That will give users a chance to get a nice warning and update.

@stefanpenner
Copy link
Member

this may need a rebase.

@mixonic
Copy link
Member Author

mixonic commented Jan 16, 2014

@stefanpenner rebased, for great good.

@mixonic
Copy link
Member Author

mixonic commented Jan 31, 2014

Gave this another rebase to ensure that it is up to date- Is there anything else I can do to move it forward?

@stefanpenner
Copy link
Member

@rjackson can you add this to the agenda today?

@rwjblue
Copy link
Member

rwjblue commented Jan 31, 2014

@stefanpenner - Yep, already on there.

@stefanpenner
Copy link
Member

awesome

@wagenet
Copy link
Member

wagenet commented Feb 3, 2014

@stefanpenner Did this get discussed?

@mixonic
Copy link
Member Author

mixonic commented Feb 27, 2014

Ping for tomorrow, if it can make the core discussion.

@rwjblue
Copy link
Member

rwjblue commented Mar 9, 2014

Due to the recent update of ember-metal, ember-runtime, and ember-debug to ES6 module format, this PR does not apply cleanly any longer.

@mixonic - Could you rebase?

@mixonic
Copy link
Member Author

mixonic commented Mar 19, 2014

Rebased over the ES6 work and @stefanpenner's perf work.

@mixonic
Copy link
Member Author

mixonic commented Apr 9, 2014

Rebased again and tests passing.

@rwjblue
Copy link
Member

rwjblue commented May 18, 2014

I'd like to get this merged soon so that we can ship 1.7 with this deprecation warning.

Does anyone have an objection to this?

if (obj === null) {
var value = _getPath(obj, keyName);
Ember.deprecate(
"Ember.get fetched '"+keyName+"' from the global context. This behavior will change in the future (issue #3852)",
Copy link
Member

Choose a reason for hiding this comment

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

I think we need a better message here. Perhaps make it more actionable?

@mixonic
Copy link
Member Author

mixonic commented Jul 2, 2014

And rebased again.

…3852

PR emberjs#3852 changes some edge case behavior for get and normalizeTuple. Ahead
of those changes, this commit introduces deprecation notices.

  * Deprecate get for local paths on global contexts, only if they
    return data.
  * Deprecate normalizeTuple calls that return a non-global contenxt
    and a simple global path.
stefanpenner added a commit that referenced this pull request Jul 25, 2014
Deprecate edge-case get and normalizeTuple behavior before fixes
@stefanpenner stefanpenner merged commit 36960a1 into emberjs:master Jul 25, 2014
rwjblue added a commit to rwjblue/ember.js that referenced this pull request Jul 25, 2014
rwjblue added a commit that referenced this pull request Jul 25, 2014
@rwjblue rwjblue deleted the deprecate-bad-normalize-get branch January 3, 2015 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants