From bcef7654da395e12b8c73211ab0b9815d4964cbb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 18 Jan 2023 21:42:33 +0000 Subject: [PATCH] [Docs] Fix documentation link for date math (#3207) - Add new documentation link - move from `noDocumentation` to `opensearch` fixes #2849 Signed-off-by: Josh Romero (cherry picked from commit 11b98ec05483269917c335fcb1900bf98da8cac6) Signed-off-by: github-actions[bot] --- src/core/public/doc_links/doc_links_service.ts | 6 ++++-- .../public/components/controls/date_ranges.tsx | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/core/public/doc_links/doc_links_service.ts b/src/core/public/doc_links/doc_links_service.ts index 7ef85a3f1de1..109e3d9c1773 100644 --- a/src/core/public/doc_links/doc_links_service.ts +++ b/src/core/public/doc_links/doc_links_service.ts @@ -338,6 +338,8 @@ export class DocLinksService { close: `${OPENSEARCH_VERSIONED_DOCS}rest-api/index-apis/close-index/`, }, }, + // https://opensearch.org/docs/latest/opensearch/supported-field-types/date/#date-math + dateMath: `${OPENSEARCH_VERSIONED_DOCS}supported-field-types/date/#date-math`, }, opensearchDashboards: { // https://opensearch.org/docs/latest/dashboards/index/ @@ -386,6 +388,7 @@ export class DocLinksService { // https://opensearch.org/docs/latest/dashboards/dql/#nested-field-query nested_query: `${OPENSEARCH_DASHBOARDS_VERSIONED_DOCS}dql/#nested-field-query`, }, + // https://opensearch.org/docs/latest/dashboards/browser-compatibility browser: `${OPENSEARCH_DASHBOARDS_VERSIONED_DOCS}browser-compatibility`, }, noDocumentation: { @@ -425,7 +428,6 @@ export class DocLinksService { }, addData: `${OPENSEARCH_WEBSITE_DOCS}`, vega: `${OPENSEARCH_DASHBOARDS_VERSIONED_DOCS}`, - dateMath: `${OPENSEARCH_WEBSITE_DOCS}`, savedObject: { manageSavedObject: `https://opensearch.org/docs/latest/guide/en/kibana/current/managing-saved-objects.html#_export`, }, @@ -718,6 +720,7 @@ export interface DocLinksStart { readonly close: string; }; }; + readonly dateMath: string; }; readonly opensearchDashboards: { readonly introduction: string; @@ -777,7 +780,6 @@ export interface DocLinksStart { readonly visualize: Record; readonly addData: string; readonly vega: string; - readonly dateMath: string; readonly savedObject: { readonly manageSavedObject: string; }; diff --git a/src/plugins/vis_default_editor/public/components/controls/date_ranges.tsx b/src/plugins/vis_default_editor/public/components/controls/date_ranges.tsx index c3b244de14f5..1b4508549a71 100644 --- a/src/plugins/vis_default_editor/public/components/controls/date_ranges.tsx +++ b/src/plugins/vis_default_editor/public/components/controls/date_ranges.tsx @@ -139,7 +139,7 @@ function DateRangesParamEditor({ <> - +