-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
feat: generic marshmallow error component #25303
Conversation
0816aa0
to
047f915
Compare
047f915
to
2d03000
Compare
superset-frontend/src/components/Datasource/DatasourceModal.tsx
Outdated
Show resolved
Hide resolved
superset-frontend/src/components/ErrorMessage/MarshmallowErrorMessage.tsx
Show resolved
Hide resolved
This is a really great improvement @betodealmeida! |
superset-frontend/src/components/Datasource/DatasourceModal.tsx
Outdated
Show resolved
Hide resolved
superset-frontend/src/components/ErrorMessage/MarshmallowErrorMessage.tsx
Show resolved
Hide resolved
superset-frontend/src/components/ErrorMessage/MarshmallowErrorMessage.tsx
Show resolved
Hide resolved
/testenv up |
@yousoph Ephemeral environment spinning up at http://35.165.15.14:8080. Credentials are |
66fc17e
to
e62bea2
Compare
e62bea2
to
edd7bf5
Compare
@@ -88,7 +89,7 @@ export type ErrorType = ValueOf<typeof ErrorTypeEnum>; | |||
// Keep in sync with superset/views/errors.py | |||
export type ErrorLevel = 'info' | 'warning' | 'error'; | |||
|
|||
export type ErrorSource = 'dashboard' | 'explore' | 'sqllab'; | |||
export type ErrorSource = 'dashboard' | 'explore' | 'sqllab' | 'crud'; |
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.
crud
doesn't seem like a domain source like others here. Is there a better name for 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.
Yeah, I couldn't think of a better name. The CRUD is one of the main domains, just not a fancy one. :-P
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 one minor comment
Ephemeral environment shutdown and build artifacts deleted. |
SUMMARY
Add better error handling for Marshmallow errors, with a custom exception, error, and React component.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before:
After:
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION