Skip to content

Commit

Permalink
[Dataset quality] Align size units (#178736)
Browse files Browse the repository at this point in the history
closes #178614

## πŸ“  Summary

This PR aligns the size column units format to match the format of the
one in the summary panel.

<img width="1472" alt="Screenshot 2024-03-14 at 15 52 41"
src="https://github.com/elastic/kibana/assets/11225826/3e54d54d-5c8e-41af-afaa-5d63bfd5b1cf">
  • Loading branch information
mohamedhamed-ahmed authored Mar 14, 2024
1 parent b8c13ba commit cfbc456
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { i18n } from '@kbn/i18n';
import { FormattedMessage } from '@kbn/i18n-react';
import React from 'react';
import { css } from '@emotion/react';
import { formatBytes } from '@kbn/formatters';
import {
DEGRADED_QUALITY_MINIMUM_PERCENTAGE,
POOR_QUALITY_MINIMUM_PERCENTAGE,
Expand Down Expand Up @@ -194,8 +195,9 @@ export const getDatasetQualityTableColumns = ({
},
{
name: sizeColumnName,
field: 'size',
field: 'sizeBytes',
sortable: true,
render: (_, dataStreamStat: DataStreamStat) => formatBytes(dataStreamStat.sizeBytes || 0),
width: '100px',
},
{
Expand Down

0 comments on commit cfbc456

Please sign in to comment.