Skip to content

Fix user popovers in design management discussions

📖 What does this MR do?

Related to #335936 (closed)

Fixes user popovers in design management discussions. Currently when you hover over a user's name in a design discussion the user popover is shown but the user info is never displayed. This is because the user popover relies on a data-user-id attribute but that attribute was set to a GraphQL ID. This MR uses getIdFromGraphQLId to set data-user-id to a non GraphQL ID.

💻 Local testing

  1. Setup LFS using https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/doc/howto/object_storage.md
  2. Create a project
  3. Create an issue in that project
  4. Upload a design
  5. Start a discussion on that design
  6. Hover over the user's name in the discussion

📹 Videos

Before After
Screen_Recording_2021-07-12_at_10.15.47_PM Screen_Recording_2021-07-12_at_10.14.54_PM

🚦 Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team
Edited by Peter Hegman

Merge request reports

Loading