-
Notifications
You must be signed in to change notification settings - Fork 32
♻️ servicelib.fastapi tools and rabbitmq.rpc errors interface
#5157
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
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #5157 +/- ##
========================================
- Coverage 87.4% 87.1% -0.3%
========================================
Files 1277 1164 -113
Lines 52422 50065 -2357
Branches 1133 928 -205
========================================
- Hits 45836 43630 -2206
+ Misses 6346 6227 -119
+ Partials 240 208 -32
Flags with carried forward coverage won't be shown. Click here to find out more.
|
servicelib.fastapi and rabbitmq.rpc toolingservicelib.fastapi and rabbitmq.rpc tooling
bd8b969 to
1433bb1
Compare
servicelib.fastapi and rabbitmq.rpc toolingservicelib.fastapi tooling and rabbitmq.rpc errors interface
servicelib.fastapi tooling and rabbitmq.rpc errors interfaceservicelib.fastapi tools and rabbitmq.rpc errors interface
sanderegg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very nice! thanks!
packages/models-library/src/models_library/api_schemas_payments/errors.py
Outdated
Show resolved
Hide resolved
4e00de9 to
7b659ff
Compare
GitHK
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
look good to me
matusdrobuliak66
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot!!
bisgaard-itis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool! Thanks a lot
|
Code Climate has analyzed commit 1ef7214 and detected 0 issues on this pull request. View more on Code Climate. |
|
Kudos, SonarCloud Quality Gate passed!
|








What do these changes do?
♻️
fastapitoolsSeparation of policies so they can be combined at will (and not imposed from a base class)
app_state.AppStateMixin: to create/get/delete a single instance of a class in theapp.statehttp_client:httpx.AsyncClientto bind lifespan of the wrapped client to the apphttpx_utils: free functions onhttpxinterface✨ RPC errors interface
Allows raising selection of exceptions in rpc (similar to https://tenacity.readthedocs.io/en/latest/#whether-to-retry)
paymentsexceptionsmodels_library.api_schemas_payments.errors.payments.api.rpcinterface: this way interface includes not only functionality but expected errors.paymentsplugin will raise in the rpc calls the exceptions above and are handled accordingly in the rest calls. Note that the rest has yet another error handling mechanism that translates these exceptions to http errors. SEEwallets._handlers.handle_wallets_exceptions)_BaseAppError: internal topaymentsservicePaymentsPluginError: internal topaymentsplugin in webserver_BaseRpcApiErrorsubclasses: shared by RPC server(inpaymentsservice) and client (inweb-serverservice)🐛 fixes a bug that affect "FAKE" mode
Related issue/s
How to test
see new driving tests files
Dev Checklist
DevOps
repo.configs. This is a way to clarify whichenvI am using when I have symbolic links to them