Skip to content

Conversation

@astandrik
Copy link
Collaborator

@astandrik astandrik commented Dec 2, 2025

Closes #3133

CI Results

Test Status: ⚠️ FLAKY

📊 Full Report

Total Passed Failed Flaky Skipped
378 375 0 1 2
Test Changes Summary ⏭️2

⏭️ Skipped Tests (2)

  1. Scroll to row, get shareable link, navigate to URL and verify row is scrolled into view (tenant/diagnostics/tabs/queries.test.ts)
  2. Copy result button copies to clipboard (tenant/queryEditor/queryEditor.test.ts)

Bundle Size: ✅

Current: 62.34 MB | Main: 62.34 MB
Diff: 0.28 KB (-0.00%)

✅ Bundle size unchanged.

ℹ️ CI Information
  • Test recordings for failed tests are available in the full report.
  • Bundle size is measured for the entire 'dist' directory.
  • 📊 indicates links to detailed reports.
  • 🔺 indicates increase, 🔽 decrease, and ✅ no change in bundle size.

Copilot AI review requested due to automatic review settings December 2, 2025 10:46
Copilot finished reviewing on behalf of astandrik December 2, 2025 10:48
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors duration formatting functions to use more consistent and descriptive naming conventions. The changes rename formatUptimeInSeconds to formatDurationSeconds and formatMsToUptime to formatDurationMs to better reflect their generic duration formatting purpose rather than being specific to uptime.

  • Renamed duration formatting functions to more descriptive names
  • Updated all usages across the codebase consistently
  • Improved the Operations duration column to use the standardized formatting approach

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/utils/dataFormatters/dataFormatters.ts Renamed core formatting functions and updated documentation
src/utils/dataFormatters/test/formatDuration.test.ts Updated test suite to use new function names
src/containers/Tenant/Diagnostics/Partitions/columns/columns.tsx Updated partition lag/idle time formatting calls
src/containers/Tenant/Diagnostics/Consumers/columns/columns.tsx Updated consumer lag/idle time formatting calls
src/containers/Tenant/Diagnostics/Consumers/TopicStats/ConsumersTopicStats.tsx Updated topic stats formatting calls
src/containers/Operations/columns.tsx Replaced custom duration formatting with standardized function and removed unnecessary imports
src/components/VDiskPopup/VDiskPopup.tsx Updated VDisk replication time formatting
src/components/VDiskInfo/VDiskInfo.tsx Updated VDisk info time formatting and imports

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

8 files reviewed, no comments

Edit Code Review Agent Settings | Greptile

Raubzeug
Raubzeug previously approved these changes Dec 2, 2025
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

8 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

@astandrik astandrik requested a review from Raubzeug December 4, 2025 11:22
@astandrik astandrik added this pull request to the merge queue Dec 4, 2025
Merged via the queue into main with commit 0267e23 Dec 4, 2025
9 checks passed
@astandrik astandrik deleted the astandrik.3133 branch December 4, 2025 11:39
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.

feat: use same duration functions

3 participants