mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[Security Solutions] Remove hover actions from Authentication Successes and Failures column (#133305)
* Remove hover actions from Authentication Successes and Failures column * Update snapshots
This commit is contained in:
parent
7f2fcee1da
commit
e2336ff312
3 changed files with 6 additions and 74 deletions
|
@ -206,7 +206,7 @@ exports[`Authentication Host Table Component rendering it renders the host authe
|
|||
</th>
|
||||
<th
|
||||
class="euiTableHeaderCell"
|
||||
data-test-subj="tableHeaderCell_Successes_1"
|
||||
data-test-subj="tableHeaderCell_node.successes_1"
|
||||
role="columnheader"
|
||||
scope="col"
|
||||
style="width: 8%;"
|
||||
|
@ -224,7 +224,7 @@ exports[`Authentication Host Table Component rendering it renders the host authe
|
|||
</th>
|
||||
<th
|
||||
class="euiTableHeaderCell"
|
||||
data-test-subj="tableHeaderCell_Failures_2"
|
||||
data-test-subj="tableHeaderCell_node.failures_2"
|
||||
role="columnheader"
|
||||
scope="col"
|
||||
style="width: 8%;"
|
||||
|
|
|
@ -206,7 +206,7 @@ exports[`Authentication User Table Component rendering it renders the user authe
|
|||
</th>
|
||||
<th
|
||||
class="euiTableHeaderCell"
|
||||
data-test-subj="tableHeaderCell_Successes_1"
|
||||
data-test-subj="tableHeaderCell_node.successes_1"
|
||||
role="columnheader"
|
||||
scope="col"
|
||||
style="width: 8%;"
|
||||
|
@ -224,7 +224,7 @@ exports[`Authentication User Table Component rendering it renders the user authe
|
|||
</th>
|
||||
<th
|
||||
class="euiTableHeaderCell"
|
||||
data-test-subj="tableHeaderCell_Failures_2"
|
||||
data-test-subj="tableHeaderCell_node.failures_2"
|
||||
role="columnheader"
|
||||
scope="col"
|
||||
style="width: 8%;"
|
||||
|
|
|
@ -8,13 +8,9 @@
|
|||
import { has } from 'lodash/fp';
|
||||
import React from 'react';
|
||||
|
||||
import { DragEffects, DraggableWrapper } from '../drag_and_drop/draggable_wrapper';
|
||||
import { escapeDataProviderId } from '../drag_and_drop/helpers';
|
||||
import { getEmptyTagValue } from '../empty_value';
|
||||
import { FormattedRelativePreferenceDate } from '../formatted_date';
|
||||
import { Columns, ItemsPerRow } from '../paginated_table';
|
||||
import { IS_OPERATOR } from '../../../timelines/components/timeline/data_providers/data_provider';
|
||||
import { Provider } from '../../../timelines/components/timeline/data_providers/provider';
|
||||
import { getRowItemDraggables } from '../tables/helpers';
|
||||
|
||||
import * as i18n from './translations';
|
||||
|
@ -77,40 +73,9 @@ export const rowItems: ItemsPerRow[] = [
|
|||
|
||||
const FAILURES_COLUMN: Columns<AuthenticationsEdges, AuthenticationsEdges> = {
|
||||
name: i18n.FAILURES,
|
||||
field: 'node.failures',
|
||||
truncateText: false,
|
||||
mobileOptions: { show: true },
|
||||
render: ({ node }) => {
|
||||
const id = escapeDataProviderId(`authentications-table-${node._id}-failures-${node.failures}`);
|
||||
return (
|
||||
<DraggableWrapper
|
||||
key={id}
|
||||
dataProvider={{
|
||||
and: [],
|
||||
enabled: true,
|
||||
id,
|
||||
name: 'authentication_failure',
|
||||
excluded: false,
|
||||
kqlQuery: '',
|
||||
queryMatch: {
|
||||
field: 'event.type',
|
||||
value: 'authentication_failure',
|
||||
operator: IS_OPERATOR,
|
||||
},
|
||||
}}
|
||||
isAggregatable={true}
|
||||
fieldType={'keyword'}
|
||||
render={(dataProvider, _, snapshot) =>
|
||||
snapshot.isDragging ? (
|
||||
<DragEffects>
|
||||
<Provider dataProvider={dataProvider} />
|
||||
</DragEffects>
|
||||
) : (
|
||||
node.failures
|
||||
)
|
||||
}
|
||||
/>
|
||||
);
|
||||
},
|
||||
width: '8%',
|
||||
};
|
||||
const LAST_SUCCESSFUL_TIME_COLUMN: Columns<AuthenticationsEdges, AuthenticationsEdges> = {
|
||||
|
@ -226,42 +191,9 @@ const HOST_COLUMN: Columns<AuthenticationsEdges, AuthenticationsEdges> = {
|
|||
|
||||
const SUCCESS_COLUMN: Columns<AuthenticationsEdges, AuthenticationsEdges> = {
|
||||
name: i18n.SUCCESSES,
|
||||
field: 'node.successes',
|
||||
truncateText: false,
|
||||
mobileOptions: { show: true },
|
||||
render: ({ node }) => {
|
||||
const id = escapeDataProviderId(
|
||||
`authentications-table-${node._id}-node-successes-${node.successes}`
|
||||
);
|
||||
return (
|
||||
<DraggableWrapper
|
||||
key={id}
|
||||
dataProvider={{
|
||||
and: [],
|
||||
enabled: true,
|
||||
id,
|
||||
name: 'authentication_success',
|
||||
excluded: false,
|
||||
kqlQuery: '',
|
||||
queryMatch: {
|
||||
field: 'event.type',
|
||||
value: 'authentication_success',
|
||||
operator: IS_OPERATOR,
|
||||
},
|
||||
}}
|
||||
isAggregatable={true}
|
||||
fieldType="keyword"
|
||||
render={(dataProvider, _, snapshot) =>
|
||||
snapshot.isDragging ? (
|
||||
<DragEffects>
|
||||
<Provider dataProvider={dataProvider} />
|
||||
</DragEffects>
|
||||
) : (
|
||||
node.successes
|
||||
)
|
||||
}
|
||||
/>
|
||||
);
|
||||
},
|
||||
width: '8%',
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue