Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.13] [Tabify] Handle doc_count with care on time shift scenarios (e…
…lastic#178394) (elastic#178726) # Backport This will backport the following commits from `main` to `8.13`: - [[Tabify] Handle doc_count with care on time shift scenarios (elastic#178394)](elastic#178394) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Marco Liberati","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-03-14T13:17:15Z","message":"[Tabify] Handle doc_count with care on time shift scenarios (elastic#178394)\n\n## Summary\r\n\r\nFixes elastic#178073\r\n\r\nThis PR restructure a bit the `tabify` code to explain and handle the\r\ncount with time shift with extra care.\r\n\r\nThe fix itself is one line, but I thought it was worth expanding a\r\nlittle bit more this obscure part of the code AND scope it down the fix\r\nto a specific scenario. The `hasMultipleDocCountAtRootWithFilters` can\r\nbe perhaps removed once many more tests can be performed.\r\n\r\n### Checklist\r\n- [x]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas added for features that require explanation or tutorials\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":"84304bc0dc29f49301ba4443daca35238698d453","branchLabelMapping":{"^v8.14.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Visualizations","Feature:Lens","v8.14.0","v8.13.1"],"title":"[Tabify] Handle doc_count with care on time shift scenarios","number":178394,"url":"https://github.com/elastic/kibana/pull/178394","mergeCommit":{"message":"[Tabify] Handle doc_count with care on time shift scenarios (elastic#178394)\n\n## Summary\r\n\r\nFixes elastic#178073\r\n\r\nThis PR restructure a bit the `tabify` code to explain and handle the\r\ncount with time shift with extra care.\r\n\r\nThe fix itself is one line, but I thought it was worth expanding a\r\nlittle bit more this obscure part of the code AND scope it down the fix\r\nto a specific scenario. The `hasMultipleDocCountAtRootWithFilters` can\r\nbe perhaps removed once many more tests can be performed.\r\n\r\n### Checklist\r\n- [x]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas added for features that require explanation or tutorials\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":"84304bc0dc29f49301ba4443daca35238698d453"}},"sourceBranch":"main","suggestedTargetBranches":["8.13"],"targetPullRequestStates":[{"branch":"main","label":"v8.14.0","branchLabelMappingKey":"^v8.14.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/178394","number":178394,"mergeCommit":{"message":"[Tabify] Handle doc_count with care on time shift scenarios (elastic#178394)\n\n## Summary\r\n\r\nFixes elastic#178073\r\n\r\nThis PR restructure a bit the `tabify` code to explain and handle the\r\ncount with time shift with extra care.\r\n\r\nThe fix itself is one line, but I thought it was worth expanding a\r\nlittle bit more this obscure part of the code AND scope it down the fix\r\nto a specific scenario. The `hasMultipleDocCountAtRootWithFilters` can\r\nbe perhaps removed once many more tests can be performed.\r\n\r\n### Checklist\r\n- [x]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas added for features that require explanation or tutorials\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":"84304bc0dc29f49301ba4443daca35238698d453"}},{"branch":"8.13","label":"v8.13.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Marco Liberati <[email protected]>
- Loading branch information