Skip to content

Commit ea59980

Browse files
committed
@odeimaiz review: missing field
1 parent 3de5949 commit ea59980

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

services/web/server/src/simcore_service_webserver/users/_common/models.py

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ class ToUserUpdateDB(BaseModel):
5555
first_name: str | None = None
5656
last_name: str | None = None
5757

58+
privacy_hide_username: bool | None = None
5859
privacy_hide_fullname: bool | None = None
5960
privacy_hide_email: bool | None = None
6061

services/web/server/tests/unit/isolated/test_users_models.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def test_mapping_update_models_from_rest_to_db():
127127
{
128128
"first_name": "foo",
129129
"userName": "foo1234",
130-
"privacy": {"hideFullname": False},
130+
"privacy": {"hideFullname": False, "hideUsername": True},
131131
}
132132
)
133133

@@ -139,6 +139,7 @@ def test_mapping_update_models_from_rest_to_db():
139139
"first_name": "foo",
140140
"name": "foo1234",
141141
"privacy_hide_fullname": False,
142+
"privacy_hide_username": False,
142143
}
143144

144145

0 commit comments

Comments
 (0)