-
Notifications
You must be signed in to change notification settings - Fork 164
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
Switch the home link to logout on security error pages #1564
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1564 +/- ##
==========================================
+ Coverage 67.93% 67.99% +0.05%
==========================================
Files 93 93
Lines 2339 2340 +1
Branches 317 317
==========================================
+ Hits 1589 1591 +2
+ Misses 722 720 -2
- Partials 28 29 +1
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this, before we merge could you create/modify a test case that validates the link works?
Yes, for sure Peter thanks. They're in progress I just wanted to submit the changes so far in case there were any comments for the change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @leanneeliatra , from what I understand of the issue the only real action a user with 0 roles could do would be to logout. Reading the comments on the issue, it sounds like the button on that page should be replaced with a logout button. Without a logout button the user would have to clear cookies in the browser to logout.
@leanneeliatra Please see my comment above. From the conversation on the issue, this button should be changed to a logout button.
|
Thank you Craig, that's complete |
Hi @peternied I have added the integration tests: opensearch-project/opensearch-dashboards-functional-test#830 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than button text change looks good. Can we change the base branch to main and backport to 2.x?
This should also fix: #842 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added the integration tests @peternied
opensearch-project/opensearch-dashboards-functional-test#830
Unfortunately I'm not sure how to address the '1 change requested: Merging can be performed automatically once the requested changes are addressed.'
Could you accept the changes please? If you are happy with the test linked above? Thank you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding the tests.
The base branch was changed.
I just saw that this PR was pointed to the 2.8 branch, it should go into main, please rebase against main |
I will indeed thanks @peternied |
Thanks for looking into this @RyanL1997 and yes, please do that. It would be great to get this merged in! Thanks. |
|
I am pulling in @RyanL1997 updates to the CI that will fix my checks on this PR and which will also simultaneously rerun the checks. |
Signed-off-by: [email protected] <[email protected]>
Signed-off-by: [email protected] <[email protected]>
The main branch has been merged in to my own branch but the CI is still failing, I will reach out to @RyanL1997 to discuss/for thoughts. |
Myself and @RyanL1997 are in communication about the cypress tests. |
@RyanL1997 is going to have a look at the cypress tests for me (thank you :) ) |
Reference to #1599, the manual testing results: |
Thanks a million @RyanL1997 I really appreciate that! No further reviews are needed. |
Can this be merged please? |
@RyanL1997 could you look into the CI issue? |
Can this be merged please! :) @peternied has previously stated (see comment referenced below) he was happy with the coverage so please merge ASAP. Thank you. |
Please merge ASAP. Thank you. |
* changing return to dashboards with functioning logout button on error page Signed-off-by: [email protected] <[email protected]> Co-authored-by: Darshit Chanpura <[email protected]> Co-authored-by: Peter Nied <[email protected]> (cherry picked from commit 27c37d4)
* changing return to dashboards with functioning logout button on error page Signed-off-by: [email protected] <[email protected]> Co-authored-by: Darshit Chanpura <[email protected]> Co-authored-by: Peter Nied <[email protected]> (cherry picked from commit 27c37d4) Co-authored-by: leanneeliatra <[email protected]>
…oject#1564) * changing return to dashboards with functioning logout button on error page Signed-off-by: [email protected] <[email protected]> Co-authored-by: Darshit Chanpura <[email protected]> Co-authored-by: Peter Nied <[email protected]> Signed-off-by: [email protected] <[email protected]>
Description
Fix for bug [BUG] missing roles button doesn't do anything #1490
Category
[Bug fix]
Why these changes are required?
The button on the /customerror/missing-role page was not doing anything, it should bring the user back to the dashboard
What is the old behavior before changes and new behavior after changes?
Old behaviour
New behaviour
Issues Resolved
[BUG] missing roles button doesn't do anything #1490
Testing
complete
Cypress integration tests added
Unit tests not required, signed off by @peternied
Rigorous manual testing locally complete
[Please provide details of testing done: unit testing, integration testing and manual testing]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.