-
Notifications
You must be signed in to change notification settings - Fork 27
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
♻️ Maintenance: reduce code duplication #4982
♻️ Maintenance: reduce code duplication #4982
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4982 +/- ##
========================================
- Coverage 86.8% 86.7% -0.1%
========================================
Files 1239 1157 -82
Lines 51114 49459 -1655
Branches 1078 941 -137
========================================
- Hits 44398 42917 -1481
+ Misses 6479 6333 -146
+ Partials 237 209 -28
Flags with carried forward coverage won't be shown. Click here to find out more.
|
372962a
to
5202e14
Compare
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 good! thanks a lot for this cleanup action!
dc1cca1
to
aaa165b
Compare
Code Climate has analyzed commit 65b8dd4 and detected 0 issues on this pull request. View more on Code Climate. |
Kudos, SonarCloud Quality Gate passed!
|
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.
Looks good to me. Thanks
What do these changes do?
The purpose of this PR is to remove some of the duplication reported by sonarcloud after PR #4973.
The duplication is removed by moving duplicated parts from services to the libraries. Specifically we move:
models_library.api_schemas__common/errors.DefaultApiError
app
toservicelib.fastapi.http_client
servicelib.fastapi.exceptions_utils
settings_library.application
simcore_service_webserver.wallets.payments_handlers
NOTE that I only changed
payments
,webserver
anddynamic-scheduler
services. Other services might also need to be refactored. I propose that every service owner will follow up on his corresponding service.Related issue/s
How to test
Add tests for new modules
packages/models-library/tests/test_api_schemas__common.py
packages/service-library/tests/fastapi/test_exceptions_utils.py
DevOps
None