Skip to content

Add "GitLab Team Member" badge to epic headers

What does this MR do?

See #212259 (closed)

Part of a larger effort to help users identify when they are communicating with a "GitLab Team Member".

Screenshots

Page Before After
Epic gdk.localhost_3443_groups_gma-group_-epics_1__1 Screen_Shot_2020-04-09_at_3.13.20_PM
Epic Mobile gdk.localhost_3443_groups_gma-group_-epics_1_iPhone_6_7_8___2 Screen_Shot_2020-04-09_at_3.14.14_PM

Local Testing

  1. Enable :gitlab_employee_badge feature flag.
    • bin/rails console
    • Feature.enable(:gitlab_employee_badge)
  2. In lib/gitlab.rb change self.com? to return true
  3. Install an EE license. See https://about.gitlab.com/handbook/developer-onboarding/#working-on-gitlab-ee.
  4. Create a user with a @gitlab.com email address
  5. Navigate to a Group and create an Epic

Note: You may need to run gdk restart because of the caching on app/models/user.rb

Related MRs

This MR is dependent on

Other related MRs

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] 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