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

Support legacy Elastic _bulk API clients which use Content-Type: application/json #606

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

awesense-paul
Copy link

@awesense-paul awesense-paul commented Jan 7, 2025

Changes the Elastic bulk API parser to support requests with Content-Type: application/json, by sending all requests through the same code path. (the existing parser behaviour expected a single JSON object for application/json -- though that code path would error anyway -- which is still supported as the case where there is 1 object / no newlines).

Resolves #602

@CLAassistant
Copy link

CLAassistant commented Jan 7, 2025

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ awesense-paul
❌ dependabot[bot]
You have signed the CLA already but the status is still pending? Let us recheck it.

@lmangani
Copy link
Collaborator

lmangani commented Jan 7, 2025

@awesense-paul thanks for taking the time to submit this PR! We appreciate it 🎉
@akvlad this needs to be ported into the next major to make sure this behaviour is retained please 🙏

dependabot bot and others added 4 commits January 7, 2025 12:59
…dates (metrico#586)

Bumps the npm_and_yarn group with 2 updates in the / directory: [cookie](https://github.com/jshttp/cookie) and [light-my-request](https://github.com/fastify/light-my-request).


Updates `cookie` from 0.6.0 to 0.7.2
- [Release notes](https://github.com/jshttp/cookie/releases)
- [Commits](jshttp/cookie@v0.6.0...v0.7.2)

Updates `light-my-request` from 5.13.0 to 5.14.0
- [Release notes](https://github.com/fastify/light-my-request/releases)
- [Commits](https://github.com/fastify/light-my-request/commits)

---
updated-dependencies:
- dependency-name: cookie
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: light-my-request
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps the go_modules group with 1 update in the /test/qryn_test_env/longtest directory: [google.golang.org/grpc](https://github.com/grpc/grpc-go).


Updates `google.golang.org/grpc` from 1.53.0 to 1.56.3
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](grpc/grpc-go@v1.53.0...v1.56.3)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: indirect
  dependency-group: go_modules
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…date (metrico#605)

Bumps the npm_and_yarn group with 1 update in the / directory: [cross-spawn](https://github.com/moxystudio/node-cross-spawn).


Updates `cross-spawn` from 6.0.5 to 7.0.6
- [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md)
- [Commits](moxystudio/node-cross-spawn@v6.0.5...v7.0.6)

Updates `cross-spawn` from 7.0.3 to 7.0.6
- [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md)
- [Commits](moxystudio/node-cross-spawn@v6.0.5...v7.0.6)

---
updated-dependencies:
- dependency-name: cross-spawn
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: cross-spawn
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@awesense-paul
Copy link
Author

(sorry, it was not my intention to close the pull request -- I was only intending to rebase on latest master and GPG-sign my commit)

@lmangani
Copy link
Collaborator

lmangani commented Mar 5, 2025

FYI @awesense-paul the next version of qryn (aka gigapipe) is now in a branch on this repo. The new codebase is in golang so this change would have to be ported there to be effective in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: Support legacy Elastic _bulk API clients which use Content-Type: application/json
3 participants