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 list of vpc network offerings #10595

Merged

Conversation

weizhouapache
Copy link
Member

Description

This PR fixes a UI issue when create vpc tier

without this PR, only two offerings are listed

  • "Offering for Isolated Vpc networks with Source Nat service enabled and LB service Disabled"
  • "Offering for Isolated Vpc networks with Internal LB support"

image

with this PR, three offerings are listed, the new one is

  • "Offering for Isolated Vpc networks with Source Nat service enabled"

image

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

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

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

Sorry, something went wrong.

Copy link

codecov bot commented Mar 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 4.28%. Comparing base (6c40a7b) to head (0a2be5f).
Report is 2 commits behind head on 4.19.

❗ There is a different number of reports uploaded between BASE (6c40a7b) and HEAD (0a2be5f). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (6c40a7b) HEAD (0a2be5f)
unittests 1 0
Additional details and impacted files
@@              Coverage Diff              @@
##               4.19   #10595       +/-   ##
=============================================
- Coverage     15.16%    4.28%   -10.88%     
=============================================
  Files          5414      368     -5046     
  Lines        474811    29656   -445155     
  Branches      57911     5206    -52705     
=============================================
- Hits          72017     1272    -70745     
+ Misses       394742    28239   -366503     
+ Partials       8052      145     -7907     
Flag Coverage Δ
uitests 4.28% <ø> (ø)
unittests ?

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.

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

@weizhouapache weizhouapache requested a review from nvazquez March 21, 2025 08:41
@weizhouapache
Copy link
Member Author

@blueorangutan ui

@weizhouapache
Copy link
Member Author

@nvazquez
can you review this PR ? it is related to #9557

Copy link
Contributor

@nvazquez nvazquez 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

@@ -553,9 +553,9 @@ export default {
if (this.publicLBExists && (idx === -1 || this.lbProviderMap.publicLb.vpc.indexOf(offering.service.map(svc => { return svc.provider[0].name })[idx]) === -1)) {
filteredOfferings.push(offering)
} else if (!this.publicLBExists && vpcLbServiceIndex > -1) {
const vpcLbServiceProvider = vpcLbServiceIndex === -1 ? undefined : this.resource.service[vpcLbServiceIndex].provider[0].name
const vpcLbServiceProviders = vpcLbServiceIndex === -1 ? undefined : this.resource.service[vpcLbServiceIndex].provider.map(provider => provider.name)
Copy link
Member Author

Choose a reason for hiding this comment

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

a short explanation:

  • the service has two providers: InternalLbVm and VpcVirtualRouter
  • without this PR, the network offerings are listed only if (1) no LB; (2) provider is InternalLbVm
  • with this PR, the network offerings are listed only if (1) no LB; (2) provider is InternalLbVm; (3) provider is VpcVirtualRouter

@Pearl1594 Pearl1594 added this to the 4.19.3 milestone Mar 21, 2025
@DaanHoogland
Copy link
Contributor

@blueorangutan ui

@blueorangutan
Copy link

@DaanHoogland 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/10595 (QA-JID-583)

@DaanHoogland DaanHoogland merged commit c9c02d0 into apache:4.19 Mar 24, 2025
23 of 25 checks passed
@DaanHoogland DaanHoogland deleted the 4.19-ui-fix-list-vpc-network-offerings branch March 24, 2025 11:40
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.

None yet

5 participants