Skip to content

Commit

Permalink
Remove event tables from dashboards (#7086)
Browse files Browse the repository at this point in the history
* Remove data grid from Threat hunting dashboard

* Remove data grid from GitHub and Office365 drill down views

* Add changelog
  • Loading branch information
asteriscos authored Oct 11, 2024
1 parent 324b6f5 commit c3559de
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 600 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ All notable changes to the Wazuh app project will be documented in this file.

- Removed the PDF report footer year [#7023](https:/wazuh/wazuh-dashboard-plugins/pull/7023)
- Removed the XML autoformat function group configuration due to performance [#6999](https:/wazuh/wazuh-dashboard-plugins/pull/6999)
- Removed data grid tables from Threat hunting dashboard, GitHub panel and Office365 panel [#7086](https:/wazuh/wazuh-dashboard-plugins/pull/7086)

## Wazuh v4.9.0 - OpenSearch Dashboards 2.13.0 - Revision 07

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

import React from 'react';
import { ViewMode } from '../../../../../../../../src/plugins/embeddable/public';
import { getPlugins, getCore } from '../../../../../kibana-services';
import { getPlugins } from '../../../../../kibana-services';
import { DashboardPanelState } from '../../../../../../../../src/plugins/dashboard/public/application';
import { EmbeddableInput } from '../../../../../../../../src/plugins/embeddable/public';
import {
Expand All @@ -23,7 +23,6 @@ import {
getVisStateTopRepositories,
} from './visualizations';
import { ModuleConfigProps } from './module-config';
import DrillDownDataGrid from './drilldown-data-grid';

const DashboardByRenderer =
getPlugins().dashboard.DashboardContainerByValueRenderer;
Expand Down Expand Up @@ -148,38 +147,6 @@ export const DrilldownConfigAction = (drilldownProps: ModuleConfigProps) => {
},
],
},
{
columns: [
{
width: 100,
component: () => {
const defaultTableColumns = [
{
id: 'timestamp',
isSortable: true,
defaultSortDirection: 'desc',
},
{ id: 'rule.description' },
{ id: 'data.github.org', displayAsText: 'Organization' },
{ id: 'data.github.repo', displayAsText: 'Repository' },
{ id: 'data.github.actor', displayAsText: 'Actor' },
{ id: 'rule.level' },
{ id: 'rule.id' },
];

return (
<DrillDownDataGrid
defaultTableColumns={defaultTableColumns}
fetchData={fetchData}
fetchFilters={fetchFilters}
searchBarProps={searchBarProps}
indexPattern={indexPattern}
/>
);
},
},
],
},
],
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,9 @@
* Find more information about this on the LICENSE file.
*/

import React, { useState, useMemo, useEffect } from 'react';
import {
EuiFlexItem,
EuiPanel,
EuiToolTip,
EuiButtonIcon,
EuiDataGridCellValueElementProps,
EuiDataGrid,
EuiLink,
} from '@elastic/eui';
import React from 'react';
import { ViewMode } from '../../../../../../../../src/plugins/embeddable/public';
import { getPlugins, getCore } from '../../../../../kibana-services';
import { getPlugins } from '../../../../../kibana-services';
import { DashboardPanelState } from '../../../../../../../../src/plugins/dashboard/public/application';
import { EmbeddableInput } from '../../../../../../../../src/plugins/embeddable/public';
import {
Expand All @@ -32,14 +23,6 @@ import {
getVisStateTopRepositories,
} from './visualizations';
import { ModuleConfigProps } from './module-config';
import {
ErrorFactory,
HttpError,
ErrorHandler,
} from '../../../../../react-services/error-management';
import DrillDownDataGrid from './drilldown-data-grid';
import { rules } from '../../../../../utils/applications';
import { RedirectAppLinks } from '../../../../../../../../src/plugins/opensearch_dashboards_react/public';

const DashboardByRenderer =
getPlugins().dashboard.DashboardContainerByValueRenderer;
Expand Down Expand Up @@ -164,38 +147,6 @@ export const DrilldownConfigActor = (drilldownProps: ModuleConfigProps) => {
},
],
},
{
columns: [
{
width: 100,
component: () => {
const defaultTableColumns = [
{
id: 'timestamp',
isSortable: true,
defaultSortDirection: 'desc',
},
{ id: 'rule.description' },
{ id: 'data.github.org', displayAsText: 'Organization' },
{ id: 'data.github.repo', displayAsText: 'Repository' },
{ id: 'data.github.action', displayAsText: 'Action' },
{ id: 'rule.level' },
{ id: 'rule.id' },
];

return (
<DrillDownDataGrid
defaultTableColumns={defaultTableColumns}
fetchData={fetchData}
fetchFilters={fetchFilters}
searchBarProps={searchBarProps}
indexPattern={indexPattern}
/>
);
},
},
],
},
],
};
};

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,9 @@
* Find more information about this on the LICENSE file.
*/

