Skip to content

Add retry button to analytics dashboard panel errors

What does this MR do and why?

Add a retry button on panel error popovers that refetches the visualization data when a user clicks on it.

Screenshots or screen recordings

Before After After (recording)
image image Kapture_2023-08-03_at_16.17.01

|

How to set up and validate locally

  1. Follow these instructions to setup Product Analytics in GDK.
  2. Onboard a project at Project -> Analyze -> Analytics dashboards
  3. View a dashboard, and verify the panel empty state is in the updated style
  4. Now cause some panels to fail to load
  • An easy way to do this is to temporarily modify a built in visualization, e.g. ee/lib/gitlab/analytics/product_analytics/visualizations/sessions_over_time.yaml and change the measure to some invalid value, so the query will fail.
  1. Verify the new error state is shown, and the panel has a popover including a link to the troubleshooting docs

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #418009 (closed)

Merge request reports