-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reintroduce missing custom metrics and metadata to device page. #1578
Reintroduce missing custom metrics and metadata to device page. #1578
Conversation
Thanks for including the screenshot. I would recommend not showing custom metrics in the health section on the Device show page as it will mess with formatting. Can we keep custom metrics on the Device Metrics page only? |
As clarified on Slack, this restores functionality that was broken with metrics-changes. It needs to be nicer in the next iteration of the UI. But it does matter. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I approve this under duress 😆
I would prefer if we remove the "stop saving firmware metadata" bit from this part for now. That's mixing two different topics. That merge is intentional and at some point I can explain more of my thinking there. It may turn out to be unnecessary but I think it will be helpful to have. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small thing about that merge bit.
Thanks for fixing the thing :)
# Separate metrics from health report to store in metrics table | ||
metrics = device_status["metrics"] | ||
|
||
health_report = | ||
device_status | ||
|> Map.delete("metrics") | ||
|> Map.put("metadata", Map.merge(device_status["metadata"], device_meta)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather this not be in this PR :)
Also stop saving firmware metadata on device health.
d291fac
to
9e9f320
Compare
Thank you very much ✨ |
Also stop saving firmware metadata on device health.