-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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: dataset exists error in save Dataset modal #21244
fix: dataset exists error in save Dataset modal #21244
Conversation
Codecov Report
@@ Coverage Diff @@
## master #21244 +/- ##
==========================================
- Coverage 66.43% 66.42% -0.01%
==========================================
Files 1784 1784
Lines 68163 68280 +117
Branches 7264 7307 +43
==========================================
+ Hits 45285 45356 +71
- Misses 21010 21047 +37
- Partials 1868 1877 +9
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
}); | ||
|
||
setDatasetName(getDefaultDatasetName()); | ||
console.log(formData); |
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.
remove 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.
yup removed.
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.
remove the console.log
@AAfghahi from the video it appears that the modals close and reopen when the error occurs. It does not look ideal for the end user. How hard would it be to wait for the response and then only close the modal when successful and leave it open when unsuccessful? This would avoid the quick close-reopen behaviour currently shown in the video. Also, I am not sure if it makes more sense to show this error inline in the form? @kasiazjc what you think? |
Definitely agree with @geido. Errors should be shown in context, so it would be better to use inline info type. Toast can be easily missed by the user and this pattern is not intuitive. |
Hey, yeah I am working on that portion right now! |
@geido Fixed in latest. Screen.Recording.2022-08-30.at.11.09.43.AM.mov |
Inline makes sense to me! We'll plan to do that as a follow up so we can at least give the user some feedback first while we work on improving the display of the message. |
/testenv up |
@AAfghahi Ephemeral environment spinning up at http://35.92.135.26:8080. Credentials are |
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.
LGTM
Ephemeral environment shutdown and build artifacts deleted. |
SUMMARY
When a user tried to create a dataset with an already existing name, the current SaveDatasetModal was soft failing. This adds a danger toast to the action that creates datasources.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Screen.Recording.2022-08-29.at.5.03.19.PM.mov
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION