Skip to content

Analytics visualization designer: fail gracefully when error

What does this MR do and why?

Look for errors on the CubeJS responses, and display a user friendly error message when data fails to load.

Screenshots or screen recordings

before after
image image

How to set up and validate locally

  1. Install the product analytics devkit and connect to your GDK by following the instructions here: https://gitlab.com/gitlab-org/analytics-section/product-analytics/devkit

  2. Visit the visualisation designer: http://gdk.test:3000/gitlab-org/gitlab-shell/-/analytics/dashboards/visualization-designer

  3. Disable your network within devtools in order to simulate an error, or block the endpoint, or modify the backend to throw

  4. Click metric: Page Views -> All Pages

  5. Request fails, error is now shown

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 #398407 (closed)

Edited by Elwyn Benson

Merge request reports