feat(ui): deduplicate silences

If all alerts in a group are silenced and the same silence ID is used for all of them then there's no point in rendering silence object for each of the alerts, since they are all identical. Move the silence rendering to the footer if that happens so we save screen space
This commit is contained in:
Łukasz Mierzwa
2019-03-08 17:41:22 +00:00
parent 6ebc88b0ba
commit 41cca9e501
16 changed files with 319 additions and 32 deletions

View File

@@ -44,7 +44,8 @@ const APIGroup = PropTypes.exact({
}),
shared: PropTypes.exact({
annotations: PropTypes.arrayOf(Annotation).isRequired,
labels: PropTypes.object.isRequired
labels: PropTypes.object.isRequired,
silences: PropTypes.object.isRequired
}).isRequired
});