-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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: Setup supersetText
configuration to overwrite errors
#14256
Conversation
8f5eacd
to
5e19aa7
Compare
supersetText
configuration to overwrite errorssupersetText
configuration to overwrite errors
@@ -18,14 +18,14 @@ | |||
*/ | |||
import React, { FunctionComponent, useState, useEffect } from 'react'; | |||
import { styled, t } from '@superset-ui/core'; | |||
import InfoTooltip from 'src/common/components/InfoTooltip'; | |||
import InfoTooltip from 'src/components/InfoTooltip'; |
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.
you should be able to rebase and get these changes in.
superset/config.py
Outdated
# to AES-128 under the covers using the app's SECRET_KEY as key material. | ||
# | ||
# pylint: disable=C0103 | ||
SQLALCHEMY_ENCRYPTED_FIELD_TYPE_ADAPTER = SQLAlchemyUtilsAdapter |
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.
how is this used?
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.
need to rebase
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
import supersetText from '../../../superset_text.yaml'; |
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.
I'm going to see about importing this in a different way in case the file doesn't exist so that there's no error.
Codecov Report
@@ Coverage Diff @@
## master #14256 +/- ##
==========================================
+ Coverage 76.93% 77.07% +0.14%
==========================================
Files 954 957 +3
Lines 48070 48457 +387
Branches 5973 6141 +168
==========================================
+ Hits 36982 37349 +367
- Misses 10886 10910 +24
+ Partials 202 198 -4
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
…/overwrite-generic-errors
supersetText
configuration to overwrite errorssupersetText
configuration to overwrite errors
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.. I added support for translations in #14237
…14256) * Setup error message overwrite config` * fix * bad reabse * bad rebase 2 * remove unneeded comment * working dynamic importing * saveeee * working textUtil file * add ignore tslint * fix linting * fix linting * import order * setup guard statements * linting again * linting again Co-authored-by: Elizabeth Thompson <[email protected]>
SUMMARY
We want to create an interface to allow us to overwrite specific error messages in superset. So we've create a config that allow you to overwrite specific error message coming back from the API.
This is built on top of SIP-40 + SIP-41
By adding a superset_text.yaml with the following structure you'll be able to overwrite and error.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TEST PLAN
ADDITIONAL INFORMATION