-
Notifications
You must be signed in to change notification settings - Fork 14k
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: Dynamic form to connect to Snowflake DB is not displaying authentication errors #19491
Conversation
...obj, | ||
error_type, | ||
description: | ||
message || extra?.issue_codes?.[0]?.message, |
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 don't need conditional sign ?
here, because you already checked it in line# 751.
Just use extra.issue_codes[0].message
Btw, are you sure that issue_code
has always message?
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.
nop, and in that case it will fallback to show the json (like the others)
Codecov Report
@@ Coverage Diff @@
## master #19491 +/- ##
==========================================
- Coverage 66.59% 66.57% -0.02%
==========================================
Files 1676 1677 +1
Lines 64211 64241 +30
Branches 6537 6540 +3
==========================================
+ Hits 42762 42770 +8
- Misses 19750 19770 +20
- Partials 1699 1701 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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
…tication errors (apache#19491) * fix: Dynamic form to connect to Snowflake DB is not displaying authentication errors * pr comments (cherry picked from commit 634693b)
🏷️ preset:2022.13 |
…tication errors (apache#19491) * fix: Dynamic form to connect to Snowflake DB is not displaying authentication errors * pr comments
SUMMARY
There are two ways to create a connection with a Snowflake DB:
Using the dynamic form.
Using a SQLAlchemy URI string.
However, the dynamic form is not displaying authentication errors to the user, in case the authentication fails.
This PR adds additional code to trap that error and display it to the user.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before:
Screen.Recording.2022-04-01.at.13.07.07.mov
After:
new.mov
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION