Watcher Threshold Alert creates empty order in terms agg, throws errors #53974
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Watcher
regression
Team:Kibana Management
Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more
Kibana version: 7.5
Elasticsearch version: 7.5
Server OS version:
Browser version: Chrome 79.0.3945.88
Browser OS version:
Original install method (e.g. download page, yum, from source, etc.): tarball/yum
Describe the bug: When creating a threshold watch via Kibana / Management / Watcher / Threshold alert and it will successfully create, but won't run due to an empty order setting in the terms aggregation.
Steps to reproduce:
If I take the aggregation to Dev Tools and remove the "order": {} (or set an order to _key) and run it against the same index it'll work fine. In its current state it yields the following error in the watch and in Dev Tools:
Expected behavior: Since there is no option to configure a sort order in the creation of the threshold watch, I'd expect there to be a safeguard to prevent creating an empty value for a setting that requires one. (not saying that in an arrogant way)
Screenshots (if relevant):
Errors in browser console (if relevant):
Provide logs and/or server output (if relevant):
Any additional context:
The text was updated successfully, but these errors were encountered: