-
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
♻️ Major cleanup of catalog service #5904
♻️ Major cleanup of catalog service #5904
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5904 +/- ##
=========================================
+ Coverage 84.5% 88.6% +4.0%
=========================================
Files 10 937 +927
Lines 214 41367 +41153
Branches 25 932 +907
=========================================
+ Hits 181 36663 +36482
- Misses 23 4495 +4472
- Partials 10 209 +199
Flags with carried forward coverage won't be shown. Click here to find out more. |
0e90e21
to
8945bd7
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.
👍
services/catalog/src/simcore_service_catalog/db/repositories/services.py
Outdated
Show resolved
Hide resolved
services/catalog/src/simcore_service_catalog/exceptions/handlers/__init__.py
Outdated
Show resolved
Hide resolved
services/catalog/tests/unit/with_dbs/test_api_routes_services__list.py
Outdated
Show resolved
Hide resolved
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, nothing scary caught my eye. ful discloser i didnt read through all the unit-test changes 🙏
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.
please check the cancellation decorator. I find weird to place it after the cached one
services/catalog/src/simcore_service_catalog/api/routes/services.py
Outdated
Show resolved
Hide resolved
services/catalog/src/simcore_service_catalog/core/background_tasks.py
Outdated
Show resolved
Hide resolved
services/catalog/src/simcore_service_catalog/db/repositories/projects.py
Outdated
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
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 cool! Thanks a lot.
Just left a few suggestions
services/catalog/src/simcore_service_catalog/api/routes/services_resources.py
Show resolved
Hide resolved
Thanks 👍 |
What do these changes do?
This is a large cleanup refactoring of
catalog
before modifying its functionality for the related issues mentioned below.Highlights
Annotation
secho-envfile
env-devel
andextra-docker-compose.yaml
Makefile
and service CLI withecho-envfile
commandREADME
services/catalog/src/simcore_service_catalog/core/background_tasks.py
- enhanced and reduced tests fixtures by using
pytest_simcore
assetsRelated issue/s
version_display
andrelease_date
fields for service metadata #5902How to test
cd services/catalog make install-dev make test-dev-unit
Dev-ops checklist
CATALOG_BACKGROUND_TASK_REST_TIME
was missing