Skip to content

Geo: Add rake task to automatically generate geo_node_usage.json

What does this MR do and why?

Switch to generating the file ee/config/metrics/object_schemas/geo_node_usage.json from a rake task rather than manually updating.

How to set up and validate locally

  1. With a local checkout, run bin/rake geo:dev:ssf_metrics
  2. Verify there are no changes to ee/config/metrics/object_schemas/geo_node_usage.json
  3. Add a fake value to RESOURCE_STATUS_FIELDS in ee/app/models/geo_node_status.rb and re-run bin/rake geo:dev:ssf_metrics
  4. Verify that ee/config/metrics/object_schemas/geo_node_usage.json is updated with the fake value

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

Edited by Ian Baum

Merge request reports