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 batching and updating with JSON, NDJSON, and CSV #599

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

ellnix
Copy link
Collaborator

@ellnix ellnix commented Jan 22, 2025

Pull Request

Related issue

Fixes #243

The issue is very old, I added what I saw was missing in it, hopefully now we can close it. Reviewing can be done commit-by-commit, might be easier to follow.

Before this PR, this was only done for http_post as a workaround to
allow disabling the automatic JSON conversion of "body" to support CSV,
NDJSON, and possible other future payload types.

This must be done for at least http_put at least, since there are
update_* methods to go along with the add_* methods for the various
payload types.

I added the option to all of the http methods to prevent any future
surprises.
Previously, you could only *replace* documents with the add endpoints.
@ellnix ellnix added the enhancement New feature or request label Jan 22, 2025
@ellnix ellnix requested a review from brunoocasali January 22, 2025 14:05
Copy link

codecov bot commented Jan 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (9123ebb) to head (a89a377).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #599   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           10        10           
  Lines          749       780   +31     
=========================================
+ Hits           749       780   +31     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

Successfully merging this pull request may close these issues.

NDJSON/CSV methods to add and update documents
1 participant