Skip to content

Conversation

@astandrik
Copy link
Collaborator

@astandrik astandrik commented Dec 26, 2024

Closes #1789

Stand

in url there are parameters for testing:
pdisks=3&vdisksPerPDisk=20&mocks=1&totalNodes=64

pdisks - maximum number of pdisks per node
vdisksPerPDisk - maximum number of vdisks per pdisk
totalNodes - total nodes in nodes list

CI Results

Test Status: ✅ PASSED

📊 Full Report

Total Passed Failed Flaky Skipped
232 232 0 0 0

😟 No changes in tests. 😕

Bundle Size: 🔺

Current: 66.18 MB | Main: 66.17 MB
Diff: +7.55 KB (0.01%)

⚠️ Bundle size increased. Please review.

ℹ️ 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.

@@ -0,0 +1,224 @@
import {EFlag} from '../../types/api/enums';
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Will delete mocks right before merge

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.

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

Files not reviewed (5)
  • src/containers/Storage/PDisk/PDisk.scss: Language not supported
  • src/containers/Storage/StorageNodes/columns/StorageNodesColumns.scss: Language not supported
  • src/styles/mixins.scss: Language not supported
  • src/store/reducers/storage/utils.ts: Evaluated as low risk
  • src/types/api/nodes.ts: Evaluated as low risk
Comments suppressed due to low confidence (4)

src/containers/Storage/StorageNodes/getNodes.ts:50

  • [nitpick] The variable name 'pdisks' is ambiguous. It should be renamed to 'maxPdisks' for clarity.
const pdisks = parseInt(urlParams.get('pdisks') || '10', 10);

src/containers/Storage/StorageNodes/getNodes.ts:51

  • [nitpick] The variable name 'vdisksPerPDisk' is ambiguous. It should be renamed to 'maxVdisksPerPDisk' for clarity.
const vdisksPerPDisk = parseInt(urlParams.get('vdisksPerPDisk') || '2', 10);

src/containers/Storage/StorageNodes/columns/columns.tsx:43

  • The value assigned to the CSS variable '--maximum-slots' should be validated to ensure it is a valid number.
[MAX_SLOTS_CSS_VAR]: row.MaximumSlotsPerDisk,

src/containers/Storage/StorageNodes/columns/columns.tsx:44

  • The value assigned to the CSS variable '--maximum-disks' should be validated to ensure it is a valid number.
[MAX_DISKS_CSS_VAR]: row.MaximumDisksPerNode,

@@ -1,8 +1,9 @@
import type {FetchData} from '../../../components/PaginatedTable';
import {
NODES_COLUMNS_TO_DATA_FIELDS,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Will delete mocks right before merge

return providedMaximumDisksPerNode;
}

return String(Math.max(1, ...(nodes || []).map((node) => node.PDisks?.length || 0)));
Copy link
Contributor

Choose a reason for hiding this comment

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

it's quite hard to read. Could you please refactor?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

mission accomplished

mind that its a fallback function for corner case of a corner case

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.

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

Files not reviewed (6)
  • src/containers/Storage/PDisk/PDisk.scss: Language not supported
  • src/containers/Storage/StorageNodes/columns/StorageNodesColumns.scss: Language not supported
  • src/styles/mixins.scss: Language not supported
  • src/containers/Storage/PDisk/PDisk.tsx: Evaluated as low risk
  • src/containers/Storage/StorageNodes/columns/columns.tsx: Evaluated as low risk
  • src/containers/Storage/StorageNodes/getNodes.ts: Evaluated as low risk

Raubzeug
Raubzeug previously approved these changes Dec 27, 2024
@astandrik astandrik added this pull request to the merge queue Dec 27, 2024
Merged via the queue into main with commit db11791 Dec 27, 2024
7 checks passed
@astandrik astandrik deleted the astandrik.pdisks-column-width-1789 branch December 27, 2024 10:21
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.

set PDisks column width according to MaximumDisksPerNode

3 participants