Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.14] [Discover] Fix resetting of breakdown field in a saved search (#…
…184668) (#184998) # Backport This will backport the following commits from `main` to `8.14`: - [[Discover] Fix resetting of breakdown field in a saved search (#184668)](#184668) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Julia Rechkunova","email":"julia.rechkunova@elastic.co"},"sourceCommit":{"committedDate":"2024-06-07T11:29:16Z","message":"[Discover] Fix resetting of breakdown field in a saved search (#184668)\n\n- Closes https://github.com/elastic/kibana/issues/184379\r\n\r\n## Summary\r\n\r\nThis PR brings back the logic which was edited in\r\nhttps://github.com//pull/169548 This should allow to reset\r\nthe saved breakdown field with rather an empty string as `undefined`\r\nseems to be ignored.\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":"132ab34ba54fbc6d119bc1e31d3838cd72493082","branchLabelMapping":{"^v8.15.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Discover","release_note:fix","Team:DataDiscovery","backport:prev-minor","v8.15.0"],"title":"[Discover] Fix resetting of breakdown field in a saved search","number":184668,"url":"https://github.com/elastic/kibana/pull/184668","mergeCommit":{"message":"[Discover] Fix resetting of breakdown field in a saved search (#184668)\n\n- Closes https://github.com/elastic/kibana/issues/184379\r\n\r\n## Summary\r\n\r\nThis PR brings back the logic which was edited in\r\nhttps://github.com//pull/169548 This should allow to reset\r\nthe saved breakdown field with rather an empty string as `undefined`\r\nseems to be ignored.\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":"132ab34ba54fbc6d119bc1e31d3838cd72493082"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.15.0","branchLabelMappingKey":"^v8.15.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/184668","number":184668,"mergeCommit":{"message":"[Discover] Fix resetting of breakdown field in a saved search (#184668)\n\n- Closes https://github.com/elastic/kibana/issues/184379\r\n\r\n## Summary\r\n\r\nThis PR brings back the logic which was edited in\r\nhttps://github.com//pull/169548 This should allow to reset\r\nthe saved breakdown field with rather an empty string as `undefined`\r\nseems to be ignored.\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":"132ab34ba54fbc6d119bc1e31d3838cd72493082"}}]}] BACKPORT--> Co-authored-by: Julia Rechkunova <julia.rechkunova@elastic.co>
- Loading branch information