Skip to content

Fixing Avatar in WebIDE Statusbar showing wrong Avatar for current_user

Roman Kuba requested to merge rk/31638-fix-avatar-for-current-user into master

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

Pasted_Image_13_12_19__16_59

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.

Edited by Roman Kuba

Merge request reports