Fixing Avatar in WebIDE Statusbar showing wrong Avatar for current_user
What does this MR do?
Closes: #31638 (closed)
This MR adds functionality to make sure the current_users
avatar will correctly be used in the status bar at the bottom of the IDE. There was a big disconnect to be able to connect a commit to the current user, so I added support for the current users email to gon
and use it to retrieve the proper avatar url. Alongside I introduced a new computed property on the IDE status bar component to be explicit about selecting the right user avatar.
While doing this I simplified some of the JS code to be easier to follow and more explicit.
Screenshots
Does this MR meet the acceptance criteria?
Conformity
Availability and Testing
Added specs on JS side, did not find specs around the Gon
assignments on the backend.
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process.
Edited by Roman Kuba