-
Notifications
You must be signed in to change notification settings - Fork 15
feat(VDisk): add replication progress, remaining time, donors info #2588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: antonkovalenko <692649+antonkovalenko@users.noreply.github.com>
Co-authored-by: antonkovalenko <692649+antonkovalenko@users.noreply.github.com>
- Only show replication progress and time remaining when disk is not replicated (Replicated=false) - Add inverseColorize=true to make 100% progress show as green instead of red - Update both VDiskInfo and VDiskPopup components to respect replication status Co-authored-by: adameat <34044711+adameat@users.noreply.github.com>
... Fixed both issues in commit 3740536:
The changes affect both the main VDisk info display and the VDisk tooltips to maintain consistency across the UI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…licate donors Co-authored-by: adameat <34044711+adameat@users.noreply.github.com>
Fixed all 4 issues in commit 763bb57:
|
… alignment Co-authored-by: adameat <34044711+adameat@users.noreply.github.com>
Fixed both issues in commit a7d356c:
The changes maintain consistency across both the main VDisk page and tooltip displays while fixing the alignment and format issues. |
very good! ![]() to fix donors please consider backend data in attached file: |
Co-authored-by: adameat <34044711+adameat@users.noreply.github.com>
... Fixed both issues in commit 1b181ee:
The fix ensures donors display correctly in both the main VDisk page and tooltips, showing proper VDisk IDs instead of zeros. |
Co-authored-by: adameat <34044711+adameat@users.noreply.github.com>
Fixed in commit 2ebbecb. The donors list now displays as clickable hyperlinks that navigate to the corresponding VDisk page. Each donor ID is parsed to extract the nodeId, pDiskId, and vDiskSlotId parameters and creates navigation links using the existing |
Co-authored-by: adameat <34044711+adameat@users.noreply.github.com>
Changed donors list to display vertically instead of horizontally in commit 85191b0. The donors now appear as a vertical list with proper spacing using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR enhances the VDisk page to display additional replication information as requested in the issue. The changes add three key pieces of information that are already available in the API but were not being displayed in the UI:
Changes Made
1. Replication Progress
ProgressViewer
component for consistencyX% / 100%
format with color-coded progress indication2. Remaining Time
formatUptimeInSeconds
utility for consistent time formatting3. Donors List
NodeId-PDiskId-VSlotId
(e.g., "4-1002-1004")4. Tooltip Enhancement
Implementation Details
Files Modified:
src/components/VDiskInfo/VDiskInfo.tsx
- Enhanced main VDisk info displaysrc/components/VDiskInfo/i18n/en.json
- Added translation keyssrc/components/VDiskPopup/VDiskPopup.tsx
- Enhanced VDisk tooltipsTechnical Approach:
ProgressViewer
,formatUptimeInSeconds
)ReplicationProgress
,ReplicationSecondsRemaining
,Donors
)Verification
The implementation correctly processes the JSON data shown in the issue image:
ReplicationProgress: 0.345547
→ displays as "35%" with progress barReplicationSecondsRemaining: 648
→ displays as "10m 48s"Donors
array → displays as comma-separated VDisk IDsBoth the main VDisk page and VDisk tooltips now provide comprehensive replication status information to help users monitor VDisk replication progress effectively.
Fixes #2290.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.
CI Results
Test Status:⚠️ FLAKY
📊 Full Report
Test Changes Summary ⏭️2
⏭️ Skipped Tests (2)
Bundle Size: 🔺
Current: 85.20 MB | Main: 85.20 MB
Diff: +7.40 KB (0.01%)
ℹ️ CI Information