Skip to content

feat: hide some columns and storage nodes for users-viewers - #1967

Merged
artemmufazalov merged 1 commit into
mainfrom
1408-limit-columns
Feb 19, 2025
Merged

artemmufazalov merged 1 commit into
mainfrom
1408-limit-columns

Conversation

@artemmufazalov

@artemmufazalov artemmufazalov commented Feb 19, 2025 •

Copy link
Copy Markdown
Member

Closes #1408

How UI will look like for users-viewers: https://nda.ya.ru/t/BAWCJ3407C7NKx

Changes for users with isMonitoringAllowed: false:

  • Hide storage nodes table and groups / nodes radio button, always display groups in storage
  • Hide Pools and Memory columns in nodes column - for this metrics will be available columns CPU and RAM
  • Hide DiskSpaceUsage, Latency, AllocationUnits, VDisksPDisks columns in storage groups table

CI Results

Test Status: ✅ PASSED

📊 Full Report

Total Passed Failed Flaky Skipped
262 262 0 0 0

😟 No changes in tests. 😕

Bundle Size: ✅

Current: 80.46 MB | Main: 80.46 MB
Diff: +1.97 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.

Comment on lines +5 to +7
export function useIsUserAllowedToMakeChanges() {
return useTypedSelector(selectIsUserAllowedToMakeChanges);
}

@artemmufazalov artemmufazalov Feb 19, 2025 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Created a custom hook to import one function instead of two, no changes in this part

@artemmufazalov
artemmufazalov marked this pull request as ready for review February 19, 2025 10:33
@artemmufazalov
artemmufazalov requested review from Raubzeug and astandrik and removed request for astandrik February 19, 2025 10:33
@artemmufazalov
artemmufazalov added this pull request to the merge queue Feb 19, 2025
Merged via the queue into main with commit 249011d Feb 19, 2025
@artemmufazalov
artemmufazalov deleted the 1408-limit-columns branch February 19, 2025 13:11
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.

Limit list of column for users with viewer rights in Storage and Nodes tables

2 participants