Provide complete safe current user entity to frontend
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Currently, the gon object only contains current_user.id, current_user.username, current_user.name. For gitlab-ce#32464, gitlab-ce#22921 and gitlab-ce#30468 we need the current user's avatar. So we should instead serialize the complete UserEntity / API::Entities::UserBasic to gon.
Edited by 🤖 GitLab Bot 🤖