-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
transition.send
change in Ember 3.6 breaks Torii (authentication addon)
#17545
Comments
You can just use |
@chadhietala was this an intentional change? Why did we add an argument to the beginning? |
Probably not. I can look this morning. |
I cherry-picked #17563 on to |
This is better but not a complete fix. Before I was doing something like: actions: {
actionName(id) {
// Do something with `id`
}
} Now the |
@btecu I have a similar issue. I think the main issue is that if you pass multiple params to ex: actions: {
event(one, two, three) {
// one == param2
// two == param3
// three == undefined
}
} This code may be the culprit: If you don't pass a boolean as the first param, it "shifts" the name param over, but not the collected args ( |
@crhayes In my case I worked around it by not using |
@btecu Yes I worked around my issue with |
When upgrading an app from 3.5, acceptance tests started failing that ensured unauthenticated users were redirected. The app uses Torii and the
authenticatedRoute
feature which would hit anaccessDenied
action on the Route hierarchy when a user is not authenticated, in 3.6, this action is not hit.Torii Issue: https://github.com/Vestorly/torii/issues/431
A recreation of the issue is here: https://github.com/kategengler/torii-test
This change kategengler/torii@212e6a5 fixes the recreation (but does not fix the original app 😬)
The text was updated successfully, but these errors were encountered: