Skip to content

Commit

Permalink
Fix wrong import in data plugin causing 100kB bundle increase (#93448)
Browse files Browse the repository at this point in the history
# Conflicts:
#	api_docs/data.json
#	api_docs/data_search.json
#	src/plugins/data/common/search/search_source/search_source.ts
  • Loading branch information
Dosant committed Mar 4, 2021
1 parent 8c8993d commit cb244d1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -1344,7 +1344,7 @@ module.exports = {
'no-restricted-imports': [
'error',
{
patterns: ['lodash/*', '!lodash/fp'],
patterns: ['lodash/*', '!lodash/fp', 'rxjs/internal-compatibility'],
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion packages/kbn-optimizer/limits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pageLoadAssetSize:
dashboard: 374267
dashboardEnhanced: 65646
dashboardMode: 22716
data: 1319839
data: 900000
dataEnhanced: 50420
devTools: 38781
discover: 105147
Expand Down
13 changes: 11 additions & 2 deletions src/plugins/data/common/search/search_source/search_source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit cb244d1

Please sign in to comment.