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

[CLEANUP beta] Removed deprecated currentWhen of LinkComponent #11793

Conversation

cibernox
Copy link
Contributor

Use current-when instead

currentWhen = attrs.currentWhen;
}

if (currentWhen) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note: I removed this lines, I haven't see the need to duplicate the same attribute under two different keys, both in this.attrs and under the object itself (and with different casing).

Copy link
Member

Choose a reason for hiding this comment

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

This is a breaking change without deprecation as it exists here.

Consider the following usage:

{{link-to 'stuff' 'stuff' current-when='foo'}}

In the above invocation, attrs['current-when'] was previously setting currentWhen so that you could call this.get('currentWhen') (instead of this.get('current-when')). We could add a deprecatingAlias from currentWhen to current-when if we need to...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I considered that, but since the currentWhen attribute was deprecated explicitly set and was marked as private in the docs I wasn't sure if I had to go through the intermediate step. Do I?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ping on this?

Copy link
Member

Choose a reason for hiding this comment

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

@cibernox even changing private APIs we like to do a check to see if there is usage in the wild.

Unfortunately it seems like there is plenty: https://github.com/search?q=currentWhen&type=Code&utf8=%E2%9C%93 so we should add a corresponding deprecation in 1.13 :-/

@btecu
Copy link
Contributor

btecu commented Jul 19, 2015

current-when sounds so helpful and I had no idea this existed.

@cibernox cibernox force-pushed the remove-deprecated-currentWhen-from-link-to branch 2 times, most recently from e19e038 to 1ace9ce Compare July 20, 2015 14:14
@cibernox cibernox force-pushed the remove-deprecated-currentWhen-from-link-to branch from 1ace9ce to 83ff1c7 Compare July 21, 2015 23:26
@cibernox
Copy link
Contributor Author

Rebased after deprecated code got one of those fancy deprecation ids.

@mixonic
Copy link
Member

mixonic commented Jul 22, 2015

@rwjblue please confirm that the deprecation the removes should have been until: 2.0.0? I think we need to change a few of them.

@rwjblue
Copy link
Member

rwjblue commented Aug 2, 2015

I kinda thought we'd keep this around until 3.0.0 (hence the until value). It doesn't cost us much to have, and the deprecation was added pretty late in the 1.13.x stable period.

Gonna close this for now. Others please feel free to argue with me 😺

@rwjblue rwjblue closed this Aug 2, 2015
@btecu
Copy link
Contributor

btecu commented Aug 2, 2015

Unrelated, but any chance we could make current-when public?
It would be very useful when pagination or sorting are present.

@mixonic
Copy link
Member

mixonic commented Aug 3, 2015

@btecu it should be public afaik. If it is marked otherwise a PR is definitely welcome.

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.

4 participants