Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.12] [Discover] Fix "Unsaved changes" badge for ES|QL (el…
…astic#174645) (elastic#174832) # Backport This will backport the following commits from `main` to `8.12`: - [[Discover] Fix "Unsaved changes" badge for ES|QL (elastic#174645)](elastic#174645) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Julia Rechkunova","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-01-15T11:12:56Z","message":"[Discover] Fix \"Unsaved changes\" badge for ES|QL (elastic#174645)\n\n## Summary\r\n\r\nThis PR fixes a bug where \"Unsaved changes\" badge would appear after\r\npage refresh for an ES|QL saved search.\r\n\r\nTo reproduce on main:\r\n- Create a new ES|QL saved search\r\n- Reload the page => Notice that the badge appeared\r\n\r\nWith this PR the issue should be resolved. It was caused by the fact\r\nthat adhoc data view id might change internally.\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [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":"900ab217a2cba446c923ac3bd46795d6c70fe106","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Discover","release_note:skip","Team:DataDiscovery","backport:prev-minor","v8.13.0"],"title":"[Discover] Fix \"Unsaved changes\" badge for ES|QL","number":174645,"url":"https://github.com/elastic/kibana/pull/174645","mergeCommit":{"message":"[Discover] Fix \"Unsaved changes\" badge for ES|QL (elastic#174645)\n\n## Summary\r\n\r\nThis PR fixes a bug where \"Unsaved changes\" badge would appear after\r\npage refresh for an ES|QL saved search.\r\n\r\nTo reproduce on main:\r\n- Create a new ES|QL saved search\r\n- Reload the page => Notice that the badge appeared\r\n\r\nWith this PR the issue should be resolved. It was caused by the fact\r\nthat adhoc data view id might change internally.\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [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":"900ab217a2cba446c923ac3bd46795d6c70fe106"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.13.0","branchLabelMappingKey":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/174645","number":174645,"mergeCommit":{"message":"[Discover] Fix \"Unsaved changes\" badge for ES|QL (elastic#174645)\n\n## Summary\r\n\r\nThis PR fixes a bug where \"Unsaved changes\" badge would appear after\r\npage refresh for an ES|QL saved search.\r\n\r\nTo reproduce on main:\r\n- Create a new ES|QL saved search\r\n- Reload the page => Notice that the badge appeared\r\n\r\nWith this PR the issue should be resolved. It was caused by the fact\r\nthat adhoc data view id might change internally.\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [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":"900ab217a2cba446c923ac3bd46795d6c70fe106"}}]}] BACKPORT--> Co-authored-by: Julia Rechkunova <[email protected]>
- Loading branch information