Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] [ES|QL] Don't store duplicate queries even of different fo…
…rmatting (elastic#194267) (elastic#194316) # Backport This will backport the following commits from `main` to `8.x`: - [[ES|QL] Don't store duplicate queries even of different formatting (elastic#194267)](elastic#194267) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Stratoula Kalafateli","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-09-27T15:25:55Z","message":"[ES|QL] Don't store duplicate queries even of different formatting (elastic#194267)\n\n## Summary\r\n\r\nOne of the things that bother me in the history component is that you\r\ncan have different spaces in the queries but they query is actually the\r\nsame. These appear 2 times which I find very annoying.\r\n\r\nThis PR identifies if the query is the same, regardless of the\r\nformatting, and if yes it will display it only once (it actually updates\r\nthe cache old item with the new one)\r\n\r\n### Checklist\r\n- [ ] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"21a8bf8c20e4324312ce80d599245435d299d958","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","Feature:ES|QL","Team:ESQL","v8.16.0"],"title":"[ES|QL] Don't store duplicate queries even of different formatting","number":194267,"url":"https://github.com/elastic/kibana/pull/194267","mergeCommit":{"message":"[ES|QL] Don't store duplicate queries even of different formatting (elastic#194267)\n\n## Summary\r\n\r\nOne of the things that bother me in the history component is that you\r\ncan have different spaces in the queries but they query is actually the\r\nsame. These appear 2 times which I find very annoying.\r\n\r\nThis PR identifies if the query is the same, regardless of the\r\nformatting, and if yes it will display it only once (it actually updates\r\nthe cache old item with the new one)\r\n\r\n### Checklist\r\n- [ ] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"21a8bf8c20e4324312ce80d599245435d299d958"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/194267","number":194267,"mergeCommit":{"message":"[ES|QL] Don't store duplicate queries even of different formatting (elastic#194267)\n\n## Summary\r\n\r\nOne of the things that bother me in the history component is that you\r\ncan have different spaces in the queries but they query is actually the\r\nsame. These appear 2 times which I find very annoying.\r\n\r\nThis PR identifies if the query is the same, regardless of the\r\nformatting, and if yes it will display it only once (it actually updates\r\nthe cache old item with the new one)\r\n\r\n### Checklist\r\n- [ ] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"21a8bf8c20e4324312ce80d599245435d299d958"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Stratoula Kalafateli <[email protected]>
- Loading branch information