Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.x] bfetch (#52888) #53065

Merged
merged 1 commit into from
Dec 14, 2019
Merged

[7.x] bfetch (#52888) #53065

merged 1 commit into from
Dec 14, 2019

Conversation

streamich
Copy link
Contributor

Backports the following commits to 7.x:

* feat: 🎸 add bfetch plugin stub

* feat: 🎸 add sample routes

* feat: 🎸 implement streaming response

* feat: 🎸 add Defer class

* refactor: 💡 move Defer inot /common folder

* feat: 🎸 add fromStreamingXhr() method

* feat: 🎸 add split method

* feat: 🎸 add fetchStreaming() function

* test: 💍 fix test after refactor

* test: 💍 add tests for fetStreaming() method

* refactor: 💡 move removeLeadingSlash() to /common folder

* feat: 🎸 expor stateful fetchStreaming() throuh plugin contract

* chore: 🤖 clean up bfetch

* chore: 🤖 prepare to replace ajax_stream by bfetch

* Change ajax_stream to use new-line delimited JSON

* refactor: 💡 move batched_fetch to use bfetch service

* refactor: 💡 make use of defer() utility from kibana_utils

* chore: 🤖 remove ajax_stream library

* fix: 🐛 fix tests and inject fetchStreaming() method as dep

* refactor: 💡 make split() operator more readable

* refactor: 💡 improvee PR according to feedback

* docs: ✏️ add fetchStreaming() reference

* refactor: 💡 use NP logger, rename to createNDJSONStream()

* chore: 🤖 adress Luke's review comments

* chore: 🤖 add missing type
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

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

@streamich streamich merged commit 66822d0 into elastic:7.x Dec 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants