mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
# Backport This will backport the following commits from `main` to `8.10`: - [[Query Rules] Fix dev tools AutoComplete (#166110)](https://github.com/elastic/kibana/pull/166110) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Kathleen DeRusso","email":"kathleen.derusso@elastic.co"},"sourceCommit":{"committedDate":"2023-09-11T13:26:35Z","message":"[Query Rules] Fix dev tools AutoComplete (#166110)\n\n## Summary\r\n\r\nResolves some inconsistencies between the query rules API definitions in\r\nElasticsearch and adds some convenience auto-fills:\r\n\r\n- Corrects `value` to `values` to be aligned with our rest api spec and\r\nclients\r\n<img width=\"443\" alt=\"Screenshot 2023-09-08 at 1 56 06 PM\"\r\nsrc=\"5d89115a
-9f75-48a9-84a9-0670910759f4\">\r\n\r\n\r\n- Autofills \"pinned\" as the default rule type\r\n\r\n862bdb1e
-31d1-4a8e-8d72-6d30a0d1506e\r\n\r\n\r\n- Provides a drop down list of available criteria types: \r\n<img width=\"519\" alt=\"Screenshot 2023-09-08 at 1 55 49 PM\"\r\nsrc=\"0c46670b
-55a2-47ff-a025-19bac3e62dda\">\r\n\r\n\r\n- Supports auto-filling `rule_query` in searches\r\n\r\n0ce980e8
-0178-44e8-8cd9-3f776732df22\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"cffe32279f5fd4941820d129285581a9c1d7c86e","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v8.11.0","v8.10.1"],"number":166110,"url":"https://github.com/elastic/kibana/pull/166110","mergeCommit":{"message":"[Query Rules] Fix dev tools AutoComplete (#166110)\n\n## Summary\r\n\r\nResolves some inconsistencies between the query rules API definitions in\r\nElasticsearch and adds some convenience auto-fills:\r\n\r\n- Corrects `value` to `values` to be aligned with our rest api spec and\r\nclients\r\n<img width=\"443\" alt=\"Screenshot 2023-09-08 at 1 56 06 PM\"\r\nsrc=\"5d89115a
-9f75-48a9-84a9-0670910759f4\">\r\n\r\n\r\n- Autofills \"pinned\" as the default rule type\r\n\r\n862bdb1e
-31d1-4a8e-8d72-6d30a0d1506e\r\n\r\n\r\n- Provides a drop down list of available criteria types: \r\n<img width=\"519\" alt=\"Screenshot 2023-09-08 at 1 55 49 PM\"\r\nsrc=\"0c46670b
-55a2-47ff-a025-19bac3e62dda\">\r\n\r\n\r\n- Supports auto-filling `rule_query` in searches\r\n\r\n0ce980e8
-0178-44e8-8cd9-3f776732df22\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"cffe32279f5fd4941820d129285581a9c1d7c86e"}},"sourceBranch":"main","suggestedTargetBranches":["8.10"],"targetPullRequestStates":[{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/166110","number":166110,"mergeCommit":{"message":"[Query Rules] Fix dev tools AutoComplete (#166110)\n\n## Summary\r\n\r\nResolves some inconsistencies between the query rules API definitions in\r\nElasticsearch and adds some convenience auto-fills:\r\n\r\n- Corrects `value` to `values` to be aligned with our rest api spec and\r\nclients\r\n<img width=\"443\" alt=\"Screenshot 2023-09-08 at 1 56 06 PM\"\r\nsrc=\"5d89115a
-9f75-48a9-84a9-0670910759f4\">\r\n\r\n\r\n- Autofills \"pinned\" as the default rule type\r\n\r\n862bdb1e
-31d1-4a8e-8d72-6d30a0d1506e\r\n\r\n\r\n- Provides a drop down list of available criteria types: \r\n<img width=\"519\" alt=\"Screenshot 2023-09-08 at 1 55 49 PM\"\r\nsrc=\"0c46670b
-55a2-47ff-a025-19bac3e62dda\">\r\n\r\n\r\n- Supports auto-filling `rule_query` in searches\r\n\r\n0ce980e8
-0178-44e8-8cd9-3f776732df22\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"cffe32279f5fd4941820d129285581a9c1d7c86e"}},{"branch":"8.10","label":"v8.10.1","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Kathleen DeRusso <kathleen.derusso@elastic.co>
This commit is contained in:
parent
672c588656
commit
a4fe822011
2 changed files with 14 additions and 3 deletions
|
@ -496,6 +496,17 @@ export const query = (specService: SpecDefinitionsService) => {
|
|||
format: 'dd/MM/yyyy||yyyy',
|
||||
},
|
||||
},
|
||||
rule_query: {
|
||||
__template: {
|
||||
organic: {
|
||||
query: {},
|
||||
},
|
||||
ruleset_id: '',
|
||||
match_criteria: {
|
||||
FIELD: 'VALUE',
|
||||
},
|
||||
},
|
||||
},
|
||||
span_first: {
|
||||
__template: spanFirstTemplate,
|
||||
match: SPAN_QUERIES,
|
||||
|
|
|
@ -3,11 +3,11 @@
|
|||
"data_autocomplete_rules": {
|
||||
"rules": [{
|
||||
"rule_id": "",
|
||||
"type": "",
|
||||
"type": "pinned",
|
||||
"criteria": [{
|
||||
"type": "",
|
||||
"type": { "__one_of": [ "exact", "fuzzy", "prefix", "suffix", "contains", "lt", "lte", "gt", "gte", "always" ]},
|
||||
"metadata": "",
|
||||
"value": ""
|
||||
"values": [""]
|
||||
}],
|
||||
"actions": {
|
||||
"docs":[{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue