Skip to content

Refactor analytics data sources

Elwyn Benson requested to merge refactor-data-sources into master

What does this MR do and why?

Data sources are now a class, and panels_base gets an instance of it to run requests against.

This is in preparation for an upcoming iteration which requires data sources to contain some state, for dealing with duplicated requests, as well as enabling additional functionality such as data sources destroying cleanly.

# MR status
1️⃣ Fix race condition when changing dashboard filt... (!152021 - merged) workflowcomplete
2️⃣ Refactor analytics data sources (!152022 - merged) <-- you are here
3️⃣ Cancel duplicate network requests when filterin... (!151603 - closed)

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

No visual differences.

How to set up and validate locally

  1. Follow these instructions to setup Product Analytics in GDK.
  2. Onboard Product Analytics by setting up the feature at Project > Analytics > Analytics dashboards.
  3. Generate some events for this project so your dashboards have data.
  4. View a dashboard, and verify all data is fetched and displayed as expected.
Edited by Elwyn Benson

Merge request reports