Skip to content

Add badge to Contribution Analytics header when using ClickHouse

What does this MR do and why?

Appends a badge to the Contribution Analytics page header when the ClickHouse data store is being used. When hovered over, it displays a popover with additional information.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Screenshot 2024-02-13 at 6.16.54 PM.png Screenshot 2024-02-14 at 6.35.49 PM.png

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Please make sure that you have a GitLab Ultimate license.
  2. Feature.enable(:clickhouse_data_collection)
  3. Visit any group's Contribution Analytics page: http://${LOCAL_INSTANCE}/groups/${GROUP_PATH}/-/contribution_analytics
  4. Optional: To load contribution data, ensure that Clickhouse is configured: https://docs.gitlab.com/ee/development/database/clickhouse/clickhouse_within_gitlab.html
    • For prepping the DB schema you can invoke: bundle exec rake gitlab:clickhouse:migrate
  5. Verify that the badge appears next to the page header, and that the popover appears upon hovering over it

Related to #441483 (closed)

Edited by Rudy Crespo

Merge request reports