elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.6k stars 8.21k forks source link

[RAM] Implement a filter in the Rules List for rules that are currently snoozed #150113

Open Zacqary opened 1 year ago

Zacqary commented 1 year ago

(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 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.

elasticmachine commented 1 year ago

Pinging @elastic/response-ops (Team:ResponseOps)