[8.x] [streams][lifecycle] format total docs (#214823) (#214926)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[streams][lifecycle] format total docs
(#214823)](https://github.com/elastic/kibana/pull/214823)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Kevin
Lacabane","email":"kevin.lacabane@elastic.co"},"sourceCommit":{"committedDate":"2025-03-18T09:58:25Z","message":"[streams][lifecycle]
format total docs (#214823)\n\nTotal docs is now
readable\n\n\n![formatnumber](https://github.com/user-attachments/assets/64ba53c7-e574-4540-aac0-dd3da2521d89)","sha":"d8c62dbd38cb6337e7fba803c4c1c1885997df3b","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:version","Feature:Streams","v9.1.0","v8.19.0"],"title":"[streams][lifecycle]
format total
docs","number":214823,"url":"https://github.com/elastic/kibana/pull/214823","mergeCommit":{"message":"[streams][lifecycle]
format total docs (#214823)\n\nTotal docs is now
readable\n\n\n![formatnumber](https://github.com/user-attachments/assets/64ba53c7-e574-4540-aac0-dd3da2521d89)","sha":"d8c62dbd38cb6337e7fba803c4c1c1885997df3b"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/214823","number":214823,"mergeCommit":{"message":"[streams][lifecycle]
format total docs (#214823)\n\nTotal docs is now
readable\n\n\n![formatnumber](https://github.com/user-attachments/assets/64ba53c7-e574-4540-aac0-dd3da2521d89)","sha":"d8c62dbd38cb6337e7fba803c4c1c1885997df3b"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Kevin Lacabane <kevin.lacabane@elastic.co>
This commit is contained in:
Kibana Machine 2025-03-18 12:56:09 +01:00 committed by GitHub
parent 924f2019f2
commit ca298aa875
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -31,6 +31,7 @@ import {
EuiPanel,
EuiPopover,
EuiText,
formatNumber,
} from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import { LifecycleEditAction } from './modal';
@ -203,7 +204,7 @@ export function RetentionMetadata({
) : isLoadingStats || !stats ? (
<EuiLoadingSpinner size="s" />
) : (
stats.totalDocs
formatNumber(stats.totalDocs, '0,0')
)
}
/>