Skip to content

Resolve fetch custom dashboard files error

What does this MR do and why?

This MR resolves a bug that occurs when custom dashboard files are loaded on the analytics dashboards list and dashboard view.

The API returns an HTML response when trying to get the list of files on an empty repository, this updates the client to filter out non array responses.

Related issue [Bug] Fetching custom dashboard files from an e... (#413511 - closed).

Screenshots or screen recordings

Before After
image image

How to set up and validate locally

  1. Follow these instructions to set up Product Analytics in your GDK.
  2. Create a new project with an empty repository.
  3. Enable custom dashboards at Project > Settings > Analytics and pick the empty project.
  4. View the analytics dashboards at Project > Analytics > Dashboard.
  5. Observe the (lack of) errors in your browser console.

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

Merge request reports