-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
UI: fix list of vpc network offerings #10595
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this 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) |
There was a problem hiding this comment.
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
@DaanHoogland a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
UI build: ✔️ |
Description
This PR fixes a UI issue when create vpc tier
without this PR, only two offerings are listed
with this PR, three offerings are listed, the new one is
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?