Skip to content

Good GiB passing - #152

Merged
YanivZalach merged 8 commits into
masterfrom
t3code/refactor/gib-field-naming
Aug 25, 2026
Merged

Good GiB passing#152
YanivZalach merged 8 commits into
masterfrom
t3code/refactor/gib-field-naming

Conversation

@YanivZalach

@YanivZalach YanivZalach commented Aug 23, 2026

Copy link
Copy Markdown
Owner

No description provided.

@YanivZalach
YanivZalach requested a review from Razberrry as a code owner August 23, 2026 06:11
Comment thread backend/constants.py
Comment thread backend/collectors/collect_snapshots.py
YanivZalach and others added 4 commits August 24, 2026 19:48
Backend emits byte counts as strings instead of pre-converted GiB:
data files carry file_size_in_bytes, and snapshot summary size keys
gain a -bytes suffix with Iceberg's values passed through untouched.
The frontend converts to GiB at display time.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@YanivZalach
YanivZalach force-pushed the t3code/refactor/gib-field-naming branch from 07bdee1 to 227dc4b Compare August 24, 2026 17:06
Narrow formatBytesAsGibibytes to accept only strings and update its
one typed caller to pass the raw string. Convert snapshot summary byte
sizes with an explicit str() so the returned type is guaranteed.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Comment thread backend/collectors/collect_snapshots.py Outdated
Comment thread backend/collectors/utils.py Outdated
Comment thread backend/collectors/collect_snapshots.py
Comment thread frontend/src/shared/lib/formatBytes.ts Outdated
YanivZalach and others added 3 commits August 25, 2026 09:20
Panel rows converted byte fields to GiB but kept labels like
file_size_in_bytes, so the label contradicted the value. Strip the
suffix for display and reuse the same rule for the metrics table header.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
endsWith("bytes") also matched fields like total_kilobytes, which would
be converted to GiB with an unstripped label. Require the suffix to be
delimited, and share one pattern between detection and stripping.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Drop the exponential fallback so small sizes read as 0.00419 MiB rather
than 4.098e-6 GiB. Panel rows and the readable metrics table now use
MiB; the metadata page table size stays in GiB.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@YanivZalach
YanivZalach merged commit 2de657b into master Aug 25, 2026
4 checks passed
@YanivZalach
YanivZalach deleted the t3code/refactor/gib-field-naming branch August 25, 2026 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant