[8.5] [Enterprise Search] Add ml doc links (#141921) (#142587)

* [Enterprise Search] Add ml doc links (#141921)

* Add documentation links for ml inference card and modal

* Fix link

(cherry picked from commit b66d12a40c)

* Fix link type for 8.5

Co-authored-by: Efe Gürkan YALAMAN <efeguerkan.yalaman@elastic.co>
This commit is contained in:
Kibana Machine 2022-10-04 08:19:39 -06:00 committed by GitHub
parent d8fc49ae3a
commit 88c8949749
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 12 additions and 8 deletions

View file

@ -129,6 +129,7 @@ export const getDocLinks = ({ kibanaBranch }: GetDocLinkOptions): DocLinks => {
crawlerGettingStarted: `${ENTERPRISE_SEARCH_DOCS}crawler-getting-started.html`,
crawlerManaging: `${ENTERPRISE_SEARCH_DOCS}crawler-managing.html`,
crawlerOverview: `${ENTERPRISE_SEARCH_DOCS}crawler.html`,
deployTrainedModels: `${ELASTIC_WEBSITE_URL}guide/en/machine-learning/${DOC_LINK_VERSION}/ml-nlp-deploy-models.html`,
documentLevelSecurity: `${ELASTICSEARCH_DOCS}document-level-security.html`,
ingestPipelines: `${ENTERPRISE_SEARCH_DOCS}ingest-pipelines.html`,
languageAnalyzers: `${ELASTICSEARCH_DOCS}analysis-lang-analyzer.html`,

View file

@ -115,6 +115,7 @@ export interface DocLinks {
readonly crawlerGettingStarted: string;
readonly crawlerManaging: string;
readonly crawlerOverview: string;
readonly deployTrainedModels: string;
readonly documentLevelSecurity: string;
readonly ingestPipelines: string;
readonly languageAnalyzers: string;

View file

@ -23,6 +23,8 @@ import {
import { i18n } from '@kbn/i18n';
import { docLinks } from '../../../../../shared/doc_links';
import { MLInferenceLogic } from './ml_inference_logic';
export const ConfigurePipeline: React.FC = () => {
@ -49,11 +51,7 @@ export const ConfigurePipeline: React.FC = () => {
}
)}
</p>
<EuiLink
// TODO replace with docs link
href="https://www.elastic.co/guide/en/machine-learning/current/ml-nlp-deploy-models.html"
target="_blank"
>
<EuiLink href={docLinks.deployTrainedModels} target="_blank">
{i18n.translate(
'xpack.enterpriseSearch.content.indices.pipelines.addInferencePipelineModal.steps.configure.docsLink',
{

View file

@ -14,6 +14,8 @@ import { i18n } from '@kbn/i18n';
import noMlModelsGraphicDark from '../../../../../../assets/images/no_ml_models_dark.svg';
import noMlModelsGraphicLight from '../../../../../../assets/images/no_ml_models_light.svg';
import { docLinks } from '../../../../../shared/doc_links';
export const NoModelsPanel: React.FC = () => {
const { colorMode } = useEuiTheme();
@ -43,8 +45,7 @@ export const NoModelsPanel: React.FC = () => {
</>
}
footer={
// TODO: insert correct docsLink here
<EuiLink href="#" target="_blank">
<EuiLink href={docLinks.deployTrainedModels} target="_blank">
{i18n.translate(
'xpack.enterpriseSearch.appSearch.crawler.crawlRequestsTable.emptyPrompt.docsLink',
{

View file

@ -87,7 +87,7 @@ export const SearchIndexPipelines: React.FC = () => {
<DataPanel
hasBorder
footerDocLink={
<EuiLink href="" external color="subdued">
<EuiLink href={docLinks.deployTrainedModels} target="_blank" color="subdued">
{i18n.translate(
'xpack.enterpriseSearch.content.indices.pipelines.mlInferencePipelines.docLink',
{

View file

@ -65,6 +65,7 @@ class DocLinks {
public crawlerGettingStarted: string;
public crawlerManaging: string;
public crawlerOverview: string;
public deployTrainedModels: string;
public documentLevelSecurity: string;
public elasticsearchCreateIndex: string;
public elasticsearchGettingStarted: string;
@ -178,6 +179,7 @@ class DocLinks {
this.crawlerGettingStarted = '';
this.crawlerManaging = '';
this.crawlerOverview = '';
this.deployTrainedModels = '';
this.documentLevelSecurity = '';
this.elasticsearchCreateIndex = '';
this.elasticsearchGettingStarted = '';
@ -293,6 +295,7 @@ class DocLinks {
this.crawlerGettingStarted = docLinks.links.enterpriseSearch.crawlerGettingStarted;
this.crawlerManaging = docLinks.links.enterpriseSearch.crawlerManaging;
this.crawlerOverview = docLinks.links.enterpriseSearch.crawlerOverview;
this.deployTrainedModels = docLinks.links.enterpriseSearch.deployTrainedModels;
this.documentLevelSecurity = docLinks.links.enterpriseSearch.documentLevelSecurity;
this.elasticsearchCreateIndex = docLinks.links.elasticsearch.createIndex;
this.elasticsearchGettingStarted = docLinks.links.elasticsearch.gettingStarted;