Skip to content

[9.2] [ResponseOps][MaintenanceWindow] Add filter button of DSL filter throws error on create/edit MWs (#259517)#261138

Merged
kibanamachine merged 1 commit intoelastic:9.2from
kibanamachine:backport/9.2/pr-259517
Apr 3, 2026
Merged

[9.2] [ResponseOps][MaintenanceWindow] Add filter button of DSL filter throws error on create/edit MWs (#259517)#261138
kibanamachine merged 1 commit intoelastic:9.2from
kibanamachine:backport/9.2/pr-259517

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.2:

Questions ?

Please refer to the Backport tool documentation

@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Apr 3, 2026
@kibanamachine kibanamachine enabled auto-merge (squash) April 3, 2026 13:48
…ws error on create/edit MWs (elastic#259517)

Closes elastic#259514

## Summary

Fix crash in FilterEditor when submitting a Query DSL filter with no
index patterns available. getFilterFromQueryDsl accessed
indexPatterns[0].id without guarding against an empty array.
- fixed also: filter not being displayed after creation, two separate
guards were preventing DSL filter pills from rendering in Maintenance
Windows (where indexPatterns / dataViews is an empty array):
- fixed also edit added filter: indexPattern?.getName() fails because
getName() is a method on the DataView class, not on plain DataViewBase
objects. Fixed by using optional call getName?.() with fallbacks to name
and title.

Related to: elastic#256622

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit f6c8369)
@kibanamachine kibanamachine force-pushed the backport/9.2/pr-259517 branch from 6648eea to 3096a72 Compare April 3, 2026 13:48
@kibanamachine kibanamachine merged commit 0cbaae7 into elastic:9.2 Apr 3, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants