hughhhh opened a new pull request #14256:
URL: https://github.com/apache/superset/pull/14256
### SUMMARY
<!--- Describe the change below, including rationale and design decisions -->
We want to create an interface to allow us to overwrite specific text 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.
```
# superset_text.yaml
ERRORS:
GENERIC_BACKEND_ERROR: "We were unable to connect to your database. Please
visit our documentation at docs.preset.io or reach out to [email protected] for
assistance."
```
<img width="929" alt="Screen Shot 2021-04-20 at 3 23 22 PM"
src="https://user-images.githubusercontent.com/27827808/115471149-8253d380-a205-11eb-8f31-d3244e1ca433.png">
### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
<!--- Skip this if not applicable -->
### TEST PLAN
<!--- What steps should be taken to verify the changes -->
### ADDITIONAL INFORMATION
<!--- Check any relevant boxes with "x" -->
<!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
- [ ] Has associated issue:
- [ ] Changes UI
- [ ] Includes DB Migration (follow approval process in
[SIP-59](https://github.com/apache/superset/issues/13351))
- [ ] Migration is atomic, supports rollback & is backwards-compatible
- [ ] Confirm DB migration upgrade and downgrade tested
- [ ] Runtime estimates and downtime expectations provided
- [ ] Introduces new feature or API
- [ ] Removes existing feature or API
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]