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
- With a local checkout, run
bin/rake geo:dev:ssf_metrics
- Verify there are no changes to
ee/config/metrics/object_schemas/geo_node_usage.json
- Add a fake value to
RESOURCE_STATUS_FIELDS
inee/app/models/geo_node_status.rb
and re-runbin/rake geo:dev:ssf_metrics
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #388353 (closed)
Edited by Ian Baum