-
Notifications
You must be signed in to change notification settings - Fork 45
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
ui: Remove useLogoutEffect and display an error instead of logging out in case of an issue while authenticating on Salt API #3330
ui: Remove useLogoutEffect and display an error instead of logging out in case of an issue while authenticating on Salt API #3330
Conversation
Hello jbwatenbergscality,My role is to assist you with the merge of this Status report is not available. |
Waiting for approvalThe following approvals are needed before I can proceed with the merge:
Peer approvals must include at least 1 approval from the following list:
|
bf9c926
to
3eeab65
Compare
8ceaa78
to
25be0ab
Compare
Due to a bug in gpg signature for openstack terraform plugins, disable plugins verification for now This commit should really be reverted ASAP !
…t in case of an issue while authenticating on Salt API
25be0ab
to
4414b3d
Compare
/approve |
In the queueThe changeset has received all authorizations and has been added to the The changeset will be merged in:
The following branches will NOT be impacted:
There is no action required on your side. You will be notified here once IMPORTANT Please do not attempt to modify this pull request.
If you need this pull request to be removed from the queue, please contact a The following options are set: approve |
I have successfully merged the changeset of this pull request
The following branches have NOT changed:
Please check the status of the associated issue None. Goodbye jbwatenbergscality. |
Component:
ui
Context:
In firefox a race condition led us to a state where logOut effect was called before the authentication being finished. Leading to an infinite login loop.
Summary:
It appears this is due to some optimisation while triggering
useLoginEffect
anduseLogoutEffect
. AlsouseLogoutEffect
was only introduced to match an incorrect behaviour which is logging out the user when we fail to authenticate against Salt API. However most of the UI features can be used without Salt API.Hence as
useLogoutEffect
was not really needed I purpose with this PR to get rid of it and switch to an error message being toasted when we can't be authenticated against Salt API.Acceptance criteria:
Unit Tests and E2E cypress tests