bernardodemarco opened a new pull request, #10000: URL: https://github.com/apache/cloudstack/pull/10000
### Description This PR addresses the following issues related to the Usage UI: - Usage metrics section is displayed with `null` values to users without access to the `listUsageServerMetrics` API (Fixes #9992); - Purge usage records action is displayed to users without access to the `removeRawUsageRecords` API (Fixes #9995); - Generate usage records action is displayed to users without access to the `generateUsageRecords` API (Fixes #9994); - Vertical scroll overflow in the usage records table (Fixes #9996); - Usage types input field is displayed to users without access to the `listUsageTypes` API. Since the `usageid` parameter of the `listUsageRecords` API can only be used alongside the `type` parameter, both form fields are now hidden when the caller does not have access to the `listUsageTypes` API. ### 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 #### Bug Severity - [ ] BLOCKER - [ ] Critical - [ ] Major - [X] Minor - [ ] Trivial ### Screenshots (if appropriate): ### How Has This Been Tested? - Verified that users without access to the `listUsageServerMetrics`, `removeRawUsageRecords`, `generateUsageRecords` and `listUsageTypes` APIs were not able to interact with them through the UI. - Verified that the vertical overflow issue was resolved. -- 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: commits-unsubscr...@cloudstack.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org