Skip to content

Expand domains in /api/v1/experiments?authority=varnish response

Use our copy of the same data that is used to populate the canonical_data.wikis table to generate a map of DB name to default and mobile (so-called "mdot" domains) when the app is started. Use that map to:

  1. Include mobile domains in the response; and
  2. Expand the default sample size to all open, visible wikis if it is greater than zero

Since the data is a TSV file, add csv-parse as a dependency. csv-parse@5.6.0 is a popular, dependency-free CSV parser with no known security vulnerabilities (confirmed with npm audit and with Snyk)

Supporting changes:

  • Also generate a map of DB name to English name and use it in module:util/actionAPI~findWikis()
  • Add the repository that the data is in as a git submodule so it's easier to track and integrate changes

Bug: T395922

Edited by Phuedx

Merge request reports

Loading