Skip to content

Commit

Permalink
fix imports (elastic#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
orouz committed Jan 13, 2022
1 parent 366ba0d commit 82d6afb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { dataPluginMock } from '../../../../../../src/plugins/data/public/mocks'
import { coreMock } from '../../../../../../src/core/public/mocks';
import { createStubDataView } from '../../../../../../src/plugins/data_views/public/data_views/data_view.stub';
import * as utils from './utils';
import { CSP_KUBEBEAT_INDEX_NAME } from '../../../common/translations';
import { CSP_KUBEBEAT_INDEX_NAME } from '../../../common/constants';
import * as TEST_SUBJECTS from './test_subjects';
import type { UseQueryResult } from 'react-query';
import type { DataView } from '../../../../../../src/plugins/data/common';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import type {
IKibanaSearchResponse,
TimeRange,
} from '../../../../../../src/plugins/data/common';
import { SEARCH_FAILED } from './translations';

type FindingsEsSearchMutation = UseMutationResult<
IKibanaSearchResponse<SearchResponse<CspFinding>>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ import {
} from '@elastic/eui';
import { orderBy } from 'lodash';
import * as TEST_SUBJECTS from './test_subjects';
import type { CspFinding, FindingsFetchState } from './types';
import * as TEXT from './translations';
import { CSPEvaluationBadge } from '../../components/csp_evaluation_badge';
import type { CspFinding, FindingsFetchState } from './types';

interface BaseFindingsTableProps {
selectItem(v: CspFinding | undefined): void;
Expand Down Expand Up @@ -101,30 +102,30 @@ const resultEvaluationRenderer = (type: PropsOf<typeof CSPEvaluationBadge>['type
const columns: Array<EuiTableFieldDataColumnType<CspFinding>> = [
{
field: 'resource.filename',
name: TX.RESOURCE,
name: TEXT.RESOURCE,
truncateText: true,
},
{
field: 'rule.name',
name: TX.RULE_NAME,
name: TEXT.RULE_NAME,
width: '50%',
truncateText: true,
render: ruleNameRenderer,
},
{
field: 'result.evaluation',
name: TX.EVALUATION,
name: TEXT.EVALUATION,
width: '80px',
render: resultEvaluationRenderer,
},
{
field: 'rule.tags',
name: TX.TAGS,
name: TEXT.TAGS,
render: ruleTagsRenderer,
},
{
field: '@timestamp',
name: TX.TIMESTAMP,
name: TEXT.TIMESTAMP,
truncateText: true,
},
];
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import type {
TimeRange,
} from '../../../../../../src/plugins/data/common';
import type { CspPluginSetup } from '../../types';
import { CSP_KUBEBEAT_INDEX_NAME } from '../../../common/translations';
import { CSP_KUBEBEAT_INDEX_NAME } from '../../../common/constants';
import { useKibana } from '../../../../../../src/plugins/kibana_react/public';

export const extractErrorMessage = (e: unknown): string =>
Expand Down

0 comments on commit 82d6afb

Please sign in to comment.