-
Notifications
You must be signed in to change notification settings - Fork 163
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
RHOAIENG-13608 Inconsistent Default Storage Class when corrupting isDefault value #3287
RHOAIENG-13608 Inconsistent Default Storage Class when corrupting isDefault value #3287
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3287 +/- ##
==========================================
+ Coverage 84.84% 84.86% +0.01%
==========================================
Files 1307 1307
Lines 29238 29240 +2
Branches 7902 7902
==========================================
+ Hits 24808 24815 +7
+ Misses 4430 4425 -5
... and 5 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
frontend/src/pages/projects/screens/spawner/storage/StorageClassSelect.tsx
Outdated
Show resolved
Hide resolved
frontend/src/pages/projects/screens/spawner/storage/useDefaultStorageClass.ts
Outdated
Show resolved
Hide resolved
bf6bf06
to
19cadca
Compare
19cadca
to
26af76a
Compare
26af76a
to
dbad89b
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Gkrumbach07 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Closes: RHOAIENG-13608
Description
This PR resolves inconsistencies when handling corrupted or multiple storage classes marked as default (isDefault: true).
a) If a corrupted class is detected and no valid default is found, the first storage class in the list is automatically selected.
b) Improved the logic in
StorageClassSelect
to properly manage scenarios with multiple default storage classes.Before
After
c) Enhanced error handling for corrupted default values within
StorageClassesContext
.https://github.com/user-attachments/assets/61b8d37a-ffa9-43cb-8ad6-7f00f93097d6
How Has This Been Tested?
To test default inconsistency on Storage class select.
To test multiple storage class with default.
To test default inconsistency on Storage class page.
Test Impact
N/A
Request review criteria:
Self checklist (all need to be checked):
If you have UI changes:
After the PR is posted & before it merges:
main