From 0870d3ae2bdf4d0944dadc2d2262f68cf473f167 Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Wed, 16 Sep 2020 09:28:53 -0700 Subject: [PATCH] docs: add back issue code links (#10903) * docs: add back issue code links closes: https://github.com/apache/incubator-superset/issues/10852 * Addressing comments --- .../pages/docs/Miscellaneous/issue_codes.mdx | 45 +++++++++++++++++++ .../src/addSlice/AddSliceContainer.tsx | 2 +- .../src/components/ErrorMessage/IssueCode.tsx | 2 +- 3 files changed, 47 insertions(+), 2 deletions(-) create mode 100644 docs/src/pages/docs/Miscellaneous/issue_codes.mdx diff --git a/docs/src/pages/docs/Miscellaneous/issue_codes.mdx b/docs/src/pages/docs/Miscellaneous/issue_codes.mdx new file mode 100644 index 000000000..cf06ba93f --- /dev/null +++ b/docs/src/pages/docs/Miscellaneous/issue_codes.mdx @@ -0,0 +1,45 @@ +--- +name: Issue Codes +menu: Miscellaneous +route: /docs/miscellaneous/issue-codes +index: 3 +version: 1 +--- + +# Issue Code Reference + +This page lists issue codes that may be displayed in +Superset and provides additional context. + +## Issue 1000 + +``` +The datasource is too large to query. +``` + +It's likely your datasource has grown too large to run the current +query, and is timing out. You can resolve this by reducing the +size of your datasource or by modifying your query to only process a +subset of your data. + +## Issue 1001 + +``` +The database is under an unusual load. +``` + +Your query may have timed out because of unusually high load on the +database engine. You can make your query simpler, or wait until the +database is under less load and try again. + +## Issue 1002 + +``` +The database returned an unexpected error. +``` + +Your query failed because of an error that occurred on the database. +This may be due to a syntax error, a bug in your query, or some other +internal failure within the database. This is usually not an +issue within Superset, but instead a problem with the underlying +database that serves your query. diff --git a/superset-frontend/src/addSlice/AddSliceContainer.tsx b/superset-frontend/src/addSlice/AddSliceContainer.tsx index f42b9778e..5f661ea12 100644 --- a/superset-frontend/src/addSlice/AddSliceContainer.tsx +++ b/superset-frontend/src/addSlice/AddSliceContainer.tsx @@ -122,7 +122,7 @@ export default class AddSliceContainer extends React.PureComponent< 'If the datasource you are looking for is not available in the list, follow the instructions on how to add it in the Superset tutorial.', )}{' '} diff --git a/superset-frontend/src/components/ErrorMessage/IssueCode.tsx b/superset-frontend/src/components/ErrorMessage/IssueCode.tsx index 37543415f..df0206fe5 100644 --- a/superset-frontend/src/components/ErrorMessage/IssueCode.tsx +++ b/superset-frontend/src/components/ErrorMessage/IssueCode.tsx @@ -28,7 +28,7 @@ export default function IssueCode({ code, message }: IssueCodeProps) { <> {message}{' '}