Skip to content

Commit a2859ef

Browse files
committed
rename
1 parent d37149b commit a2859ef

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

api/specs/web-server/_users.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
)
2323
from simcore_service_webserver.users._schemas import (
2424
PreUserProfile,
25+
SearchQueryParams,
2526
UserProfile,
26-
_SearchQueryParams,
2727
)
2828
from simcore_service_webserver.users._tokens_handlers import _TokenPathParams
2929
from 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

services/web/server/src/simcore_service_webserver/users/_schemas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

services/web/server/src/simcore_service_webserver/users/_users_rest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from ..utils_aiohttp import envelope_json_response
1919
from . import _users_service, api
2020
from ._constants import FMSG_MISSING_CONFIG_WITH_OEC
21-
from ._schemas import PreUserProfile, UsersRequestContext, _SearchQueryParams
21+
from ._schemas import PreUserProfile, SearchQueryParams, UsersRequestContext
2222
from .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(

0 commit comments

Comments
 (0)