Skip to content

Commit

Permalink
update troubleshooting link
Browse files Browse the repository at this point in the history
  • Loading branch information
joeypoon committed Nov 5, 2021
1 parent 9e01a8b commit 23a04d2
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,5 +261,8 @@ readonly links: {
readonly rubyOverview: string;
readonly rustGuide: string;
};
readonly endpoints: {
readonly troubleshooting: string;
};
};
```

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions src/core/public/doc_links/doc_links_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,9 @@ export class DocLinksService {
rubyOverview: `${ELASTIC_WEBSITE_URL}guide/en/elasticsearch/client/ruby-api/${DOC_LINK_VERSION}/ruby_client.html`,
rustGuide: `${ELASTIC_WEBSITE_URL}guide/en/elasticsearch/client/rust-api/${DOC_LINK_VERSION}/index.html`,
},
endpoints: {
troubleshooting: `${ELASTIC_WEBSITE_URL}guide/en/security/${DOC_LINK_VERSION}/ts-management.html#ts-endpoints`,
},
},
});
}
Expand Down Expand Up @@ -770,5 +773,8 @@ export interface DocLinksStart {
readonly rubyOverview: string;
readonly rustGuide: string;
};
readonly endpoints: {
readonly troubleshooting: string;
};
};
}
3 changes: 3 additions & 0 deletions src/core/public/public.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,9 @@ export interface DocLinksStart {
readonly rubyOverview: string;
readonly rustGuide: string;
};
readonly endpoints: {
readonly troubleshooting: string;
};
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ export const EndpointList = () => {
docsPage: (
<EuiLink
data-test-subj="failed-transform-docs-link"
href={services?.docLinks?.links.transforms.guide}
href={services?.docLinks?.links.endpoints.troubleshooting}
target="_blank"
>
<FormattedMessage
Expand All @@ -576,7 +576,7 @@ export const EndpointList = () => {
<EuiSpacer size="s" />
</>
);
}, [metadataTransformStats, services?.docLinks?.links.transforms.guide]);
}, [metadataTransformStats, services?.docLinks?.links.endpoints.troubleshooting]);

const transformFailedCallout = useMemo(() => {
if (!showTransformFailedCallout) {
Expand Down

0 comments on commit 23a04d2

Please sign in to comment.