[9.0] feat(slo): add saved query (#215566) (#215595)

# Backport

This will backport the following commits from `main` to `9.0`:
- [feat(slo): add saved query
(#215566)](https://github.com/elastic/kibana/pull/215566)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Kevin
Delemme","email":"kevin.delemme@elastic.co"},"sourceCommit":{"committedDate":"2025-03-21T23:45:53Z","message":"feat(slo):
add saved query (#215566)\n\nResolves
https://github.com/elastic/kibana/issues/214478\n\n## Summary\n\nAdd
options to save query and load saved query to the various\nQueryBuilder
used in the SLO
form.\n\n\n\nhttps://github.com/user-attachments/assets/dbc614a9-add1-4781-b577-e5abc2b8ea24","sha":"f5424e0c51668bdc7f81575abb5366347beb9c02","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:obs-ux-management","backport:version","v9.1.0","v8.19.0","v8.18.1","v8.17.4"],"title":"feat(slo):
add saved
query","number":215566,"url":"https://github.com/elastic/kibana/pull/215566","mergeCommit":{"message":"feat(slo):
add saved query (#215566)\n\nResolves
https://github.com/elastic/kibana/issues/214478\n\n## Summary\n\nAdd
options to save query and load saved query to the various\nQueryBuilder
used in the SLO
form.\n\n\n\nhttps://github.com/user-attachments/assets/dbc614a9-add1-4781-b577-e5abc2b8ea24","sha":"f5424e0c51668bdc7f81575abb5366347beb9c02"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.x","8.18","8.17"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/215566","number":215566,"mergeCommit":{"message":"feat(slo):
add saved query (#215566)\n\nResolves
https://github.com/elastic/kibana/issues/214478\n\n## Summary\n\nAdd
options to save query and load saved query to the various\nQueryBuilder
used in the SLO
form.\n\n\n\nhttps://github.com/user-attachments/assets/dbc614a9-add1-4781-b577-e5abc2b8ea24","sha":"f5424e0c51668bdc7f81575abb5366347beb9c02"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

---------

Co-authored-by: Kevin Delemme <kevin.delemme@elastic.co>
This commit is contained in:
Kibana Machine 2025-03-24 16:45:47 +01:00 committed by GitHub
parent 9eacca23e1
commit 2d53e251aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -158,6 +158,7 @@ export const QuerySearchBar = memo(
disableQueryLanguageSwitcher={true}
onClearSavedQuery={() => {}}
filters={kqlQuerySchema.is(field.value) ? [] : field.value?.filters ?? []}
allowSavingQueries={true}
/>
</div>
</EuiFormRow>