Skip to content

Commit

Permalink
feat: update deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
nlatipov committed Apr 22, 2022
1 parent c0e115a commit 6f35ee3
Show file tree
Hide file tree
Showing 14 changed files with 20 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import { i18n } from '@kbn/i18n';
import { ThemeServiceSetup } from '@kbn/core/public';
import { toMountPoint } from '@kbn/kibana-react-plugin/public';
import { Action, createAction, IncompatibleActionError } from '@kbn/ui-actions-plugin/public';
import { Filter, FilterManager, TimefilterContract, esFilters } from '@kbn/data-plugin/public';
import { FilterManager, TimefilterContract, esFilters } from '@kbn/data-plugin/public';
import { Filter } from '@kbn/es-query';
import { getOverlays, getDataViews } from '../services';
import { applyFiltersPopover } from '../apply_filters';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
import { FormattedMessage } from '@kbn/i18n-react';
import React, { Component } from 'react';
import { getDisplayValueFromFilter, mapAndFlattenFilters } from '@kbn/data-plugin/public';
import { Filter } from '@kbn/data-plugin/common';
import { Filter } from '@kbn/es-query';
import { DataView } from '@kbn/data-views-plugin/public';
import { FilterLabel } from '../filter_bar';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import React from 'react';

import { EuiDelayRender, EuiLoadingSpinner } from '@elastic/eui';
import { Filter } from '@kbn/data-plugin/common';
import { Filter } from '@kbn/es-query';
import { DataView } from '@kbn/data-views-plugin/common';

type CancelFnType = () => void;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
*/

import { coreMock } from '@kbn/core/public/mocks';
import { KueryNode } from '@kbn/data-plugin/public';
import { KueryNode } from '@kbn/es-query';

import { setupGetConjunctionSuggestions } from './conjunction';
import { QuerySuggestionGetFnArgs } from '../query_suggestion_provider';

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

import dataViewResponse from './__fixtures__/data_view_response.json';

import { indexPatterns as dataViewsUtils, KueryNode } from '@kbn/data-plugin/public';
import { indexPatterns as dataViewsUtils } from '@kbn/data-plugin/public';
import { KueryNode } from '@kbn/es-query';
import { setupGetFieldSuggestions } from './field';
import { QuerySuggestionGetFnArgs } from '../query_suggestion_provider';
import { coreMock } from '@kbn/core/public/mocks';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import dataViewResponse from './__fixtures__/data_view_response.json';

import { setupGetOperatorSuggestions } from './operator';
import { KueryNode } from '@kbn/data-plugin/public';
import { KueryNode } from '@kbn/es-query';
import { QuerySuggestionGetFnArgs } from '../query_suggestion_provider';
import { coreMock } from '@kbn/core/public/mocks';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { setupGetValueSuggestions } from './value';
import dataViewResponse from './__fixtures__/data_view_response.json';

import { coreMock } from '@kbn/core/public/mocks';
import { KueryNode } from '@kbn/data-plugin/public';
import { KueryNode } from '@kbn/es-query';
import { QuerySuggestionGetFnArgs } from '../query_suggestion_provider';

const mockKueryNode = (kueryNode: Partial<KueryNode>) => kueryNode as unknown as KueryNode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import _ from 'lodash';
import React from 'react';

import { IndexPatternsContract as DataViewsContract } from '@kbn/data-plugin/public';
import { DataViewsContract } from '@kbn/data-plugin/public';
import DataViewSelect, { DataViewSelectProps } from './data_view_select';

// Takes in stateful runtime dependencies and pre-wires them to the component
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import React, { Component } from 'react';

import { Required } from '@kbn/utility-types';
import { EuiComboBox, EuiComboBoxProps } from '@elastic/eui';
import { IndexPatternsContract as DataViewsContract } from '@kbn/data-plugin/public';
import { DataViewsContract } from '@kbn/data-plugin/public';

export type DataViewSelectProps = Required<
Omit<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
stubDataView,
stubFields,
} from '@kbn/data-plugin/common/stubs';
import { toggleFilterNegated } from '@kbn/data-plugin/common';
import { toggleFilterNegated } from '@kbn/es-query';
import {
getFieldFromFilter,
getFilterableFields,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import React, { Fragment } from 'react';
import { EuiTextColor } from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import { Filter, FILTERS } from '@kbn/data-plugin/common';
import { Filter, FILTERS } from '@kbn/es-query';
import { existsOperator, isOneOfOperator } from './filter_operators';
import type { FilterLabelStatus } from '../../filter_item';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ import { CoreStart } from '@kbn/core/public';
import { IStorageWrapper } from '@kbn/kibana-utils-plugin/public';
import { KibanaContextProvider } from '@kbn/kibana-react-plugin/public';
import { QueryStart, SavedQuery, DataPublicPluginStart } from '@kbn/data-plugin/public';
import { Filter, Query, TimeRange } from '@kbn/data-plugin/common';
import { Query, TimeRange } from '@kbn/data-plugin/common';
import { Filter } from '@kbn/es-query';
import { UsageCollectionSetup } from '@kbn/usage-collection-plugin/public';
import { SearchBar } from '.';
import type { SearchBarOwnProps } from '.';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

import { useState, useEffect } from 'react';
import { Subscription } from 'rxjs';
import { DataPublicPluginStart, Filter } from '@kbn/data-plugin/public';
import { DataPublicPluginStart } from '@kbn/data-plugin/public';
import { Filter } from '@kbn/es-query';

interface UseFilterManagerProps {
filters?: Filter[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
* Side Public License, v 1.
*/

import { Filter, FilterStateStore } from '@kbn/data-plugin/public';
import { FilterStateStore } from '@kbn/data-plugin/public';
import { Filter } from '@kbn/es-query';

export function getFilter(
store: FilterStateStore,
Expand Down

0 comments on commit 6f35ee3

Please sign in to comment.