-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
fix(import): Add the error alert on failed database import #19673
Conversation
Codecov Report
@@ Coverage Diff @@
## master #19673 +/- ##
==========================================
- Coverage 66.46% 66.46% -0.01%
==========================================
Files 1681 1684 +3
Lines 64449 64506 +57
Branches 6607 6632 +25
==========================================
+ Hits 42838 42874 +36
- Misses 19917 19932 +15
- Partials 1694 1700 +6
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@@ -142,7 +154,7 @@ const ImportModelsModal: FunctionComponent<ImportModelsModalProps> = ({ | |||
|
|||
const handleErrorMsg = (msg: string) => { | |||
clearModal(); | |||
addDangerToast(msg); | |||
setErrMsg(msg); |
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.
we should clear it when attempting a new upload right?
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.
yeah, as far as I can see, the modal now is not closed, so if we can make a new upload with the same modal, we should clear previous error there
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.
Okay agree.
SUMMARY
Add error message when user tries to import without having db driver installed
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
BEFORE:
Not Error Alert Message
AFTER:
TESTING INSTRUCTIONS
How to reproduce issues
Repro steps:
Current behavior: Import hangs
Expected behavior: User sees an error message when they don't have the db driver installed
ADDITIONAL INFORMATION