import React, { useState, useMemo, useEffect } from 'react';
import {
EuiFlexItem,
EuiPanel,
EuiToolTip,
EuiButtonIcon,
EuiDataGridCellValueElementProps,
EuiDataGrid,
EuiLink,
} from '@elastic/eui';
import { SecurityAlerts } from '../../../../visualize/components';
import React from 'react';
import { ViewMode } from '../../../../../../../../src/plugins/embeddable/public';
import { getPlugins, getCore } from '../../../../../kibana-services';
import { getPlugins } from '../../../../../kibana-services';
import { DashboardPanelState } from '../../../../../../../../src/plugins/dashboard/public/application';
import { EmbeddableInput } from '../../../../../../../../src/plugins/embeddable/public';
import {
Expand All @@ -33,14 +23,6 @@ import {
getVisStateTopActions,
} from './visualizations';
import { ModuleConfigProps } from './module-config';
import {
ErrorFactory,
HttpError,
ErrorHandler,
} from '../../../../../react-services/error-management';
import DrillDownDataGrid from './drilldown-data-grid';
import { rules } from '../../../../../utils/applications';
import { RedirectAppLinks } from '../../../../../../../../src/plugins/opensearch_dashboards_react/public';

const DashboardByRenderer =
getPlugins().dashboard.DashboardContainerByValueRenderer;
Expand Down Expand Up @@ -167,38 +149,6 @@ export const DrilldownConfigOrganization = (
},
],
},
{
columns: [
{
width: 100,
component: () => {
const defaultTableColumns = [
{
id: 'timestamp',
isSortable: true,
defaultSortDirection: 'desc',
},
{ id: 'rule.description' },
{ id: 'data.github.repo', displayAsText: 'Repository' },
{ id: 'data.github.actor', displayAsText: 'Actor' },
{ id: 'data.github.action', displayAsText: 'Action' },
{ id: 'rule.level' },
{ id: 'rule.id' },
];

return (
<DrillDownDataGrid
defaultTableColumns={defaultTableColumns}
fetchData={fetchData}
fetchFilters={fetchFilters}
searchBarProps={searchBarProps}
indexPattern={indexPattern}
/>
);
},
},
],
},
],
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@
*/

import React from 'react';
import { EuiLink } from '@elastic/eui';
import { ViewMode } from '../../../../../../../../src/plugins/embeddable/public';
import { getPlugins, getCore } from '../../../../../kibana-services';
import { getPlugins } from '../../../../../kibana-services';
import { DashboardPanelState } from '../../../../../../../../src/plugins/dashboard/public/application';
import { EmbeddableInput } from '../../../../../../../../src/plugins/embeddable/public';
import {
Expand All @@ -24,13 +23,6 @@ import {
getVisStateTopOrganizations,
} from './visualizations';
import { ModuleConfigProps } from './module-config';
import {
ErrorFactory,
HttpError,
ErrorHandler,
} from '../../../../../react-services/error-management';
import DrillDownDataGrid from './drilldown-data-grid';
import { rules } from '../../../../../utils/applications';

const DashboardByRenderer =
getPlugins().dashboard.DashboardContainerByValueRenderer;
Expand Down Expand Up @@ -157,47 +149,6 @@ export const DrilldownConfigRepository = (
},
],
},
{
columns: [
{
width: 100,
component: () => {
const defaultTableColumns = [
{
id: 'timestamp',
isSortable: true,
defaultSortDirection: 'desc',
},
{ id: 'rule.description' },
{ id: 'data.github.org', displayAsText: 'Organization' },
{ id: 'data.github.actor', displayAsText: 'Actor' },
{ id: 'data.github.action', displayAsText: 'Action' },
{ id: 'rule.level' },
{
id: 'rule.id',
render: value => (
<EuiLink
href={`${rules.id}#/manager/?tab=rules&redirectRule=${value}`}
>
{value}
</EuiLink>
),
},
];

return (
<DrillDownDataGrid
defaultTableColumns={defaultTableColumns}
fetchData={fetchData}
fetchFilters={fetchFilters}
searchBarProps={searchBarProps}
indexPattern={indexPattern}
/>
);
},
},
],
},
],
};
};
Loading

0 comments on commit c3559de

Please sign in to comment.