-
Notifications
You must be signed in to change notification settings - Fork 156
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
Add reset password button to ops project list #4910
Add reset password button to ops project list #4910
Conversation
@khanhtc1202 & @ffjlabo - forgot that it wouldn't notify you in draft mode :D Nothing urgent, just hoped to get some feedback on the UI before writing up the tests. Cheers! |
@dgannon991 Thanks to your PR, I noticed this action is extremely dangerous because the control plane operator might reset for other projects accidentally. 👀 So, how about adding a confirmation screen? Reset password confirmation page like this↓ (the sentences are the draft, and I want more correct them 🙏 )
|
@dgannon991 @ffjlabo |
I like the sound of that. I've got some down time over the next couple of days, so I'll give it a go and let you know :) |
Thank you both 🙏 I agree with it! |
Hi Guys, |
@dgannon991 [IMO] If possible, it would be nice to show the Reset page with the failed message, or the link to the Reset page. |
Absolutely. I'll give that a whirl over the weekend. Cheers for the continued feedback on this one guys :) |
Morning! I've updated this to show a nice error message on the confirmation page. Do let me know if it's too big and red! I looked at the material UI library we use in the normal frontend for inspiration, but it is the first think like it on the ops pages! |
Hi @dgannon991 |
Hi @ffjlabo, Not a problem at all, the other task looks mega! No rush from my side at all :) D |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4910 +/- ##
==========================================
+ Coverage 22.05% 22.24% +0.19%
==========================================
Files 519 520 +1
Lines 57247 57365 +118
==========================================
+ Hits 12623 12763 +140
+ Misses 43601 43575 -26
- Partials 1023 1027 +4 ☔ View full report in Codecov by Sentry. |
Hi Guys, |
Hi Guys, |
/review |
PR AnalysisMain theme
PR summary
Type of PR
PR Feedback:General suggestions
Code feedback
Security concerns:
|
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 checked the behavior, and it works as we expected. Thanks a lot, @dgannon991 👍
I left some nits, but they can mostly be fixed later by separated PRs.
LGTM 👍
Hi Guys, more than happy to address these here if you'd like? LMK. |
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 also checked the behavior, and it worked as expected 👍
I have no comments other than comments by @khanhtc1202
LGTM 👍
@dgannon991 For sure, let's do as you want 👍 |
Thank you for saying that. |
not to make this PR merge by mistake, but it does not mean the code is not good
Nice one! I’m AFK until Thursday night, but I’ll get it done Friday morning! Cheers all. |
Hi Guys, |
Signed-off-by: David Gannon <19214156+dgannon991@users.noreply.github.com>
Hi Guys, |
@@ -305,6 +305,15 @@ func (x *Project) GetStaticAdminDisabled() bool { | |||
return false | |||
} | |||
|
|||
func (x *Project) GetStaticAdminUsername() string { |
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.
This file is generated by protoc-gen-go, so please move this method to pkg/model/project.go
file.
I checked the behavior, and it worked fine. |
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.
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.
Thank you!
Signed-off-by: David Gannon <19214156+dgannon991@users.noreply.github.com>
What this PR does / why we need it:
Adds a reset password button to the project list in the ops view
Which issue(s) this PR fixes:
Fixes #4844
Does this PR introduce a user-facing change?:
Yes, a new button and column in the ops list
Just pushing up a draft for this at the moment to get some early feedback. I'll have a look through to see how/if we're testing the ops side of things later, but wanted to provide an early view of the UI.