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

Provide ability to view password #1980

Merged
merged 6 commits into from
Jun 3, 2024

Conversation

derek-ho
Copy link
Collaborator

@derek-ho derek-ho commented May 31, 2024

Description

Previously, there is no way to view the password that a user types when creating a user or resetting the password. This could be frustrating if the password is long and cannot be updated without retyping the whole thing. This PR adds that ability.

Category

Enhancement

Why these changes are required?

To improve the user experience

What is the old behavior before changes and new behavior after changes?

Screen.Recording.2024-05-31.at.10.51.55.AM.mov

Issues Resolved

Fix: #1940

Testing

Snapshot test, video

Check List

  • New functionality includes testing
  • New functionality has been documented
  • Commits are signed per the DCO using --signoff

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.

@derek-ho derek-ho marked this pull request as ready for review May 31, 2024 15:01
@derek-ho derek-ho added the backport 2.x backport to 2.x branch label May 31, 2024
Copy link

codecov bot commented May 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.61%. Comparing base (b3e444f) to head (dd9cde3).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1980   +/-   ##
=======================================
  Coverage   70.61%   70.61%           
=======================================
  Files          97       97           
  Lines        2600     2600           
  Branches      387      387           
=======================================
  Hits         1836     1836           
  Misses        668      668           
  Partials       96       96           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

cwperks
cwperks previously approved these changes May 31, 2024
@derek-ho
Copy link
Collaborator Author

Copy link
Member

@DarshitChanpura DarshitChanpura left a comment

Choose a reason for hiding this comment

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

Thanks @derek-ho ! While you wait to get unblocked, what do you think about adding this feature to login screen as well for basic-auth?

@derek-ho
Copy link
Collaborator Author

Thanks that is a good suggestion - here is how it looks with the new addition on the login screen

Screenshot 2024-05-31 at 12 41 59 PM

@derek-ho
Copy link
Collaborator Author

@cwperks @DarshitChanpura I decided to also remove the macos unit tests check since we dont officially support mac os and this can cut down on CI time spent/overall resources used, but it seems to be a required check - what do you folks think about removing this until/if we support macos officially?

@cwperks
Copy link
Member

cwperks commented May 31, 2024

@derek-ho updated the branch protection rules. main now matches 2.. There was an issue where Unit tests for Mac OS were required, but Unit tests for Windows were not. On 2. it required Unit Tests to run successfully for Windows so I updated the rules on main to match.

DarshitChanpura
DarshitChanpura previously approved these changes Jun 3, 2024
Copy link
Member

@DarshitChanpura DarshitChanpura left a comment

Choose a reason for hiding this comment

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

LGTM!

@derek-ho derek-ho merged commit 5fbc14e into opensearch-project:main Jun 3, 2024
19 checks passed
@derek-ho derek-ho deleted the view-password branch June 3, 2024 19:12
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jun 3, 2024
* Provide ability to view password

Signed-off-by: Derek Ho <[email protected]>

* Add snapshot to verify it is a FieldPassword

Signed-off-by: Derek Ho <[email protected]>

* Stop running macos unit tests and change login screen

Signed-off-by: Derek Ho <[email protected]>

* Try to fix the flakiness of oidc with basepath test

Signed-off-by: Derek Ho <[email protected]>

* Revert data test subj changes

Signed-off-by: Derek Ho <[email protected]>

---------

Signed-off-by: Derek Ho <[email protected]>
Co-authored-by: Darshit Chanpura <[email protected]>
(cherry picked from commit 5fbc14e)
DarshitChanpura pushed a commit that referenced this pull request Jun 4, 2024

Signed-off-by: Derek Ho <[email protected]>
Co-authored-by: Darshit Chanpura <[email protected]>
(cherry picked from commit 5fbc14e)

Co-authored-by: Derek Ho <[email protected]>
AMoo-Miki added a commit to AMoo-Miki/security-dashboards-plugin that referenced this pull request Jun 10, 2024
The shading of the icons changed with opensearch-project#1980 and this removes the shading to make the fields look consistent.

Signed-off-by: Miki <[email protected]>
derek-ho pushed a commit that referenced this pull request Jun 10, 2024
The shading of the icons changed with #1980 and this removes the shading to make the fields look consistent.

Signed-off-by: Miki <[email protected]>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jun 10, 2024
The shading of the icons changed with #1980 and this removes the shading to make the fields look consistent.

Signed-off-by: Miki <[email protected]>
(cherry picked from commit 489ae54)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x backport to 2.x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Add a view button for password input text-box
4 participants