Add links to automated analytics

Using the git submodule method for reading experiments_registry.yaml from https://gitlab.wikimedia.org/repos/product-analytics/experimentation-lab/experiment-analytics-configs, this MR provides automated analytics links for registered experiments.

It adds conditional rendering of copy and links to automated analytics results in the list (catalog) and read views of experiments:

  • Adds a /registered-experiments route for frontend access to an array of registered experiments' names (slugs in xLab)
  • Adds an API call to the experiment registry to create an array of registered experiments' names
  • Adds a utility function to create the native filters param for generating the link to the automated analytics results in Superset
  • Updates the experiment store to track registered experiments and to append the analytics uri when setting/augmenting a given experiment for the Read view of an experiment
  • Updates the List view by conditionally rendering the View results item in an experiment's action menu
  • Adds the js-yaml npm package for parsing the experiment registry yaml file

List view - link to registered experiment in Superset:
Screenshot_2025-07-15_at_11.28.00_PM

List view - link to documentation for unregistered experiment:
Screenshot_2025-07-15_at_11.29.57_PM

List view - no link to results for instruments:
Screenshot_2025-07-15_at_11.31.45_PM

Read view - link to registered experiment that has been started in Superset:
Screenshot_2025-07-15_at_11.34.08_PM

Read view - link to registered experiment that has NOT been started in Superset:
Screenshot_2025-07-15_at_11.38.22_PM

Read view - link to register for unregistered experiment:
Screenshot_2025-07-15_at_11.40.29_PM

Read view - no results section for instruments:
Screenshot_2025-07-15_at_11.43.12_PM

Testing Instructions:

  • Check the experiment registry and using one of the existing experiment slugs, update the machine-readable name of an experiment on your local to a machine-readable name of one of the registered experiments.
  • Make sure the experiment is active and that the start date is in the past while the end date is in the future (probably need to update via SQL on the backend)
  • Navigate to the List view and hover over the action menu for that experiment
  • Navigate to the Read view of that experiment

Bug: T394527

Edited by Clare Ming

Merge request reports

Loading