cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

Refactor Quota Summary API

Open julien-vaz opened this issue 11 months ago • 23 comments

Description

The quotaSummary API has abstract behaviors and codes, as well as return values not aligned with its purposes. Furthermore, when the account is a project, no information is returned.

Also, in the UI, when opening the Quota Summary details for accounts who owned removed domains, the CloudStack launches an error to the user.

Therefore, this PR:

  • improves the API's behavior and return values;
  • adds information for project accounts (through parameter listall=true);
  • adds information for accounts/domains which have been already removed and a filter for accounts in the UI;

Types of changes

  • [ ] Breaking change (fix or feature that would cause existing functionality to change)
  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [x] 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

  • [x] Major
  • [ ] Minor

How Has This Been Tested?

On CloudMonkey I called quotaSummary API and checked the return value:

  • only relevant information about the summaries is being displayed;
  • accounts and domains which have been removed are especified in the summary;
  • project accounts are also being considered by the API.

On the UI, the filter for removed accounts is working properly.

julien-vaz avatar Mar 05 '25 13:03 julien-vaz

@blueorangutan package

julien-vaz avatar Mar 05 '25 13:03 julien-vaz

@julien-vaz a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

blueorangutan avatar Mar 05 '25 13:03 blueorangutan

Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 12665

blueorangutan avatar Mar 05 '25 14:03 blueorangutan

Codecov Report

:white_check_mark: All modified and coverable lines are covered by tests. :white_check_mark: Project coverage is 3.63%. Comparing base (3a28a87) to head (ba99ec8). :warning: Report is 675 commits behind head on main.

:exclamation: There is a different number of reports uploaded between BASE (3a28a87) and HEAD (ba99ec8). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (3a28a87) HEAD (ba99ec8)
unittests 1 0
Additional details and impacted files
@@              Coverage Diff              @@
##               main   #10505       +/-   ##
=============================================
- Coverage     16.15%    3.63%   -12.53%     
=============================================
  Files          5666      441     -5225     
  Lines        498081    37019   -461062     
  Branches      60267     6785    -53482     
=============================================
- Hits          80475     1345    -79130     
+ Misses       408593    35513   -373080     
+ Partials       9013      161     -8852     
Flag Coverage Δ
uitests 3.63% <ø> (-0.37%) :arrow_down:
unittests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

codecov[bot] avatar Mar 05 '25 21:03 codecov[bot]

@blueorangutan package

julien-vaz avatar Mar 06 '25 17:03 julien-vaz

@julien-vaz a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

blueorangutan avatar Mar 06 '25 17:03 blueorangutan

Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 12690

blueorangutan avatar Mar 06 '25 17:03 blueorangutan

I've just successfully builded the packages locally with -Dnoredist. Therefore, I'm requesting the package building again

julien-vaz avatar Mar 11 '25 15:03 julien-vaz

@blueorangutan package

julien-vaz avatar Mar 11 '25 15:03 julien-vaz

@julien-vaz a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

blueorangutan avatar Mar 11 '25 15:03 blueorangutan

Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 12739

blueorangutan avatar Mar 11 '25 16:03 blueorangutan

@blueorangutan package

julien-vaz avatar Mar 11 '25 17:03 julien-vaz

@julien-vaz a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

blueorangutan avatar Mar 11 '25 17:03 blueorangutan

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 12743

blueorangutan avatar Mar 11 '25 18:03 blueorangutan

@blueorangutan package

sureshanaparti avatar Jun 05 '25 09:06 sureshanaparti

@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

blueorangutan avatar Jun 05 '25 09:06 blueorangutan

Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 13614

blueorangutan avatar Jun 05 '25 11:06 blueorangutan

@blueorangutan package

julien-vaz avatar Jun 09 '25 17:06 julien-vaz

@julien-vaz a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

blueorangutan avatar Jun 09 '25 17:06 blueorangutan

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 13679

blueorangutan avatar Jun 09 '25 18:06 blueorangutan

@blueorangutan test

yadvr avatar Jun 10 '25 08:06 yadvr

@rohityadavcloud a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests

blueorangutan avatar Jun 10 '25 08:06 blueorangutan

[SF] Trillian test result (tid-13486) Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8 Total time taken: 58393 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr10505-t13486-kvm-ol8.zip Smoke tests completed. 141 look OK, 0 have errors, 0 did not run Only failed and skipped tests results shown below:

Test Result Time (s) Test File

blueorangutan avatar Jun 11 '25 01:06 blueorangutan

@blueorangutan package

winterhazel avatar Jul 01 '25 18:07 winterhazel

@winterhazel a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

blueorangutan avatar Jul 01 '25 18:07 blueorangutan

Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 13969

blueorangutan avatar Jul 01 '25 18:07 blueorangutan

Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 13969

I've just built the packages locally, so I'm triggering the Blue Orangutan again

julien-vaz avatar Jul 02 '25 17:07 julien-vaz

@blueorangutan package

julien-vaz avatar Jul 02 '25 17:07 julien-vaz

@julien-vaz a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

blueorangutan avatar Jul 02 '25 18:07 blueorangutan

Packaging result [SF]: ✖️ el8 ✖️ el9 ✔️ debian ✖️ suse15. SL-JID 13993

blueorangutan avatar Jul 02 '25 20:07 blueorangutan