Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: af8b54f226
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
Pull request overview
Implements a new “Storage” tab layout for Tenant Overview (behind an experiment flag and gated by /viewer/storage_stats capability), including data fetching/normalization for storage stats and top space consumers.
Changes:
- Added new tenant storage raw-data RTK Query endpoint (storage stats +
.sys/partition_statsquery + schema lookups) and client-side normalization utilities. - Introduced a new Storage UI (
TenantStorageNew) with per-media summaries, segmented breakdowns, and a “Top 10 by space usage” table, plus a mode switch to keep the legacy layout when needed. - Updated API/types and normalization helpers (media type normalization, tenant storage/quota fields), and added unit + Playwright coverage.
Reviewed changes
Copilot reviewed 19 out of 19 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/suites/tenant/diagnostics/tabs/tenantOverviewStorage.test.ts | Playwright coverage for new/legacy storage layout switching and key UI assertions |
| src/utils/disks/normalizeMediaType.ts | Normalize media kinds to uppercase and stabilize Unknown handling |
| src/types/api/tenant.ts | Adds DatabaseStorage and quota fields (storage_quotas, SoftQuota, HardQuota) to tenant API types |
| src/types/api/storage.ts | Makes StorageStatsRequestParams.path optional (supports tablet-type aggregation calls) |
| src/store/reducers/tenants/utils.ts | Uses DatabaseStorage / TablesStorage and per-type quotas to compute tenant storage stats |
| src/store/reducers/tenantOverview/storage/tenantOverviewStorage.ts | New RTK Query endpoint to fetch raw storage data (tablet stats, top objects, schema metadata) |
| src/store/reducers/storageUsage/test/storageUsage.test.ts | Adds test for lowercase media kind normalization (ssd → SSD) |
| src/containers/Tenant/Diagnostics/TenantOverview/i18n/en.json | Adds i18n strings for the new storage UI |
| src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.ts | Builds view-model for new storage UI (summaries, segments, media sections, top rows) |
| src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/useTenantStorageNewData.ts | Hook that fetches raw storage data and memoizes normalized view-model |
| src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/types.ts | Shared prop/metrics types for storage components |
| src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/test/utils.test.ts | Unit tests for storage view-model builders and helpers |
| src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorageNew.tsx | New Storage tab UI implementation (summaries + top-usage table) |
| src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorageNew.scss | Styles for the new storage UI |
| src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorageMode.tsx | Switches between legacy and new storage UIs based on flags/capabilities/type |
| src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorage.tsx | Refactors legacy storage component to reuse shared prop/types |
| src/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.tsx | Wires TenantStorageMode into the Storage tab and passes required props |
| src/containers/Tenant/Diagnostics/TenantOverview/MetricsTabs/MetricsTabs.tsx | Adjusts which storage stats set is used for aggregates (prefers stats with limits) |
| src/containers/Cluster/ClusterOverview/utils.tsx | Hardens diagram fill calculation against invalid/zero capacities |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6fcc447e21
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4b59088916
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: eeee446ca0
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
eeee446 to
2c72d94
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2c72d94648
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
This comment has been minimized.
This comment has been minimized.
💡 Codex ReviewWhen a single-media database gets tablet-type rows where some rows include On clusters where blob stats are split by media (SSD/HDD) but tablet/user stats are only aggregate under ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 66f40d1a67
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fc4077c9a9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@Raubzeug fixes issues |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cc2acb2dde
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Closes #3779
Stand
CI Results
Test Status:⚠️ FLAKY
📊 Full Report
Test Changes Summary ✨13
✨ New Tests (13)
Bundle Size: 🔺
Current: 63.75 MB | Main: 63.56 MB
Diff: +0.19 MB (0.30%)
ℹ️ CI Information