Skip to content

Commit

Permalink
chore(NA): missing data upgrades to lodash4
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic committed Jun 24, 2020
1 parent 137055c commit 92b85bf
Show file tree
Hide file tree
Showing 36 changed files with 36 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { isEqual, cloneDeep } from 'lodash';
import { isEqual, cloneDeep } from 'lodash4';
import { migrateFilter, DeprecatedMatchPhraseFilter } from './migrate_filter';
import { PhraseFilter, MatchAllFilter } from '../filters';

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/data/common/es_query/kuery/functions/exists.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { get } from 'lodash';
import { get } from 'lodash4';
import * as literal from '../node_types/literal';
import { IIndexPattern, KueryNode, IFieldType } from '../../..';

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/data/common/es_query/kuery/functions/is.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { get, isUndefined } from 'lodash';
import { get, isUndefined } from 'lodash4';
import { getPhraseScript } from '../../filters';
import { getFields } from './utils/get_fields';
import { getTimeZoneFromSettings } from '../../utils';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { get } from 'lodash';
import { get } from 'lodash4';
import { nodeTypes } from '../node_types';
import { fields } from '../../../index_patterns/mocks';
import { IIndexPattern } from '../../../index_patterns';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import _ from 'lodash';
import _ from 'lodash4';

import { functions } from '../functions';
import { IIndexPattern, KueryNode } from '../../..';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import _ from 'lodash';
import _ from 'lodash4';
import * as ast from '../ast';
import { nodeTypes } from '../node_types';
import { NamedArgTypeBuildNode } from './types';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
import { escape, isFunction } from 'lodash';
import { escape, isFunction } from 'lodash4';
import { IFieldFormat, HtmlContextTypeConvert, FieldFormatsContentType } from '../types';
import { asPrettyString, getHighlightHtml } from '../utils';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { isFunction } from 'lodash';
import { isFunction } from 'lodash4';
import { IFieldFormat, TextContextTypeConvert, FieldFormatsContentType } from '../types';
import { asPrettyString } from '../utils';

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

import { i18n } from '@kbn/i18n';
import moment, { Moment } from 'moment';
import { memoize, noop } from 'lodash';
import { memoize, noop } from 'lodash4';
import { KBN_FIELD_TYPES } from '../../kbn_field_types/types';
import { FieldFormat } from '../field_format';
import { TextContextTypeConvert, FIELD_FORMAT_IDS } from '../types';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

import { i18n } from '@kbn/i18n';
import { truncate } from 'lodash';
import { truncate } from 'lodash4';
import { KBN_FIELD_TYPES } from '../../kbn_field_types/types';
import { FieldFormat } from '../field_format';
import { TextContextTypeConvert, FIELD_FORMAT_IDS } from '../types';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import _ from 'lodash';
import _ from 'lodash4';
import { highlightTags } from './highlight_tags';
import { htmlTags } from './html_tags';

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/data/common/field_mapping/mapping_setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { mapValues, isString } from 'lodash';
import { mapValues, isString } from 'lodash4';
import { FieldMappingSpec, MappingObject } from './types';

// import from ./common/types to prevent circular dependency of kibana_utils <-> data plugin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { defaults, map, last, get } from 'lodash';
import { defaults, map, last, get } from 'lodash4';

import { IndexPattern } from './index_pattern';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { find } from 'lodash';
import { find } from 'lodash4';
import moment, { unitOfTime } from 'moment';
import dateMath from '@elastic/datemath';

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/data/public/field_formats/utils/deserialize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { identity } from 'lodash';
import { identity } from 'lodash4';
import { i18n } from '@kbn/i18n';
import { convertDateRangeToString, DateRangeKey } from '../../search/aggs/buckets/lib/date_range';
import { convertIPRangeToString, IpRangeKey } from '../../search/aggs/buckets/lib/ip_range';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import _ from 'lodash';
import _ from 'lodash4';
import sinon from 'sinon';

import { Subscription } from 'rxjs';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import _ from 'lodash';
import _ from 'lodash4';
import { Subject } from 'rxjs';

import { IUiSettingsClient } from 'src/core/public';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import _ from 'lodash';
import _ from 'lodash4';
import * as Rx from 'rxjs';
import { map } from 'rxjs/operators';
import { IStorageWrapper } from 'src/plugins/kibana_utils/public';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import _ from 'lodash';
import _ from 'lodash4';

