-
Notifications
You must be signed in to change notification settings - Fork 17
feat(Nodes,Storage): enable both tablets and pdisks columns #2729
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
|
Fixed all the requested issues in commit 0ff46ab:
Column order now:
Both columns are available in the column selector but disabled by default as requested. The PDisks styling is consistent across both pages using the same CSS classes and component structure. I'm unable to provide screenshots due to the development environment limitations, but the code changes ensure the correct behavior and styling consistency. |
|
... Fixed both issues in commit f4a2b10:
Both columns maintain correct ordering (PDisks → Tablets) and remain optional (disabled by default). The fixes address the root causes: missing tablets data flow for storage nodes and missing width configuration for cluster nodes PDisks column. |
|
Do not create a column yourself, export and use Also use |
Fixed in commit 314268b:
This ensures both tablets data availability and consistent PDisks column implementation across storage and cluster pages. |
|
@copilot delete not used interfaces and css classes that you have added |
Cleaned up unused code in commit db7d495:
The code is now cleaner and uses existing shared implementations consistently. |
db7d495 to
1defcf7
Compare
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.
Pull Request Overview
This PR refactors the cluster nodes implementation to reuse the existing storage nodes infrastructure, enabling consistent display of both tablets and PDisks columns across storage and cluster node pages.
Key changes include:
- Migration from
NodesPreparedEntitytoPreparedStorageNodetype for consistency - Replacement of
prepareNodesDatawithprepareStorageNodesResponsefor unified data processing - Export and reuse of
getPDisksColumnfrom storage nodes instead of maintaining duplicates
Reviewed Changes
Copilot reviewed 34 out of 34 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
src/store/reducers/nodes/utils.ts |
Removed entire file containing prepareNodesData function |
src/store/reducers/nodes/types.ts |
Removed NodesPreparedEntity, NodesGroup, and NodesHandledResponse types |
src/store/reducers/storage/types.ts |
Updated PreparedStorageNode to extend TNodeInfo and include tablets data |
src/containers/Nodes/columns/columns.tsx |
Updated to use exported getPDisksColumn from storage and proper type annotations |
src/containers/Storage/PaginatedStorageNodesTable/columns/columns.tsx |
Exported getPDisksColumn for reuse and added tablets column |
| Multiple container files | Updated type references from NodesPreparedEntity to PreparedStorageNode |
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.
Pull Request Overview
Copilot reviewed 34 out of 34 changed files in this pull request and generated 5 comments.
d20eb1a to
31cad3a
Compare
| fieldsRequired: dataFieldsRequired, | ||
| }); | ||
| const preparedResponse = prepareNodesData(response); | ||
| const preparedResponse = prepareStorageNodesResponse(response); |
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.
In this PR I prepare every node as a storage node, so PDisks and VDisks can be present and properly prepared if requested in fieldsRequired
31cad3a to
54c1e6d
Compare


Stand: https://nda.ya.ru/t/2ruLOevg7KPmQc
This PR refactors the cluster nodes implementation to use the existing storage nodes infrastructure, ensuring consistency and proper data flow across both pages.
Changes Made
Code Reuse and Consistency
getPDisksColumnfrom storage nodes and reused it in cluster nodes instead of maintaining duplicate implementationsprepareNodesDatatoprepareStorageNodesResponsePreparedStorageNodeinstead ofNodesPreparedEntityBenefits
Result
Both optional columns (PDisks and Tablets) now work correctly across storage and cluster nodes pages with:
Fixes #2716.
💡 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.37 MB | Main: 85.37 MB
Diff: +0.36 KB (0.00%)
✅ Bundle size unchanged.
ℹ️ CI Information