File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
services/web/server/src/simcore_service_webserver/users Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 2222)
2323from simcore_service_webserver .users ._schemas import (
2424 PreUserProfile ,
25+ SearchQueryParams ,
2526 UserProfile ,
26- _SearchQueryParams ,
2727)
2828from simcore_service_webserver .users ._tokens_handlers import _TokenPathParams
2929from simcore_service_webserver .users .schemas import (
@@ -147,7 +147,7 @@ async def list_user_permissions():
147147 "po" ,
148148 ],
149149)
150- async def search_users (_params : Annotated [_SearchQueryParams , Depends ()]):
150+ async def search_users (_params : Annotated [SearchQueryParams , Depends ()]):
151151 # NOTE: see `Search` in `Common Custom Methods` in https://cloud.google.com/apis/design/custom_methods
152152 ...
153153
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class UsersRequestContext(BaseModel):
3131 product_name : str = Field (..., alias = RQ_PRODUCT_KEY ) # type: ignore[literal-required]
3232
3333
34- class _SearchQueryParams (BaseModel ):
34+ class SearchQueryParams (BaseModel ):
3535 email : str = Field (
3636 min_length = 3 ,
3737 max_length = 200 ,
Original file line number Diff line number Diff line change 1818from ..utils_aiohttp import envelope_json_response
1919from . import _users_service , api
2020from ._constants import FMSG_MISSING_CONFIG_WITH_OEC
21- from ._schemas import PreUserProfile , UsersRequestContext , _SearchQueryParams
21+ from ._schemas import PreUserProfile , SearchQueryParams , UsersRequestContext
2222from .exceptions import (
2323 AlreadyPreRegisteredError ,
2424 MissingGroupExtraPropertiesForProductError ,
@@ -100,8 +100,8 @@ async def search_users(request: web.Request) -> web.Response:
100100 req_ctx = UsersRequestContext .model_validate (request )
101101 assert req_ctx .product_name # nosec
102102
103- query_params : _SearchQueryParams = parse_request_query_parameters_as (
104- _SearchQueryParams , request
103+ query_params : SearchQueryParams = parse_request_query_parameters_as (
104+ SearchQueryParams , request
105105 )
106106
107107 found = await _users_service .search_users (
You can’t perform that action at this time.
0 commit comments