import { RefreshInterval } from '../../../../common';
import { InputTimeRange } from '../types';
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/data/public/query/timefilter/timefilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import _ from 'lodash';
import _ from 'lodash4';
import { Subject, BehaviorSubject } from 'rxjs';
import moment from 'moment';
import { areRefreshIntervalsDifferent, areTimeRangesDifferent } from './lib/diff_time_picker_vals';
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/data/public/search/aggs/agg_config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import _ from 'lodash';
import _ from 'lodash4';
import { i18n } from '@kbn/i18n';
import { Assign, Ensure } from '@kbn/utility-types';
import { ExpressionAstFunction, ExpressionAstArgument } from 'src/plugins/expressions/public';
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/data/public/search/aggs/agg_configs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { keyBy } from 'lodash';
import { keyBy } from 'lodash4';
import { AggConfig } from './agg_config';
import { AggConfigs } from './agg_configs';
import { AggTypesRegistryStart } from './agg_types_registry';
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/data/public/search/aggs/agg_type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { constant, noop, identity } from 'lodash';
import { constant, noop, identity } from 'lodash4';
import { i18n } from '@kbn/i18n';
import { initParams } from './agg_params';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { get, noop, find, every } from 'lodash';
import { get, noop, find, every } from 'lodash4';
import moment from 'moment-timezone';
import { i18n } from '@kbn/i18n';
import { IUiSettingsClient } from 'src/core/public';
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/data/public/search/aggs/buckets/date_range.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { get } from 'lodash';
import { get } from 'lodash4';
import moment from 'moment-timezone';
import { i18n } from '@kbn/i18n';
import { IUiSettingsClient } from 'src/core/public';
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/data/public/search/aggs/buckets/histogram.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { get } from 'lodash';
import { get } from 'lodash4';
import { i18n } from '@kbn/i18n';
import { IUiSettingsClient } from 'src/core/public';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { find } from 'lodash';
import { find } from 'lodash4';
import { IResponseAggConfig } from './lib/get_response_agg_config_class';

export const getPercentileValue = <TAggConfig extends IResponseAggConfig>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { dropRight, last } from 'lodash';
import { dropRight, last } from 'lodash4';
import { getTopHitMetricAgg, TopHitMetricAggDependencies } from './top_hit';
import { AggConfigs } from '../agg_configs';
import { mockAggTypesRegistry } from '../test_helpers';
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/data/public/search/aggs/param_types/json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import _ from 'lodash';
import _ from 'lodash4';

import { IAggConfig } from '../agg_config';
import { BaseParamType } from './base';
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/data/public/search/aggs/utils/prop_filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { isFunction } from 'lodash';
import { isFunction } from 'lodash4';

type FilterFunc<P extends keyof T, T> = (item: T[P]) => boolean;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { set } from 'lodash';
import { set } from 'lodash4';
import { FormattedData } from '../../../../../plugins/inspector/public';
import { TabbedTable } from '../tabify';
import { createFilter } from './create_filter';
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/data/public/search/expressions/esaggs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { get, has } from 'lodash';
import { get, has } from 'lodash4';
import { i18n } from '@kbn/i18n';
import {
KibanaContext,
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/data/public/search/tabify/buckets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { get, isPlainObject, keys, findKey } from 'lodash';
import { get, isPlainObject, keys, findKey } from 'lodash4';
import moment from 'moment';
import { IAggConfig } from '../aggs';
import { AggResponseBucket, TabbedRangeFilterParams, TimeRangeInformation } from './types';
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/data/public/search/tabify/response_writer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { isEmpty } from 'lodash';
import { isEmpty } from 'lodash4';
import { IAggConfigs } from '../aggs';
import { tabifyGetColumns } from './get_columns';

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/data/public/search/tabify/tabify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { get } from 'lodash';
import { get } from 'lodash4';
import { TabbedAggResponseWriter } from './response_writer';
import { TabifyBuckets } from './buckets';
import { TabbedResponseWriterOptions } from './types';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import {
} from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import { FormattedMessage, InjectedIntl, injectI18n } from '@kbn/i18n/react';
import { get } from 'lodash';
import { get } from 'lodash4';
import React, { Component } from 'react';
import { GenericComboBox, GenericComboBoxProps } from './generic_combo_box';
import {
Expand Down

0 comments on commit 92b85bf

Please sign in to comment.