-
Notifications
You must be signed in to change notification settings - Fork 5k
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
feat: Add the ability to change user password in the UI #5444
Conversation
a911457
to
87fb362
Compare
87fb362
to
eb65d8b
Compare
Codecov Report
@@ Coverage Diff @@
## master #5444 +/- ##
==========================================
+ Coverage 40.44% 41.19% +0.75%
==========================================
Files 142 148 +6
Lines 18936 19874 +938
==========================================
+ Hits 7658 8188 +530
- Misses 10187 10567 +380
- Partials 1091 1119 +28
Continue to review full report at Codecov.
|
<div className='user-info'> | ||
<div className='argo-container'> | ||
<div className='user-info-overview__panel white-box'> | ||
<DataLoader key='userInfo' load={() => services.users.get()}> |
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.
Since this is loading the same data as the DataLoader
on line 72, can you combine them please?
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 think I've done this in a reasonable way
5330c49
to
cff8f81
Compare
<div className='user-info'> | ||
<div className='argo-container'> | ||
<div className='user-info-overview__panel white-box'> | ||
userInfo.loggedIn ? ( |
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.
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.
fixed - also fixed line 70 & 128 which were missing the same braces
cff8f81
to
6d4d4c7
Compare
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.
6d4d4c7
to
2910c08
Compare
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.
One thing I noted is, that the "Update password" button is also displayed when logged in via SSO.
I think we should make sure to display this button only when the user currently logged in is a local one. This can be done by checking the issuer
in the JWT, which has to be argocd
in case of local users.
Here is example of Line 61 in c6d3728
|
Signed-off-by: Jared Clarke <jared.clarke@eckoh.com>
c70423c
to
80845c0
Compare
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 still don't see a check for whether the user is logged in with SSO. Could you add this please?
Signed-off-by: Jared Clarke <jared.clarke@eckoh.com>
c864e5a
to
55f9ccb
Compare
I originally added the iss check against the button being displayed but have now added this to the main sliding panel as well |
Signed-off-by: Jared Clarke jared.clarke@eckoh.com
Note on DCO:
If the DCO action in the integration test fails, one or more of your commits are not signed off. Please click on the Details link next to the DCO action for instructions on how to resolve this.
Checklist: