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

Changes on master have not yet been released #116

Open
runspired opened this issue Mar 1, 2022 · 22 comments
Open

Changes on master have not yet been released #116

runspired opened this issue Mar 1, 2022 · 22 comments

Comments

@runspired
Copy link

Latest released version is 2.0.1. Changes on master would fix many deprecations.

@gilest
Copy link

gilest commented Mar 10, 2022

Agree – @lukemelia would it be possible to cut a release? 🙇🏻

@runspired
Copy link
Author

I tested latest master in our app and it was broken, might be worth adding some tests and doing some debugging before releasing.

@gilest
Copy link

gilest commented Mar 11, 2022

What was broken? Just migrated an app from the older package ember-radio-buttons (plural) to latest master and didn't have any issues.

@runspired
Copy link
Author

@gilest groups of buttons no longer worked at all, they acted independently and their actions wouldn't fire.

@m0glan
Copy link

m0glan commented May 4, 2022

Any update of an ETA for the 3.X release? Thank you.

@lukemelia
Copy link
Contributor

I'm happy to cut a release but need help confirming or fixing master's functionality.

@m0glan
Copy link

m0glan commented May 31, 2022

@lukemelia What exactly seems to be the problem? I cloned the project and ran the tests and they all pass. Console is clean, no deprecation warnings or anything.

@m0glan
Copy link

m0glan commented May 31, 2022

@lukemelia Just tested latest master on our project... nothing seems wrong. Works as expected. Am I missing something?

@gilest
Copy link

gilest commented May 31, 2022

@gilest groups of buttons no longer worked at all, they acted independently and their actions wouldn't fire.

I didn't manage to verify this although I may not have tested all usages. Working in production for a client pinned at b2ab65f (latest master commit).

@lukemelia
Copy link
Contributor

OK, I'll go ahead with a 3.0.0-beta.0 and we'll see how it goes. Thanks all.

@m0glan
Copy link

m0glan commented May 31, 2022

Thanks a lot, much appreciated!!

@lukemelia
Copy link
Contributor

Released as https://github.com/yapplabs/ember-radio-button/releases/tag/v3.0.0-beta.0

@lukemelia
Copy link
Contributor

Please give it a whirl and let me know if it is working for you.

@m0glan
Copy link

m0glan commented Jun 1, 2022

@lukemelia Just added this last update to our project. So far so good, tested a few of the places we're using radio buttons in, nothing out of the ordinary so far, no errors, no warnings. Passed it on to our QA to have a deeper look.

Also we have pretty good test coverage for our project and all of the tests pass.

@lukemelia
Copy link
Contributor

Thanks for the update @vmoglan. Keep us posted here.

@runspired
Copy link
Author

I'm no longer working on the project I had issues with so can't retest, though I'm starting to have a theory that it might have been due to either usage of string actions or a yarn bug that can happen when installing from a GitHub url.

@lukemelia
Copy link
Contributor

@runspired 👍 Thanks for following up.

@m0glan
Copy link

m0glan commented Jun 3, 2022

@lukemelia perhaps my last update, our QA ran automated + manual tests and everything worked as expected. I think this may be good to go.

@Benjy1979
Copy link

Benjy1979 commented Jun 22, 2022

Hi,

how do I install version 3, as mentioned in the readme. When I read the guides it only really covers how to install npm or yarn packages. e.g ember install ember-cli-sass

What would I do with a zip file?

@m0glan
Copy link

m0glan commented Jun 22, 2022

@Benjy1979 I think ember install ember-radio-button@3.0.0-beta.0 should do

@jkallman
Copy link

I've been using 3.0.0-beta.0 in my app (Ember 4.6) and haven't run into any issues yet. Are there any remaining steps before the official release of 3.0.0?

@tehhowch
Copy link

tehhowch commented Jan 18, 2023

I think the issue is when a closure changed action isn't provided, the expected native behavior doesn't work for apps that are still working through a mix of old and new syntax.

In v2, there was a computed-aware update to groupValue -- the commented code is still present (but obviously won't work if uncommented):

@action change() {
if (this.args.groupValue !== this.args.value) {
// this.set('groupValue', value);
once(this.args, 'changed', this.args.value);
}

I ran into this when a set of has-block RadioButton components provided neither the @name argument nor changed, and relied instead on responding to the update of groupValue. Instead, clicking any of them persisted the current selection, and added the just-clicked input to the selection.
When I supplied the "name" argument, I got the expected "radio button" interaction (only one could be selected), but still didn't have the expected reactivity (since the component was using computed properties based on the value passed in as groupValue).
When I provided the change callback, I was able to drive the reactivity as expected, through this.set in the calling component. I am not currently able to test whether the change action is still optional, as that component is very firmly backed into computed properties at the moment.

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

No branches or pull requests

7 participants