Fix wrong import in data plugin causing 100kB bundle increase (#93448) (#93580)

# Conflicts:
#	api_docs/data.json
#	api_docs/data_search.json
#	src/plugins/data/common/search/search_source/search_source.ts
This commit is contained in:
Anton Dosov 2021-03-04 14:31:30 +01:00 committed by GitHub
parent cedee32192
commit 5f41bd2ecf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 4 deletions

View file

@ -1344,7 +1344,7 @@ module.exports = {
'no-restricted-imports': [
'error',
{
patterns: ['lodash/*', '!lodash/fp'],
patterns: ['lodash/*', '!lodash/fp', 'rxjs/internal-compatibility'],
},
],
},

View file

@ -14,7 +14,7 @@ pageLoadAssetSize:
dashboard: 374267
dashboardEnhanced: 65646
dashboardMode: 22716
data: 1319839
data: 900000
dataEnhanced: 50420
devTools: 38781
discover: 105147

View file

@ -59,10 +59,19 @@
*/
import { setWith } from '@elastic/safer-lodash-set';
import { uniqueId, keyBy, pick, difference, omit, isFunction, isEqual, uniqWith } from 'lodash';
import {
uniqueId,
keyBy,
pick,
difference,
isFunction,
isEqual,
uniqWith,
isObject,
omit,
} from 'lodash';
import { map, switchMap, tap } from 'rxjs/operators';
import { defer, from } from 'rxjs';
import { isObject } from 'rxjs/internal-compatibility';
import { normalizeSortRequest } from './normalize_sort_request';
import { fieldWildcardFilter } from '../../../../kibana_utils/common';
import { IIndexPattern, IndexPattern, IndexPatternField } from '../../index_patterns';