-
Notifications
You must be signed in to change notification settings - Fork 148
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
Mm 432 - Handle "unconfigured" state of plugin gracefully #460
Conversation
Hello @sibasankar-demansol, Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here. |
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.
The code looks good, but maybe the UX can be a bit better. One suggestion below.
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 @sibasankar-demansol, functionality looks good 👍
I have a few suggestions for improvement
Codecov Report
@@ Coverage Diff @@
## master #460 +/- ##
==========================================
+ Coverage 19.66% 19.90% +0.24%
==========================================
Files 11 11
Lines 2741 3004 +263
==========================================
+ Hits 539 598 +59
- Misses 2162 2366 +204
Partials 40 40
Continue to review full report at Codecov.
|
@hanzei can you take a look at this ? |
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.
Great work @sibasankar-demansol 👍 I have some non-blocking suggestions to improve some text
server/plugin/command.go
Outdated
var text string | ||
switch { | ||
case err != nil: | ||
text = "Unable to fetch user details." |
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.
text = "Unable to fetch user details." | |
text = "Error checking user's permissions" | |
p.API.LogWarn(text, "err", err.Error()) |
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.
done
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.
Nice work 👍 One nit pick
@sibasankar-demansol Let me know if you want to address my comment above. Otherwise I will just merge the PR. |
@hanzei have made the changes as asked , you can merge it now |
handled unconfigured state and allowed user to start the plugin with useful message if not configured
ticket here
#432