Skip to content

[DE-544] Adjusting allowRetry implementation #255

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

Merged
merged 3 commits into from
Jul 11, 2023

Conversation

apetenchea
Copy link
Member

This PR is a follow-up to #254

Instead of having a separate retry function, it becomes the default behavior of the cursor to always fetch the last batch (that is, only if the allow_retry option is specified in the AQL query).
This adjustment reduces the complexity of the API and makes it easier to use. Also, users may start benefiting directly from this change after upgrading to 3.11, without having to make any refactoring to their existing code. All that is needed now is to set allow_retry=True in arango.aql.AQL.execute

I have added a code block to the documentation to illustrate the usage.

@codecov-commenter
Copy link

codecov-commenter commented Jul 11, 2023

Codecov Report

Merging #255 (09126fb) into main (8b09e07) will decrease coverage by 0.05%.
The diff coverage is 84.61%.

❗ Current head 09126fb differs from pull request most recent head 14543dd. Consider uploading reports for the commit 14543dd to get more accurate results

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@            Coverage Diff             @@
##             main     #255      +/-   ##
==========================================
- Coverage   98.58%   98.54%   -0.05%     
==========================================
  Files          26       26              
  Lines        3899     3910      +11     
==========================================
+ Hits         3844     3853       +9     
- Misses         55       57       +2     
Impacted Files Coverage Δ
arango/cursor.py 98.56% <80.00%> (-1.44%) ⬇️
arango/aql.py 95.04% <100.00%> (+0.04%) ⬆️

@CryptoNinjaGeek CryptoNinjaGeek merged commit 0dc641e into main Jul 11, 2023
@CryptoNinjaGeek CryptoNinjaGeek deleted the refactoring/de-544-retriable-api branch July 11, 2023 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants