Skip to content

Commit 1d97ba2

Browse files
committed
@sanderegg review: relative imports, doc, private
1 parent 25644dd commit 1d97ba2

File tree

3 files changed

+12
-12
lines changed
  • packages
  • services/catalog/src/simcore_service_catalog/repository

3 files changed

+12
-12
lines changed

packages/models-library/src/models_library/services_regex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from types import MappingProxyType
33
from typing import Final
44

5-
from models_library.services_enums import ServiceType
5+
from .services_enums import ServiceType
66

77
PROPERTY_TYPE_RE = r"^(number|integer|boolean|string|ref_contentSchema|data:([^/\s,]+/[^/\s,]+|\[[^/\s,]+/[^/\s,]+(,[^/\s]+/[^/,\s]+)*\]))$"
88
PROPERTY_TYPE_TO_PYTHON_TYPE_MAP = {

packages/service-library/src/servicelib/rabbitmq/rpc_interfaces/catalog/services.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
"""RPC client-side for the RPC server at the payments service"""
1+
"""RPC client-side for the RPC server at the payments service
2+
3+
In this interface (and all belows), the context of the caller is passed in the following arguments:
4+
- `user_id` is intended for the caller's identifer. Do not add other user_id that is not the callers!.
5+
- Ideally this could be injected by an authentication layer (as in the rest API)
6+
but for now we are passing it as an argument.
7+
- `product_name` is the name of the product at the caller's context as well
8+
9+
"""
210

311
import logging
412
from typing import cast
@@ -32,14 +40,6 @@
3240

3341
_logger = logging.getLogger(__name__)
3442

35-
#
36-
# In this interface, the context of the caller is passed in the following arguments:
37-
# - `user_id` is intended for the caller's identifer. Do not add other user_id that is not the callers!.
38-
# - Ideally this could be injected by an authentication layer (as in the rest API)
39-
# but for now we are passing it as an argument.
40-
# - `product_name` is the name of the product at the caller's context as well
41-
#
42-
4343

4444
@validate_call(config={"arbitrary_types_allowed": True})
4545
async def list_services_paginated( # pylint: disable=too-many-arguments

services/catalog/src/simcore_service_catalog/repository/services.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
from ._services_sql import (
4848
SERVICES_META_DATA_COLS,
4949
AccessRightsClauses,
50-
apply_services_filters,
50+
_apply_services_filters,
5151
by_version,
5252
can_get_service_stmt,
5353
get_service_history_stmt,
@@ -514,7 +514,7 @@ async def get_service_history_page(
514514
)
515515

516516
if filters:
517-
base_stmt = apply_services_filters(base_stmt, filters)
517+
base_stmt = _apply_services_filters(base_stmt, filters)
518518

519519
base_subquery = base_stmt.subquery()
520520

0 commit comments

Comments
 (0)