f40a6bbeb7c2616de351f2d0fcb927f606165017,apps/domain/src/main/core/services/user_service.py,,get_user_msg,#Any#Any#,198
Before Change
user_id=_current_user_id
)
if _success:
user = node.users.query(id=_user_id)[0]
elif node.users.contain(id=_user_id):
_msg = "User ID not found!"
else:
_msg = "You"re not allowed to get User information!"
if _success:
_msg = model_to_json(user)
else:
_msg_field = "error"
After Change
user = users.first(id=_user_id)
_msg = model_to_json(user)
else:
raise AuthorizationError("You"re not allowed to get User information!")
return GetUserResponse(
address=msg.reply_to,
status_code=200,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: OpenMined/Grid
Commit Name: f40a6bbeb7c2616de351f2d0fcb927f606165017
Time: 2021-02-10
Author: ionesiojr@gmail.com
File Name: apps/domain/src/main/core/services/user_service.py
Class Name:
Method Name: get_user_msg
Project Name: OpenMined/Grid
Commit Name: f40a6bbeb7c2616de351f2d0fcb927f606165017
Time: 2021-02-10
Author: ionesiojr@gmail.com
File Name: apps/domain/src/main/core/services/user_service.py
Class Name:
Method Name: get_all_users_msg
Project Name: OpenMined/Grid
Commit Name: f40a6bbeb7c2616de351f2d0fcb927f606165017
Time: 2021-02-10
Author: ionesiojr@gmail.com
File Name: apps/domain/src/main/core/services/user_service.py
Class Name:
Method Name: del_user_msg