-
Notifications
You must be signed in to change notification settings - Fork 32
🎨 Exposes get_service_ports to rpc interface of the catalog simcore-service
#7558
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
🎨 Exposes get_service_ports to rpc interface of the catalog simcore-service
#7558
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7558 +/- ##
==========================================
+ Coverage 87.61% 87.65% +0.04%
==========================================
Files 1758 1752 -6
Lines 68131 67987 -144
Branches 1124 1124
==========================================
- Hits 59690 59594 -96
+ Misses 8132 8084 -48
Partials 309 309
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
get_service_ports to rpc interface of the catalog simcore-service
5685941 to
b199f28
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.
Pull Request Overview
This PR exposes the get_service_ports functionality to the RPC interface of the catalog simcore-service. Key changes include:
- Replacing direct calls to legacy service functions with calls to catalog_rpc.get_service_ports in both tests and service layers.
- Introducing new functions in the service manifest and catalog_services modules to retrieve ports.
- Updating API endpoints, RPC client interfaces, and related tests/mocks to support the new service ports retrieval.
Reviewed Changes
Copilot reviewed 16 out of 17 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| services/catalog/tests/unit/with_dbs/test_api_rpc.py | Updated tests to call catalog_rpc.* functions and added tests for get_service_ports. |
| services/catalog/tests/unit/test_service_manifest.py | Adjusted fixtures and tests to validate the new service ports retrieval. |
| services/catalog/src/simcore_service_catalog/service/manifest.py | Added get_service_ports function to extract input/output ports from a service. |
| services/catalog/src/simcore_service_catalog/service/catalog_services.py | Updated service queries to use new get_user_services_ports function wrapping the manifest. |
| services/catalog/src/simcore_service_catalog/api/rpc/_services.py | Exposed get_service_ports via the RPC interface. |
| services/api-server/* | Updated tests and endpoint implementations to incorporate the new get_service_ports functionality. |
| packages/service-library and pytest-simcore | Enhanced mocks and RPC interface definitions to include get_service_ports support. |
| packages/models-library | Renamed port conversion method from from_service_io to from_domain_model for consistency. |
Files not reviewed (1)
- services/catalog/openapi.json: Language not supported
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.
Good.
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
packages/service-library/src/servicelib/rabbitmq/rpc_interfaces/catalog/services.py
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.
Thanks! Please check my comments.
packages/models-library/src/models_library/api_schemas_catalog/services_ports.py
Show resolved
Hide resolved
packages/service-library/src/servicelib/rabbitmq/rpc_interfaces/catalog/services.py
Show resolved
Hide resolved
services/api-server/src/simcore_service_api_server/services_rpc/catalog.py
Show resolved
Hide resolved
services/catalog/src/simcore_service_catalog/api/rpc/_services.py
Outdated
Show resolved
Hide resolved
services/catalog/src/simcore_service_catalog/service/catalog_services.py
Show resolved
Hide resolved
services/catalog/src/simcore_service_catalog/service/catalog_services.py
Show resolved
Hide resolved
services/catalog/src/simcore_service_catalog/service/catalog_services.py
Outdated
Show resolved
Hide resolved
services/catalog/src/simcore_service_catalog/service/catalog_services.py
Outdated
Show resolved
Hide resolved
1df3f65 to
492c9f5
Compare
|
@mergify queue |
🟠 Waiting for conditions to match
|
…ng service inputs and outputs
…for a specific service version
… a specific service version
…ports for a specific service version with error handling
…rresponding tests
…nd update corresponding tests
…ssions and update permission handling
fcc5c78 to
934b1ef
Compare
|



What do these changes do?
Exposes
get_service_portsto rpc interface of thecatalogsimcore-serviceThese are all the parts modified in this PR:

catalogsimcore-serviceservicelibpytest_simcoreapi-serversimcore-serviceapi-serversimcore-serviceNOTE: that the rest API in
catalogsimcore-service is still in use but some of the entrypoints could be slowly being replaced by the rpc API implementations.Related issue/s
How to test
Dev-ops
None