The Rules List is only currently capable of filtering down rules that have a scheduled snooze defined, but isn't able to show the user a list of rules that are currently snoozed.
This is a bit of a complicated problem to solve. The Rules List is populated by a single Elasticsearch query, meaning all filters we apply have to be Elasticsearch filter queries. Unfortunately, determining if a rule is currently snoozed requires us to parse the RRULE that defines the snooze.
We have a library for parsing RRULE in Javascript, but Elasticsearch doesn't implement RRULE, and writing a parsing script isn't trivial, hence why there are entire libraries devoted to handling it.
If we want to apply this filter at the JS level, we need to figure out a way to do it without breaking pagination.
(Reopen of https://github.com/elastic/kibana/issues/138014)
The Rules List is only currently capable of filtering down rules that have a scheduled snooze defined, but isn't able to show the user a list of rules that are currently snoozed.
This is a bit of a complicated problem to solve. The Rules List is populated by a single Elasticsearch query, meaning all filters we apply have to be Elasticsearch filter queries. Unfortunately, determining if a rule is currently snoozed requires us to parse the
RRULE
that defines the snooze.We have a library for parsing
RRULE
in Javascript, but Elasticsearch doesn't implementRRULE
, and writing a parsing script isn't trivial, hence why there are entire libraries devoted to handling it.If we want to apply this filter at the JS level, we need to figure out a way to do it without breaking pagination.