Skip to content

Sync auto batching requests - #436

Merged
leszekhanusz merged 11 commits into
graphql-python:masterfrom
leszekhanusz:auto_batch_sync
Sep 13, 2023
Merged

leszekhanusz merged 11 commits into
graphql-python:masterfrom
leszekhanusz:auto_batch_sync

Conversation

@leszekhanusz

Copy link
Copy Markdown
Collaborator

Implementation of an automatic batching of requests for the sync transports.

See issue #430

@codecov

codecov Bot commented Sep 9, 2023 •

Copy link
Copy Markdown

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (dfbcb59) 100.00% compared to head (02f249e) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #436   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           28        28           
  Lines         2497      2578   +81     
=========================================
+ Hits          2497      2578   +81     
Files Changed Coverage Δ
gql/client.py 100.00% <100.00%> (ø)

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

@leszekhanusz leszekhanusz mentioned this pull request Sep 9, 2023
@leszekhanusz leszekhanusz changed the title Implement sync auto batching requests Sync auto batching requests Sep 9, 2023

@itolosa itolosa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a tiny change, the rest are question or suggestions. Also, I don't know if we should support the empty list as a valid argument in the requests parameter. If not, we should include an assert in the client

Comment thread gql/client.py Resolved
Comment thread gql/client.py Resolved
Comment thread tests/test_requests_batch.py Resolved
Comment thread tests/test_requests_batch.py Resolved
@leszekhanusz
leszekhanusz merged commit ff3082b into graphql-python:master Sep 13, 2023
@leszekhanusz
leszekhanusz deleted the auto_batch_sync branch October 4, 2023 14:00
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.

2 participants