From 9de587150b015c9fae50fa53a2ea63730593f7e6 Mon Sep 17 00:00:00 2001 From: Ian Yenien Serrano Date: Tue, 9 Jan 2024 18:16:35 +0100 Subject: [PATCH 1/2] Replace discover --- .../common/modules/modules-defaults.js | 3 ++- .../github-panel/events/github-columns.tsx | 25 +++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 plugins/main/public/components/overview/github-panel/events/github-columns.tsx diff --git a/plugins/main/public/components/common/modules/modules-defaults.js b/plugins/main/public/components/common/modules/modules-defaults.js index abd5ed3dfe..4f69d9b930 100644 --- a/plugins/main/public/components/common/modules/modules-defaults.js +++ b/plugins/main/public/components/common/modules/modules-defaults.js @@ -27,6 +27,7 @@ import { DashboardFim } from '../../overview/fim/dashboard/dashboard'; import { InventoryFim } from '../../overview/fim/inventory/inventory'; import React from 'react'; import { configurationAssessmentColumns } from '../../agents/sca/events/configuration-assessment-columns'; +import { githubColumns } from '../../overview/github-panel/events/github-columns'; const DashboardTab = { id: 'dashboard', @@ -163,7 +164,7 @@ export const ModulesDefaults = { buttons: [ButtonModuleExploreAgent], component: GitHubPanel, }, - EventsTab, + renderDiscoverTab(DEFAULT_INDEX_PATTERN, githubColumns), ], availableFor: ['manager', 'agent'], }, diff --git a/plugins/main/public/components/overview/github-panel/events/github-columns.tsx b/plugins/main/public/components/overview/github-panel/events/github-columns.tsx new file mode 100644 index 0000000000..28e0db7a4f --- /dev/null +++ b/plugins/main/public/components/overview/github-panel/events/github-columns.tsx @@ -0,0 +1,25 @@ +import { tDataGridColumn } from '../../../common/data-grid'; + +export const githubColumns: tDataGridColumn[] = [ + { + id: 'agent.id', + }, + { + id: 'data.github.repo', + }, + { + id: 'data.github.actor', + }, + { + id: 'data.github.org', + }, + { + id: 'rule.description', + }, + { + id: 'rule.level', + }, + { + id: 'rule.id', + }, +]; From b47afd10fb9fb0a7412857d78093078a35f1a646 Mon Sep 17 00:00:00 2001 From: Ian Yenien Serrano Date: Tue, 9 Jan 2024 18:18:57 +0100 Subject: [PATCH 2/2] Add changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 991f1aba46..24217ed25b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,7 @@ All notable changes to the Wazuh app project will be documented in this file. ### Changed -- Removed embedded discover [#6120](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6120) [#6235](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6235) [#6254](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6254) [#6285](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6285) +- Removed embedded discover [#6120](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6120) [#6235](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6235) [#6254](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6254) [#6285](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6285) [#6291](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6291) - Develop logic of a new index for the fim module [#6227](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6227) - Allow editing groups for an agent from Endpoints Summary [#6250](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6250)