Skip to content

[7.13] [bfetch] compress stream chunks (#97994)#103961

Merged
lizozom merged 1 commit intoelastic:7.13from
lizozom:backport/7.13/pr-97994
Jun 30, 2021
Merged

[7.13] [bfetch] compress stream chunks (#97994)#103961
lizozom merged 1 commit intoelastic:7.13from
lizozom:backport/7.13/pr-97994

Conversation

@lizozom
Copy link
Copy Markdown
Contributor

@lizozom lizozom commented Jun 30, 2021

Backports the following commits to 7.13:

* Move inspector adapter integration into search source

* docs and ts

* Move other bucket to search source

* test ts + delete unused tabilfy function

* hierarchical param in aggconfig.
ts improvements
more inspector tests

* fix jest

* separate inspect
more tests

* jest

* inspector

* Error handling and more tests

* put the fun in functional tests

* delete client side legacy msearch code

* ts

* override to sync search in search source

* delete more legacy code

* ts

* delete moarrrr

* deflate bfetch chunks

* update tests
use only zlib

* ts

* extract getInflatedResponse

* tests

* Use fflate in attempt to reduce package size

* use node streams, fflate and hex encoding.

* DISABLE_SEARCH_COMPRESSION UI Settings
Use base64 and async compression

* i18n

* Code review
Use custom header for compression
Promisify once

* use custom headers

* Update jest

* fix tests

* code review, baby!

* integration

* tests

* limit

* limit

* limit

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	packages/kbn-optimizer/limits.yml
#	test/api_integration/apis/search/bsearch.ts
@lizozom lizozom added the backport This PR is a backport of another PR label Jun 30, 2021
@lizozom lizozom enabled auto-merge (squash) June 30, 2021 17:57
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
bfetch 21 29 +8

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
bfetch 47 51 +4

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
bfetch 11.1KB 46.9KB +35.8KB
kbnUiSharedDeps-elastic 3.3MB 3.3MB +1.0B
kbnUiSharedDeps-js 6.7MB 6.7MB +29.5KB
total +65.2KB
Unknown metric groups

API count

id before after diff
bfetch 58 62 +4

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@lizozom lizozom merged commit 81918b3 into elastic:7.13 Jun 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants