Move incident metrics logic to shared location
Related to #340852 (closed)
This moves the metric image component & related files into a shared location, in preparation of frontend code for metric image uploading for Alerts.
Changes include:
- Make the Store & actions etc generic (use
modelId
), and normalise toissueId
at the latest stage). - Externalise the service from actions.js and allow service to be passed in via a factory.
- Rename
MetricImage
toMetricImageTable
to better describe it.
To test
- Install a Premium or higher license.
- Navigate to the incident list (Monitor -> Incidents)
- Create a new incident.
- View the incident, navigate to the Metrics tab.
Edited by Tristan Read