Conversation
|
Wrapping the onChange calls in a single handler that includes handleClearValidationErrors would reduce code duplication and centralize the error-clearing logic, making the code cleaner and easier to maintain. superset-frontend/src/features/databases/DatabaseModal/index.tsx |
|
🎪 Showtime deployed environment on GHA for 8bd0edf • Environment: http://34.217.32.154:8080 (admin/admin) |
| }); | ||
| }); | ||
|
|
||
| test('handleChangeWithValidation function clears validation errors when called', () => { |
There was a problem hiding this comment.
Testing user behaviour here is much more complex so i went with just testing the implementation. Otherwise we need to create e2e tests.
|
🎪 Showtime deployed environment on GHA for a7172b9 • Environment: http://54.202.150.0:8080 (admin/admin) |
Code Review Agent Run #88e1e0Actionable Suggestions - 0Additional Suggestions - 5
Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
|
@EnxDev This workflow is deprecated! Please use the new Superset Showtime system instead:
Processing your ephemeral environment request here. Action: up. More information on how to use or configure ephemeral environments |
|
@EnxDev Ephemeral environment spinning up at http://34.209.81.157:8080. Credentials are 'admin'/'admin'. Please allow several minutes for bootstrapping and startup. |
Validation here works after user clicks connect (for the Display Name field). So the loading spinner inside the input doesn't happen |
I might be missing something, but as shown in the video, in both cases the validation is triggered when clicking outside the field. From the moment validation starts to when the “Connect” button becomes enabled, there’s a short delay. I thought it might be useful to provide some loading feedback so users understand that the field is being validated. Recording.2025-12-31.111139.mp4 |
This is addressed in #36880 |



SUMMARY
When creating a database connection with validation errors (e.g., duplicate database name), users had to manually dismiss error messages before being able to successfully connect, even
after fixing the underlying issue.
Added handleClearValidationErrors() calls to all form field onChange handlers in DatabaseModal/index.tsx. Now when users modify any form field after encountering validation errors, the
errors are automatically cleared, allowing immediate reconnection once the issue is resolved.
Reproduction steps:
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before (first click of the button without clearing errors does nothing):
gsheets-before.mp4
After:
gsheets-after.mp4
TESTING INSTRUCTIONS
Run testing suite or follow repro steps
ADDITIONAL INFORMATION