Skip to content

Commit

Permalink
Merge branch 'case-ui-fix' of github.com:angorayc/kibana into case-ui…
Browse files Browse the repository at this point in the history
…-fix
  • Loading branch information
cnasikas committed Mar 2, 2021
2 parents 89be6cf + f4624bc commit a6c372c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { TestProviders } from '../../../common/mock';
import { casesStatus, useGetCasesMockState } from '../../containers/mock';
import * as i18n from './translations';

import { StatusAll, CaseStatuses, CaseType } from '../../../../../case/common/api';
import { CaseStatuses, CaseType } from '../../../../../case/common/api';
import { useKibana } from '../../../common/lib/kibana';
import { getEmptyTagValue } from '../../../common/components/empty_value';
import { useDeleteCases } from '../../containers/use_delete_cases';
Expand All @@ -24,6 +24,7 @@ import { useUpdateCases } from '../../containers/use_bulk_update_case';
import { useGetActionLicense } from '../../containers/use_get_action_license';
import { getCasesColumns } from './columns';
import { AllCases } from '.';
import { StatusAll } from '../status';

jest.mock('../../containers/use_bulk_update_case');
jest.mock('../../containers/use_delete_cases');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ import React from 'react';
import { mount } from 'enzyme';
import { waitFor } from '@testing-library/react';

import { StatusAll, CaseStatuses } from '../../../../../case/common/api';
import { CaseStatuses } from '../../../../../case/common/api';
import { StatusFilter } from './status_filter';
import { StatusAll } from '../status';

const stats = {
[StatusAll]: 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import { KibanaServices } from '../../common/lib/kibana';

import { ConnectorTypes, CommentType, CaseStatuses, StatusAll } from '../../../../case/common/api';
import { ConnectorTypes, CommentType, CaseStatuses } from '../../../../case/common/api';
import { CASES_URL } from '../../../../case/common/constants';

import {
Expand Down Expand Up @@ -47,6 +47,7 @@ import {
} from './mock';

import { DEFAULT_FILTER_OPTIONS, DEFAULT_QUERY_PARAMS } from './use_get_cases';
import { StatusAll } from '../components/status';

const abortCtrl = new AbortController();
const mockKibanaServices = KibanaServices.get as jest.Mock;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import { assign, omit } from 'lodash';

import {
StatusAll,
CasePatchRequest,
CasePostRequest,
CaseResponse,
Expand Down Expand Up @@ -45,6 +44,7 @@ import {
} from '../../../../case/common/api/helpers';

import { KibanaServices } from '../../common/lib/kibana';
import { StatusAll } from '../components/status';

import {
ActionLicense,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
*/

import { useCallback, useEffect, useReducer, useRef } from 'react';
import { StatusAll } from '../../../../case/common/api';
import { DEFAULT_TABLE_ACTIVE_PAGE, DEFAULT_TABLE_LIMIT } from './constants';
import { AllCases, SortFieldCase, FilterOptions, QueryParams, Case, UpdateByKey } from './types';
import { errorToToaster, useStateToaster } from '../../common/components/toasters';
import * as i18n from './translations';
import { getCases, patchCase } from './api';
import { StatusAll } from '../components/status';

export interface UseGetCasesState {
data: AllCases;
Expand Down

0 comments on commit a6c372c

Please sign in to comment.