From bb3d35bb125a0de11be58c78de7d8ba666c5855a Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Thu, 4 Mar 2021 14:15:49 +0100 Subject: [PATCH] Fix wrong import in data plugin causing 100kB bundle increase (#93448) (#93577) # Conflicts: # api_docs/data.json # api_docs/data_search.json --- .eslintrc.js | 2 +- api_docs/data.json | 260 ++++++------------ api_docs/data_search.json | 168 +++++------ packages/kbn-optimizer/limits.yml | 2 +- .../search/search_source/search_source.ts | 3 +- 5 files changed, 167 insertions(+), 268 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 707048cc35424..8252834b9c3d3 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1368,7 +1368,7 @@ module.exports = { 'no-restricted-imports': [ 'error', { - patterns: ['lodash/*', '!lodash/fp'], + patterns: ['lodash/*', '!lodash/fp', 'rxjs/internal-compatibility'], }, ], }, diff --git a/api_docs/data.json b/api_docs/data.json index 6a819fc5681a5..5bd6c293abe50 100644 --- a/api_docs/data.json +++ b/api_docs/data.json @@ -6049,8 +6049,8 @@ "description": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 112, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L112" + "lineNumber": 111, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L111" }, "signature": [ "Record[]" @@ -6081,8 +6081,8 @@ "description": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 116, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L116" + "lineNumber": 115, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L115" } }, { @@ -6101,8 +6101,8 @@ "description": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 116, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L116" + "lineNumber": 115, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L115" } } ], @@ -6110,8 +6110,8 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 116, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L116" + "lineNumber": 115, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L115" } }, { @@ -6135,8 +6135,8 @@ "description": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 134, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L134" + "lineNumber": 133, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L133" } } ], @@ -6144,8 +6144,8 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 134, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L134" + "lineNumber": 133, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L133" } }, { @@ -6179,8 +6179,8 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 143, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L143" + "lineNumber": 142, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L142" } }, { @@ -6202,8 +6202,8 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 143, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L143" + "lineNumber": 142, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L142" } } ], @@ -6211,8 +6211,8 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 143, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L143" + "lineNumber": 142, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L142" } }, { @@ -6238,8 +6238,8 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 155, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L155" + "lineNumber": 154, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L154" } } ], @@ -6247,8 +6247,8 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 155, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L155" + "lineNumber": 154, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L154" } }, { @@ -6288,8 +6288,8 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 166, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L166" + "lineNumber": 165, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L165" } } ], @@ -6299,8 +6299,8 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 166, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L166" + "lineNumber": 165, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L165" } }, { @@ -6318,8 +6318,8 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 174, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L174" + "lineNumber": 173, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L173" } }, { @@ -6344,8 +6344,8 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 181, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L181" + "lineNumber": 180, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L180" } }, { @@ -6377,8 +6377,8 @@ "description": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 188, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L188" + "lineNumber": 187, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L187" } }, { @@ -6391,8 +6391,8 @@ "description": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 188, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L188" + "lineNumber": 187, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L187" } } ], @@ -6400,8 +6400,8 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 188, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L188" + "lineNumber": 187, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L187" } }, { @@ -6433,8 +6433,8 @@ "description": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 199, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L199" + "lineNumber": 198, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L198" } } ], @@ -6442,8 +6442,8 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 199, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L199" + "lineNumber": 198, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L198" } }, { @@ -6468,8 +6468,8 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 206, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L206" + "lineNumber": 205, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L205" } }, { @@ -6494,8 +6494,8 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 213, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L213" + "lineNumber": 212, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L212" } }, { @@ -6526,8 +6526,8 @@ "description": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 227, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L227" + "lineNumber": 226, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L226" } } ], @@ -6535,8 +6535,8 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 227, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L227" + "lineNumber": 226, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L226" } }, { @@ -6586,8 +6586,8 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 239, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L239" + "lineNumber": 238, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L238" } }, { @@ -6608,8 +6608,8 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 239, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L239" + "lineNumber": 238, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L238" } } ], @@ -6621,8 +6621,8 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 239, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L239" + "lineNumber": 238, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L238" } }, { @@ -6650,8 +6650,8 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 249, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L249" + "lineNumber": 248, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L248" } }, { @@ -6693,8 +6693,8 @@ "description": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 257, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L257" + "lineNumber": 256, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L256" } } ], @@ -6702,8 +6702,8 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 257, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L257" + "lineNumber": 256, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L256" } }, { @@ -6743,8 +6743,8 @@ "description": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 284, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L284" + "lineNumber": 283, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L283" } } ], @@ -6754,8 +6754,8 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 284, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L284" + "lineNumber": 283, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L283" } }, { @@ -6811,8 +6811,8 @@ "description": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 294, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L294" + "lineNumber": 293, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L293" } } ], @@ -6822,8 +6822,8 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 293, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L293" + "lineNumber": 292, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L292" } }, { @@ -6841,8 +6841,8 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 302, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L302" + "lineNumber": 301, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L301" } }, { @@ -6862,8 +6862,8 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 311, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L311" + "lineNumber": 310, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L310" } }, { @@ -6894,8 +6894,8 @@ "description": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 689, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L689" + "lineNumber": 688, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L688" } } ], @@ -6903,8 +6903,8 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 689, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L689" + "lineNumber": 688, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L688" } }, { @@ -6932,15 +6932,15 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 718, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L718" + "lineNumber": 717, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L717" } } ], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 104, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L104" + "lineNumber": 103, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L103" }, "initialIsOpen": false }, @@ -26514,106 +26514,6 @@ "returnComment": [], "initialIsOpen": false }, - { - "id": "def-common.getConvertedValueForField", - "type": "Function", - "children": [ - { - "type": "Object", - "label": "field", - "isRequired": true, - "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataIndexPatternsPluginApi", - "section": "def-common.IFieldType", - "text": "IFieldType" - } - ], - "description": [], - "source": { - "path": "src/plugins/data/common/es_query/filters/phrase_filter.ts", - "lineNumber": 107, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/es_query/filters/phrase_filter.ts#L107" - } - }, - { - "type": "Any", - "label": "value", - "isRequired": true, - "signature": [ - "any" - ], - "description": [], - "source": { - "path": "src/plugins/data/common/es_query/filters/phrase_filter.ts", - "lineNumber": 107, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/es_query/filters/phrase_filter.ts#L107" - } - } - ], - "signature": [ - "(field: ", - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataIndexPatternsPluginApi", - "section": "def-common.IFieldType", - "text": "IFieldType" - }, - ", value: any) => any" - ], - "description": [ - "\nSee issues bellow for the reason behind this change.\nValues need to be converted to correct types for boolean \\ numeric fields.\nhttps://github.com/elastic/kibana/issues/74301\nhttps://github.com/elastic/kibana/issues/8677\nhttps://github.com/elastic/elasticsearch/issues/20941\nhttps://github.com/elastic/elasticsearch/pull/22201" - ], - "label": "getConvertedValueForField", - "source": { - "path": "src/plugins/data/common/es_query/filters/phrase_filter.ts", - "lineNumber": 107, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/es_query/filters/phrase_filter.ts#L107" - }, - "tags": [], - "returnComment": [], - "initialIsOpen": false - }, - { - "id": "def-common.buildInlineScriptForPhraseFilter", - "type": "Function", - "children": [ - { - "type": "Any", - "label": "scriptedField", - "isRequired": true, - "signature": [ - "any" - ], - "description": [], - "source": { - "path": "src/plugins/data/common/es_query/filters/phrase_filter.ts", - "lineNumber": 132, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/es_query/filters/phrase_filter.ts#L132" - } - } - ], - "signature": [ - "(scriptedField: any) => string" - ], - "description": [ - "\nTakes a scripted field and returns an inline script appropriate for use in a script query.\nHandles lucene expression and Painless scripts. Other langs aren't guaranteed to generate valid\nscripts.\n" - ], - "label": "buildInlineScriptForPhraseFilter", - "source": { - "path": "src/plugins/data/common/es_query/filters/phrase_filter.ts", - "lineNumber": 132, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/es_query/filters/phrase_filter.ts#L132" - }, - "tags": [], - "returnComment": [ - "The inline script string" - ], - "initialIsOpen": false - }, { "id": "def-common.isPhrasesFilter", "type": "Function", diff --git a/api_docs/data_search.json b/api_docs/data_search.json index dfe25bbf4ce4d..3d550a1472e2a 100644 --- a/api_docs/data_search.json +++ b/api_docs/data_search.json @@ -6522,8 +6522,8 @@ "description": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 112, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L112" + "lineNumber": 111, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L111" }, "signature": [ "Record[]" @@ -6554,8 +6554,8 @@ "description": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 116, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L116" + "lineNumber": 115, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L115" } }, { @@ -6574,8 +6574,8 @@ "description": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 116, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L116" + "lineNumber": 115, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L115" } } ], @@ -6583,8 +6583,8 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 116, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L116" + "lineNumber": 115, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L115" } }, { @@ -6608,8 +6608,8 @@ "description": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 134, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L134" + "lineNumber": 133, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L133" } } ], @@ -6617,8 +6617,8 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 134, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L134" + "lineNumber": 133, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L133" } }, { @@ -6652,8 +6652,8 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 143, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L143" + "lineNumber": 142, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L142" } }, { @@ -6675,8 +6675,8 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 143, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L143" + "lineNumber": 142, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L142" } } ], @@ -6684,8 +6684,8 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 143, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L143" + "lineNumber": 142, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L142" } }, { @@ -6711,8 +6711,8 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 155, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L155" + "lineNumber": 154, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L154" } } ], @@ -6720,8 +6720,8 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 155, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L155" + "lineNumber": 154, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L154" } }, { @@ -6761,8 +6761,8 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 166, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L166" + "lineNumber": 165, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L165" } } ], @@ -6772,8 +6772,8 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 166, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L166" + "lineNumber": 165, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L165" } }, { @@ -6791,8 +6791,8 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 174, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L174" + "lineNumber": 173, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L173" } }, { @@ -6817,8 +6817,8 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 181, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L181" + "lineNumber": 180, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L180" } }, { @@ -6850,8 +6850,8 @@ "description": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 188, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L188" + "lineNumber": 187, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L187" } }, { @@ -6864,8 +6864,8 @@ "description": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 188, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L188" + "lineNumber": 187, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L187" } } ], @@ -6873,8 +6873,8 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 188, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L188" + "lineNumber": 187, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L187" } }, { @@ -6906,8 +6906,8 @@ "description": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 199, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L199" + "lineNumber": 198, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L198" } } ], @@ -6915,8 +6915,8 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 199, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L199" + "lineNumber": 198, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L198" } }, { @@ -6941,8 +6941,8 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 206, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L206" + "lineNumber": 205, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L205" } }, { @@ -6967,8 +6967,8 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 213, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L213" + "lineNumber": 212, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L212" } }, { @@ -6999,8 +6999,8 @@ "description": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 227, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L227" + "lineNumber": 226, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L226" } } ], @@ -7008,8 +7008,8 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 227, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L227" + "lineNumber": 226, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L226" } }, { @@ -7059,8 +7059,8 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 239, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L239" + "lineNumber": 238, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L238" } }, { @@ -7081,8 +7081,8 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 239, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L239" + "lineNumber": 238, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L238" } } ], @@ -7094,8 +7094,8 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 239, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L239" + "lineNumber": 238, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L238" } }, { @@ -7123,8 +7123,8 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 249, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L249" + "lineNumber": 248, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L248" } }, { @@ -7166,8 +7166,8 @@ "description": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 257, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L257" + "lineNumber": 256, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L256" } } ], @@ -7175,8 +7175,8 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 257, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L257" + "lineNumber": 256, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L256" } }, { @@ -7216,8 +7216,8 @@ "description": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 284, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L284" + "lineNumber": 283, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L283" } } ], @@ -7227,8 +7227,8 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 284, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L284" + "lineNumber": 283, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L283" } }, { @@ -7284,8 +7284,8 @@ "description": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 294, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L294" + "lineNumber": 293, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L293" } } ], @@ -7295,8 +7295,8 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 293, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L293" + "lineNumber": 292, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L292" } }, { @@ -7314,8 +7314,8 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 302, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L302" + "lineNumber": 301, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L301" } }, { @@ -7335,8 +7335,8 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 311, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L311" + "lineNumber": 310, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L310" } }, { @@ -7367,8 +7367,8 @@ "description": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 689, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L689" + "lineNumber": 688, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L688" } } ], @@ -7376,8 +7376,8 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 689, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L689" + "lineNumber": 688, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L688" } }, { @@ -7405,15 +7405,15 @@ "returnComment": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 718, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L718" + "lineNumber": 717, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L717" } } ], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 104, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L104" + "lineNumber": 103, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L103" }, "initialIsOpen": false }, @@ -16484,8 +16484,8 @@ "description": [], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 100, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L100" + "lineNumber": 99, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L99" }, "signature": [ { @@ -16500,8 +16500,8 @@ ], "source": { "path": "src/plugins/data/common/search/search_source/search_source.ts", - "lineNumber": 99, - "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L99" + "lineNumber": 98, + "link": "https://github.com/elastic/kibana/tree/7.xsrc/plugins/data/common/search/search_source/search_source.ts#L98" }, "initialIsOpen": false }, diff --git a/packages/kbn-optimizer/limits.yml b/packages/kbn-optimizer/limits.yml index 22dfd0209b33c..ff919979ea193 100644 --- a/packages/kbn-optimizer/limits.yml +++ b/packages/kbn-optimizer/limits.yml @@ -14,7 +14,7 @@ pageLoadAssetSize: dashboard: 374267 dashboardEnhanced: 65646 dashboardMode: 22716 - data: 1319839 + data: 900000 dataEnhanced: 50420 devTools: 38781 discover: 105147 diff --git a/src/plugins/data/common/search/search_source/search_source.ts b/src/plugins/data/common/search/search_source/search_source.ts index aeeebe312d79e..f11e7f06b6ab9 100644 --- a/src/plugins/data/common/search/search_source/search_source.ts +++ b/src/plugins/data/common/search/search_source/search_source.ts @@ -59,10 +59,9 @@ */ import { setWith } from '@elastic/safer-lodash-set'; -import { uniqueId, keyBy, pick, difference, isFunction, isEqual, uniqWith } from 'lodash'; +import { uniqueId, keyBy, pick, difference, isFunction, isEqual, uniqWith, isObject } 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';