cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

UI improvements

Open abh1sar opened this issue 1 year ago • 16 comments

Description

This PR does multiple UI improvements

  1. Autofill vCenter host, datacenter and credentials while adding cluster using the zone wide value from vmware_data_center table
  2. Show Usage settings as a different pane in global settings
  3. Option to attach the volume to an instance during volume create.
  4. Show mgmt server's service ip in the details tab of Infrastructure -> Management server.
  5. Don't display create volume snapshot button in the Instance tab for KVM, if the instance is running and "kvm.snapshot.enabled" is false. (Also contains some code cleanup in storage.js)
  6. The name Recurring snapshots is used everywhere except for one place where 'Scheduled' snapshots is used in the Recurring Snapshots form. Change it to Recurring Snapshots.
  7. Reorder the Hypervisor list shown everywhere in order of popularity.

Items 1,3,4,5,6 are UI only changes, and can be tested with just 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

  • [ ] Major
  • [ ] Minor

Bug Severity

  • [ ] BLOCKER
  • [ ] Critical
  • [ ] Major
  • [x] Minor
  • [ ] Trivial

Screenshots (if appropriate):

Screenshot 2024-10-06 at 7 47 11 AM Screenshot 2024-10-06 at 7 47 25 AM Screenshot 2024-10-04 at 3 01 02 AM Screenshot 2024-10-04 at 3 00 38 AM Screenshot 2024-10-04 at 4 13 23 AM

How Has This Been Tested?

How did you try to break this feature and the system with this change?

abh1sar avatar Oct 06 '24 15:10 abh1sar

Codecov Report

Attention: Patch coverage is 8.33333% with 11 lines in your changes missing coverage. Please review.

Project coverage is 16.00%. Comparing base (7e295ec) to head (c59c122). Report is 39 commits behind head on 4.20.

Files with missing lines Patch % Lines
...udstack/api/response/ManagementServerResponse.java 0.00% 4 Missing :warning:
...a/com/cloud/vm/snapshot/VMSnapshotManagerImpl.java 0.00% 4 Missing :warning:
...com/cloud/network/vpn/Site2SiteVpnManagerImpl.java 0.00% 2 Missing :warning:
...ain/java/com/cloud/api/query/QueryManagerImpl.java 0.00% 1 Missing :warning:
Additional details and impacted files
@@             Coverage Diff              @@
##               4.20    #9773      +/-   ##
============================================
- Coverage     16.14%   16.00%   -0.15%     
- Complexity    12972    13065      +93     
============================================
  Files          5639     5644       +5     
  Lines        494299   494915     +616     
  Branches      59909    59960      +51     
============================================
- Hits          79789    79195     -594     
- Misses       405685   406883    +1198     
- Partials       8825     8837      +12     
Flag Coverage Δ
uitests 4.01% <ø> (-0.01%) :arrow_down:
unittests 16.84% <8.33%> (-0.15%) :arrow_down:

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.

codecov[bot] avatar Oct 06 '24 15:10 codecov[bot]

@blueorangutan package

abh1sar avatar Oct 06 '24 18:10 abh1sar

@abh1sar 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 Oct 06 '24 18:10 blueorangutan

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

blueorangutan avatar Oct 06 '24 19:10 blueorangutan

@blueorangutan ui

abh1sar avatar Oct 07 '24 03:10 abh1sar

@abh1sar a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

blueorangutan avatar Oct 07 '24 04:10 blueorangutan

UI build: :heavy_check_mark: Live QA URL: https://qa.cloudstack.cloud/simulator/pr/9773 (QA-JID-461)

blueorangutan avatar Oct 07 '24 04:10 blueorangutan

@abh1sar , given that there are DB changes as well, I don't think UI tests will be enought, do you?

DaanHoogland avatar Oct 07 '24 13:10 DaanHoogland

@abh1sar , given that there are DB changes as well, I don't think UI tests will be enought, do you?

@DaanHoogland You are right. These items contain db changes for which full testing will be required 2. Show Usage settings as a different pane in global settings 7. Reorder the Hypervisor list shown everywhere in order of popularity.

For the rest of the items, ui testing is enough.

P.S I have added db changes to schema-41900to42000 for now. Will move it to schema-42000-42010 once CloudStack version changes to 4.20.1. Will keep this PR in draft until then.

abh1sar avatar Oct 08 '24 01:10 abh1sar

[SF] Trillian Build Failed (tid-11647)

blueorangutan avatar Oct 10 '24 06:10 blueorangutan

@blueorangutan package

abh1sar avatar Oct 10 '24 10:10 abh1sar

@abh1sar 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 Oct 10 '24 10:10 blueorangutan

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

blueorangutan avatar Oct 10 '24 11:10 blueorangutan

@blueorangutan test

abh1sar avatar Oct 14 '24 10:10 abh1sar

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

blueorangutan avatar Oct 14 '24 10:10 blueorangutan

[SF] Trillian test result (tid-11662) Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8 Total time taken: 49908 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9773-t11662-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 Oct 15 '24 00:10 blueorangutan

@blueorangutan package

abh1sar avatar Oct 22 '24 13:10 abh1sar

@abh1sar 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 Oct 22 '24 13:10 blueorangutan

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

blueorangutan avatar Oct 22 '24 15:10 blueorangutan

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

github-actions[bot] avatar Oct 23 '24 01:10 github-actions[bot]

@blueorangutan package

borisstoyanov avatar Oct 29 '24 08:10 borisstoyanov

@borisstoyanov 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 Oct 29 '24 08:10 blueorangutan

@blueorangutan ui

abh1sar avatar Oct 29 '24 08:10 abh1sar

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

blueorangutan avatar Oct 29 '24 09:10 blueorangutan

@blueorangutan ui

borisstoyanov avatar Oct 29 '24 09:10 borisstoyanov

@borisstoyanov a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

blueorangutan avatar Oct 29 '24 10:10 blueorangutan

@blueorangutan package

borisstoyanov avatar Oct 29 '24 10:10 borisstoyanov

@borisstoyanov 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 Oct 29 '24 10:10 blueorangutan

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

blueorangutan avatar Oct 29 '24 11:10 blueorangutan

@blueorangutan ui

borisstoyanov avatar Oct 29 '24 11:10 borisstoyanov