winterhazel opened a new pull request, #13658:
URL: https://github.com/apache/cloudstack/pull/13658

   ### Description
   
   This fixes a minor bug in the Quota UI.
   
   Enabling the projects toggle on any page makes the UI send `projectid=-1` to 
APIs; however, this parameter makes the Quota summary page display an error. 
This is because a special handling for `projectid=-1` was never implemented on 
`quotaSummary`, since it already returns entries for the accessible projects 
ever since it was introduced. 
   
   ### Types of changes
   
   - [ ] Breaking change (fix or feature that would cause existing 
functionality to change)
   - [ ] New feature (non-breaking change which adds functionality)
   - [X] Bug fix (non-breaking change which fixes an issue)
   - [ ] Enhancement (improves an existing feature and functionality)
   - [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
   - [ ] Build/CI
   - [ ] Test (unit or integration test code)
   
   ### Feature/Enhancement Scale or Bug Severity
   
   #### Feature/Enhancement Scale
   
   #### Bug Severity
   
   - [ ] BLOCKER
   - [ ] Critical
   - [ ] Major
   - [X] Minor
   - [ ] Trivial
   
   ### Screenshots (if appropriate):
   
   ### How Has This Been Tested?
   
   Without the patch, I verified that enabling the projects toggle and 
switching to the Quota summary page would display an error.
   
   <details>
   <summary> Error when accessing the Quota summary page </summary>
   <img width="3186" height="901" alt="image" 
src="https://github.com/user-attachments/assets/fc446308-1318-4576-a042-b7000748fbfc";
 />
   
   </details>
   
   Applying these changes allows the Quota summary page to load as intended 
when repeating the same steps.
   
   <details>
   <summary> Quota summary page loaded successfully </summary>
   <img width="3186" height="1038" alt="image" 
src="https://github.com/user-attachments/assets/c5d60fc7-a687-41f9-9c4f-c57de4668266";
 />
   
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to