refactor: split top level client from base client (#534)#540
Merged
jooola merged 2 commits intostorage-boxesfrom Aug 15, 2025
Merged
refactor: split top level client from base client (#534)#540jooola merged 2 commits intostorage-boxesfrom
jooola merged 2 commits intostorage-boxesfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## storage-boxes #540 +/- ##
=================================================
+ Coverage 96.05% 96.21% +0.15%
=================================================
Files 67 67
Lines 2994 2983 -11
=================================================
- Hits 2876 2870 -6
+ Misses 118 113 -5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Squashed commit of the following: commit 4ff9fbc Author: jo <ljonas@riseup.net> Date: Thu Aug 14 16:54:47 2025 +0200 test: timeout handling commit 13f7c0b Author: jo <ljonas@riseup.net> Date: Thu Aug 14 16:33:26 2025 +0200 test: fix speed optimization commit 458631d Author: jo <ljonas@riseup.net> Date: Thu Aug 14 16:29:50 2025 +0200 test: use parent to access other resources clients commit f69a609 Author: jo <ljonas@riseup.net> Date: Thu Aug 14 16:28:13 2025 +0200 test: update request_mock fixture commit d565239 Author: jo <ljonas@riseup.net> Date: Tue Aug 12 15:57:25 2025 +0200 refactor: use parent to access other resources clients (2) commit 1703985 Author: jo <ljonas@riseup.net> Date: Thu Aug 14 16:25:51 2025 +0200 refactor: use parent to access other resources clients (1) commit adb9232 Author: jo <ljonas@riseup.net> Date: Thu Aug 14 16:24:50 2025 +0200 refactor: use type from inherited resource client property commit 3b6c712 Author: jo <ljonas@riseup.net> Date: Thu Aug 14 16:18:29 2025 +0200 refactor: split top level client from base client Split the top level client used to gather all resource client in a single class, from the base client actually doing the requests to the API. This allows us for example to swap or modify the base client in a resource client, that might need a different base client (session, endpoint, headers, ...).
53d5a38 to
74d9d03
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merges #534 into the storage-boxes branch for development purposes.
Plus some required fixes after the merge.