Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI: Fix userdata and load balancer selection #10016

Merged
merged 2 commits into from
Dec 4, 2024

Conversation

bernardodemarco
Copy link
Collaborator

Description

Currently, in the VM deployment wizard, when the user tries to select a userdata by clicking on its row (outside the radio button), the userdata is not selected. This behavior also occurs for load balancer selection in the autoscale group creation form.

Additionally, whenever the listUserData API response doesn't contain the params attribute, the following exception is thrown in the browser's console:

TypeError: Cannot read properties of undefined (reading 'forEach')

This PR addresses these issues by enabling users to select the VM's userdata and the autoscale group's load balancer by clicking on the corresponding resource table rows. Furthermore, the UI exception is now properly handled.


Fixes #9990 and fixes #9991

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)
  • 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
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

  • Verified that VM userdata can now be selected by clicking on the corresponding table row.
  • Verified that autoscale group load balancers can now be selected by clicking on the corresponding table row.

@bernardodemarco bernardodemarco added this to the 4.20.1 milestone Dec 2, 2024
Copy link

codecov bot commented Dec 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 15.96%. Comparing base (8f63660) to head (10922e7).
Report is 23 commits behind head on 4.20.

Additional details and impacted files
@@             Coverage Diff              @@
##               4.20   #10016      +/-   ##
============================================
+ Coverage     15.80%   15.96%   +0.15%     
- Complexity    12586    12737     +151     
============================================
  Files          5627     5627              
  Lines        492344   492433      +89     
  Branches      59694    59711      +17     
============================================
+ Hits          77829    78604     +775     
+ Misses       405992   405156     -836     
- Partials       8523     8673     +150     
Flag Coverage Δ
uitests 4.03% <ø> (-0.01%) ⬇️
unittests 16.79% <ø> (+0.16%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sureshanaparti
Copy link
Contributor

@blueorangutan ui

@blueorangutan
Copy link

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

@blueorangutan
Copy link

UI build: ✔️
Live QA URL: https://qa.cloudstack.cloud/simulator/pr/10016 (QA-JID-492)

Copy link
Collaborator

@winterhazel winterhazel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, verified in QA

Copy link
Member

@weizhouapache weizhouapache left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code lgtm

@DaanHoogland
Copy link
Contributor

I am merging forward 4.19 on 4.20 and will merge this as soon as the conflicts are taken care of.

@DaanHoogland DaanHoogland merged commit 9960e40 into apache:4.20 Dec 4, 2024
25 checks passed
DaanHoogland added a commit that referenced this pull request Dec 4, 2024
* 4.20:
  UI: Fix userdata and load balancer selection (#10016)
  Prevent password updates for SAML and LDAP users (#9999)
  cloudstack-migrate-databases: sql AND added (#10033)
  engine/schema: move SQLs to 4.20.0 to 4.20.1 upgrade (#10018)
  Remove user from project before deletion (#10008)
  Simplify validation for creating volume templates via UI (#9828)
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Dec 12, 2024
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Dec 12, 2024
* 4.20:
  UI: Fix userdata and load balancer selection (apache#10016)
  Prevent password updates for SAML and LDAP users (apache#9999)
  cloudstack-migrate-databases: sql AND added (apache#10033)
  engine/schema: move SQLs to 4.20.0 to 4.20.1 upgrade (apache#10018)
  Remove user from project before deletion (apache#10008)
  Simplify validation for creating volume templates via UI (apache#9828)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants