Uh oh!
There was an error while loading. Please reload this page.
UI: Fixes in the Usage UI - #10000
Conversation
bernardodemarco
commented
Nov 28, 2024
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@## 4.20 #10000 +/- ##
============================================
- Coverage 15.80% 15.80% -0.01% + Complexity 12586 12585 -1
============================================
Files 5627 5627 Lines 492343 492349 +6 Branches 59694 59696 +2 ============================================
- Hits 77828 77826 -2 - Misses 405992 405999 +7 - Partials 8523 8524 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
vishesh92
commented
Nov 28, 2024
blueorangutan
commented
Nov 28, 2024
@vishesh92 a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
blueorangutan
commented
Nov 28, 2024
UI build: ✔️ |
bernardodemarco
commented
Nov 28, 2024
@winterhazel, done |
winterhazel
commented
Nov 28, 2024
It would also be good to change the "a few seconds ago" in this case |
bernardodemarco
commented
Nov 28, 2024
yadvr
commented
Nov 29, 2024
blueorangutan
commented
Nov 29, 2024
@rohityadavcloud a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
blueorangutan
commented
Nov 29, 2024
UI build: ✔️ |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Pearl Dsilva <pearl1594@gmail.com>
Co-authored-by: Pearl Dsilva <pearl1594@gmail.com>
Co-authored-by: Pearl Dsilva <pearl1594@gmail.com>
Co-authored-by: Pearl Dsilva <pearl1594@gmail.com>
Co-authored-by: Pearl Dsilva <pearl1594@gmail.com>
bernardodemarco
commented
Nov 29, 2024
blueorangutan
commented
Nov 29, 2024
@bernardodemarco a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
blueorangutan
commented
Nov 29, 2024
UI build: ✔️ |
* 4.20: VR: apply iptables rules when add/remove static routes (#10064) Certificate and VM hostname validation improvements (#10051) set ulimit for server according to redhat spec (#10040) kvm-storage: provide isVMMigrate information to storage plugins (#10093) Allow config drive deletion of migrated VM, on host maintenance (#10045) linstor: improve heartbeat check with also asking linstor (#10105) server: simplify role change validation (#9173) UI: create VPC network offering with conserve mode (#10082) server: fix typo removeaccessvpn in VirtualRouterElement (#10086) UI: remove duplicated Instance Name in Public IP details page (#10087) UI: Fixes in the Usage UI (#10000) SAML2: add cookie with HttpOnly too #10013 (#10047) ui: Allow font-awesome icon usage and optimise icon size inconsistency (#9744)
* fixes on usage ui * dont call API when caller does not have access to it * handle when lastheartbeat is undefined * hide last collection datetime when lastheartbeat is undefined * apply Pearl's suggestions Co-authored-by: Pearl Dsilva <pearl1594@gmail.com> * apply Pearl's suggestions Co-authored-by: Pearl Dsilva <pearl1594@gmail.com> * apply Pearl's suggestions Co-authored-by: Pearl Dsilva <pearl1594@gmail.com> * apply Pearl's suggestions Co-authored-by: Pearl Dsilva <pearl1594@gmail.com> * apply Pearl's suggestions Co-authored-by: Pearl Dsilva <pearl1594@gmail.com> --------- Co-authored-by: Pearl Dsilva <pearl1594@gmail.com>




Description
This PR addresses the following issues related to the Usage UI:
nullvalues to users without access to thelistUsageServerMetricsAPI (FixesUsage server metrics section shown to users without access to the API #9992);removeRawUsageRecordsAPI (FixesPurge usage records action shown to users without access toremoveRawUsageRecords#9995);generateUsageRecordsAPI (FixesGenerate usage records action shown to users without access togenerateUsageRecords#9994);listUsageTypesAPI. Since theusageidparameter of thelistUsageRecordsAPI can only be used alongside thetypeparameter, both form fields are now hidden when the caller does not have access to thelistUsageTypesAPI.Types of changes
Feature/Enhancement Scale or Bug Severity
Bug Severity
Screenshots (if appropriate):
listUsageServerMetrics,removeRawUsageRecords,generateUsageRecordsandlistUsageTypesAPIsHow Has This Been Tested?
listUsageServerMetrics,removeRawUsageRecords,generateUsageRecordsandlistUsageTypesAPIs were not able to interact with them through the UI.