-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] [Inventory][ECO] Use ControlGroupRenderer to filter by entity t…
…ypes (#199174) (#199820) # Backport This will backport the following commits from `main` to `8.x`: - [[Inventory][ECO] Use ControlGroupRenderer to filter by entity types (#199174)](#199174) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Cauê Marcondes","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-12T10:28:02Z","message":"[Inventory][ECO] Use ControlGroupRenderer to filter by entity types (#199174)\n\ncloses https://github.com/elastic/kibana/issues/193397\r\n\r\n\r\nhttps://github.com/user-attachments/assets/e78639a8-bc63-4c5a-8676-0ad9b5f0563e\r\n\r\n- Added `Entity type` control group field on the Inventory page. \r\n- Added `Filters` buttons to the Unified Search bar on the Inventory\r\noage\r\n- Moved common hooks from infra to Obs-shared\r\n- Refactoring\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"4a16e910e95d62fd4cc52f4a870147d691b1a681","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","ci:project-deploy-observability","v8.17.0"],"number":199174,"url":"https://github.com/elastic/kibana/pull/199174","mergeCommit":{"message":"[Inventory][ECO] Use ControlGroupRenderer to filter by entity types (#199174)\n\ncloses https://github.com/elastic/kibana/issues/193397\r\n\r\n\r\nhttps://github.com/user-attachments/assets/e78639a8-bc63-4c5a-8676-0ad9b5f0563e\r\n\r\n- Added `Entity type` control group field on the Inventory page. \r\n- Added `Filters` buttons to the Unified Search bar on the Inventory\r\noage\r\n- Moved common hooks from infra to Obs-shared\r\n- Refactoring\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"4a16e910e95d62fd4cc52f4a870147d691b1a681"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/199174","number":199174,"mergeCommit":{"message":"[Inventory][ECO] Use ControlGroupRenderer to filter by entity types (#199174)\n\ncloses https://github.com/elastic/kibana/issues/193397\r\n\r\n\r\nhttps://github.com/user-attachments/assets/e78639a8-bc63-4c5a-8676-0ad9b5f0563e\r\n\r\n- Added `Entity type` control group field on the Inventory page. \r\n- Added `Filters` buttons to the Unified Search bar on the Inventory\r\noage\r\n- Moved common hooks from infra to Obs-shared\r\n- Refactoring\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"4a16e910e95d62fd4cc52f4a870147d691b1a681"}},{"branch":"8.x","label":"v8.17.0","labelRegex":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
- Loading branch information
1 parent
b2b274f
commit 96d216e
Showing
62 changed files
with
783 additions
and
757 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
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
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
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
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
41 changes: 41 additions & 0 deletions
41
..._solution/infra/public/pages/metrics/hosts/components/search_bar/control_panels_config.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,41 @@ | ||
/* | ||
* 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 { ControlPanels } from '@kbn/observability-shared-plugin/public'; | ||
|
||
export const availableControlsPanels = { | ||
HOST_OS_NAME: 'host.os.name', | ||
CLOUD_PROVIDER: 'cloud.provider', | ||
SERVICE_NAME: 'service.name', | ||
}; | ||
|
||
export const controlPanelConfigs: ControlPanels = { | ||
[availableControlsPanels.HOST_OS_NAME]: { | ||
order: 0, | ||
width: 'medium', | ||
grow: false, | ||
type: 'optionsListControl', | ||
fieldName: availableControlsPanels.HOST_OS_NAME, | ||
title: 'Operating System', | ||
}, | ||
[availableControlsPanels.CLOUD_PROVIDER]: { | ||
order: 1, | ||
width: 'medium', | ||
grow: false, | ||
type: 'optionsListControl', | ||
fieldName: availableControlsPanels.CLOUD_PROVIDER, | ||
title: 'Cloud Provider', | ||
}, | ||
[availableControlsPanels.SERVICE_NAME]: { | ||
order: 2, | ||
width: 'medium', | ||
grow: false, | ||
type: 'optionsListControl', | ||
fieldName: availableControlsPanels.SERVICE_NAME, | ||
title: 'Service Name', | ||
}, | ||
}; |
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
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
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
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
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
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
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
57 changes: 0 additions & 57 deletions
57
x-pack/plugins/observability_solution/inventory/common/entitites.test.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.