Skip to content

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

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

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

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.3:

Questions ?

Please refer to the Backport tool documentation

…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.3/pr-259517 branch from 5e7af47 to 761dde8 Compare April 3, 2026 13:48
@kibanamachine kibanamachine merged commit c0c8e71 into elastic:9.3 Apr 3, 2026
14 checks passed
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
unifiedSearch 395.2KB 395.4KB +220.0B
Unknown metric groups

References to deprecated APIs

id before after diff
unifiedSearch 11 13 +2

cc @georgianaonoleata1904

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.

3 participants