forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Index Management] If an index template has a default_pipeline, show …
…a link to it (elastic#206923)
- Loading branch information
1 parent
eb588dd
commit 75840e4
Showing
6 changed files
with
131 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
.../plugins/shared/index_management/public/application/constants/ingest_pipelines_locator.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
export const INGEST_PIPELINES_LOCATOR_ID = 'INGEST_PIPELINES_APP_LOCATOR'; | ||
export const INGEST_PIPELINES_EDIT = 'pipeline_edit'; | ||
export const INGEST_PIPELINES_LIST = 'pipelines_list'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...lugins/shared/index_management/public/application/services/use_ingest_pipeline_locator.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import { useLocatorUrl } from '@kbn/share-plugin/public'; | ||
import { useAppContext } from '../app_context'; | ||
import { | ||
INGEST_PIPELINES_LOCATOR_ID, | ||
INGEST_PIPELINES_EDIT, | ||
INGEST_PIPELINES_LIST, | ||
} from '../constants'; | ||
|
||
export const useIngestPipelinesLocator = ( | ||
page: typeof INGEST_PIPELINES_EDIT | typeof INGEST_PIPELINES_LIST, | ||
pipelineId?: string | ||
): string => { | ||
const ctx = useAppContext(); | ||
const locator = | ||
pipelineId === undefined ? null : ctx.url.locators.get(INGEST_PIPELINES_LOCATOR_ID)!; | ||
const url = useLocatorUrl(locator, { page, pipelineId }, {}, [page, pipelineId]); | ||
|
||
return url; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters