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

RE2022-266: Vendor aioarango #547

Merged
merged 2 commits into from
Nov 16, 2023
Merged

RE2022-266: Vendor aioarango #547

merged 2 commits into from
Nov 16, 2023

Conversation

MrCreosote
Copy link
Member

There are two commits here:

  1. Vendor the aioarango code (minus code we don't need that was easy to strip out, plus one change to fix a deprecated call in ArangoClient.version()
  2. Bump the dependencies for aioarango we still need to the latest version and deal with the (surprisingly minimal) fallout

Closes #163

Vendor the seemingly abandonware aioarango python package so we can bump
dependency versions. Removed code that we don't need (Foxx etc.) and
removed a deprecated call in the ArangoClient.version() method.

Next step: bump dependencies to the latest version and see what breaks.
... now that it's vendored.

Things seem to work. I'd've expected catastrophic failure if httpx no
longer worked with aioarango, but the spot checks I did all worked. It
did require some futzing with log settings to prevent httpx from
spamming the logs.
Copy link

codecov bot commented Nov 15, 2023

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (c5f2552) 46.94% compared to head (e307869) 46.94%.

Files Patch % Lines
src/service/deletion.py 0.00% 4 Missing ⚠️
src/service/processing.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #547   +/-   ##
=======================================
  Coverage   46.94%   46.94%           
=======================================
  Files          73       73           
  Lines        6299     6301    +2     
=======================================
+ Hits         2957     2958    +1     
- Misses       3342     3343    +1     

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

@MrCreosote MrCreosote requested review from Tianhao-Gu and removed request for Xiangs18 November 16, 2023 16:58
Copy link
Collaborator

@Tianhao-Gu Tianhao-Gu left a comment

Choose a reason for hiding this comment

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

service code looks good to me. I didn't look into aioarango code changes assuming it's just copy and paste of their code.

@MrCreosote
Copy link
Member Author

@Tianhao-Gu it's not exactly copy and paste. I cut out some code (and the imports for that code) that we don't need and changed the ArangoClient.version() method. Given that are you still ok with the PR?

@MrCreosote
Copy link
Member Author

Also I added a readme you should check

@Tianhao-Gu
Copy link
Collaborator

@Tianhao-Gu it's not exactly copy and paste. I cut out some code (and the imports for that code) that we don't need and changed the ArangoClient.version() method. Given that are you still ok with the PR?

👍 I am ok with the overall PR and the version method changes.

@MrCreosote MrCreosote merged commit 067e16f into main Nov 16, 2023
10 of 11 checks passed
@MrCreosote MrCreosote deleted the dev-aioarango branch November 16, 2023 19:39
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.

Figure out what do to about abandonware async arango clients
2 participants