Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 1004 Bytes

common-tasks.md

File metadata and controls

12 lines (8 loc) · 1004 Bytes

Common Tasks

Adding scope filters

  • Adjust WMArchive.Service.Data.WMAData.validate to validate the additional query argument with a regular expression as detailed in the Performance data REST endpoint documentation.
  • Adjust WMArchive.Storage.MongoIO.MongoStorage.performance by adding the scope filter to the valid scope_keys.
  • Adjust WMArchive/src/js/models/scope.js by adding the scope filter to app.Scope.filters and a default value to app.Scope.defaults as detailed in the Performance UI architecture documentation.

Changing metrics

  • Check the value of the WMARCHIVE_PERF_METRICS environment variable at runtime of the server. It may point to WMArchive/src/maps/metrics.json.
  • Edit the file with your changes. Refer to Report 011 for details and make sure to test the server with your changes since the UI relies on this information.