-
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: ensure validation for db modal for googlesheets #19018
Conversation
Codecov Report
@@ Coverage Diff @@
## master #19018 +/- ##
==========================================
- Coverage 66.58% 66.54% -0.05%
==========================================
Files 1641 1641
Lines 63524 63500 -24
Branches 6421 6441 +20
==========================================
- Hits 42299 42255 -44
- Misses 19548 19582 +34
+ Partials 1677 1663 -14
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@pkdotson Why is the whole screen re-rendering when you click on Connect and get a validation error? It's blinking and showing the loading indicator. Is it possible to improve this behavior? |
Hi Michael I think this is just a combination of the connection being fast on my local and how it was originally designed. I'll bring this up to the team to see if this can be looked into. |
/testenv up |
@pkdotson Ephemeral environment spinning up at http://54.214.148.138:8080. Credentials are |
Ephemeral environment shutdown and build artifacts deleted. |
* fix: ensure validation for db modal for googlesheets * chain async function (cherry picked from commit bb17dec)
SUMMARY
This pr fixes possibly fixes an issue where the validation for name or googlesheet api could be negated as truthy when trying to connect a gsheet. This is because the two of the same set state methods not separated by async method creating a race condition being returned from the hook.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
after
Screen.Recording.2022-03-03.at.3.39.31.PM.mov
TESTING INSTRUCTIONS
Go to gsheets database modal and try to connect a gsheet without name or url. It should not proceed to the next step without both being valid.
ADDITIONAL INFORMATION