This is an automated email from the ASF dual-hosted git repository.
vogievetsky pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git
The following commit(s) were added to refs/heads/master by this push:
new d8e27eaab4 update error anchors (#13527)
d8e27eaab4 is described below
commit d8e27eaab49d4c91dbec5e7e68a8a89bcb02b141
Author: Vadim Ogievetsky <[email protected]>
AuthorDate: Thu Dec 8 13:18:35 2022 -0800
update error anchors (#13527)
---
web-console/src/links.ts | 2 +-
.../__snapshots__/execution-error-pane.spec.tsx.snap | 2 +-
.../workbench-view/execution-error-pane/execution-error-pane.tsx | 4 +++-
3 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/web-console/src/links.ts b/web-console/src/links.ts
index d9bd341d4f..33b58a8acc 100644
--- a/web-console/src/links.ts
+++ b/web-console/src/links.ts
@@ -84,7 +84,7 @@ export function getLink(linkName: LinkNames): string {
case 'DOCS_API':
return `${links.docsHref}/operations/api-reference.html`;
case 'DOCS_MSQ_ERROR':
- return `${links.docsHref}/multi-stage-query/concepts.html#error-codes`;
+ return `${links.docsHref}/multi-stage-query/reference.html`;
case 'COMMUNITY':
return links.communityHref;
case 'SLACK':
diff --git
a/web-console/src/views/workbench-view/execution-error-pane/__snapshots__/execution-error-pane.spec.tsx.snap
b/web-console/src/views/workbench-view/execution-error-pane/__snapshots__/execution-error-pane.spec.tsx.snap
index de73ea9dc9..025c9a2946 100644
---
a/web-console/src/views/workbench-view/execution-error-pane/__snapshots__/execution-error-pane.spec.tsx.snap
+++
b/web-console/src/views/workbench-view/execution-error-pane/__snapshots__/execution-error-pane.spec.tsx.snap
@@ -9,7 +9,7 @@ exports[`ExecutionErrorPane matches snapshot 1`] = `
className="error-message-text"
>
<Memo(ExternalLink)
-
href="https://druid.apache.org/docs/latest/multi-stage-query/concepts.html#error-codes"
+
href="https://druid.apache.org/docs/latest/multi-stage-query/reference.html#error_TooManyWarnings"
>
TooManyWarnings
</Memo(ExternalLink)>
diff --git
a/web-console/src/views/workbench-view/execution-error-pane/execution-error-pane.tsx
b/web-console/src/views/workbench-view/execution-error-pane/execution-error-pane.tsx
index b0368534cc..967cea3b0e 100644
---
a/web-console/src/views/workbench-view/execution-error-pane/execution-error-pane.tsx
+++
b/web-console/src/views/workbench-view/execution-error-pane/execution-error-pane.tsx
@@ -46,7 +46,9 @@ export const ExecutionErrorPane = React.memo(function
ExecutionErrorPane(
<p className="error-message-text">
{error.errorCode && (
<>
- <ExternalLink
href={getLink('DOCS_MSQ_ERROR')}>{error.errorCode}</ExternalLink>
+ <ExternalLink
href={`${getLink('DOCS_MSQ_ERROR')}#error_${error.errorCode}`}>
+ {error.errorCode}
+ </ExternalLink>
{': '}
</>
)}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]