Skip to content

Fix VPC network offerings listing in isolated network creation form#12645

Open
erikbocks wants to merge 1 commit intoapache:mainfrom
scclouds:fix-vpc-network-offerings-listing
Open

Fix VPC network offerings listing in isolated network creation form#12645
erikbocks wants to merge 1 commit intoapache:mainfrom
scclouds:fix-vpc-network-offerings-listing

Conversation

@erikbocks
Copy link
Collaborator

Description

Currently, when creating a new isolated network, it is possible to assign it as a VPC tier. The VPC assignment field is shown only when a VPC network offering is selected. However, it was noticed that VPC network offerings are listed only if the current user has at least one VPC. Otherwise, VPC network offering were not listed and it was necessary to access another account that has a VPC or create a dummy VPC.

Changes were made,to list offerings based on the form selected account instead of the current user. Besides that, an warning was added below the network offerings field informing that VPC network offerings will be shown only if the selected account has at least one VPC.

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

Screenshots (if appropriate):

Warning message:

image
No VPC user offerings image

No warning shown for account that has a VPC:

image
VPC network offerings listed for a account that has a VPC image

How Has This Been Tested?

Logged in with the admin account, I created a VPC to the radm account. Then, I accessed the isolated network creation form and validated that the VPC offerings were not shown (because the current account did not had a VPC). Then, I applied the PR changes to my local environment.

With the changes applied, the isolated network form was accessed again, and it was possible to see the warning message. When the radm was selected in the form, the warning message was hidden and the VPC offerings were listed successfully.

The same tests were reproduced for projects.

@codecov
Copy link

codecov bot commented Feb 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 17.90%. Comparing base (9ae696d) to head (3075a64).
⚠️ Report is 618 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #12645      +/-   ##
============================================
+ Coverage     16.26%   17.90%   +1.63%     
- Complexity    13428    16093    +2665     
============================================
  Files          5660     5938     +278     
  Lines        499963   532864   +32901     
  Branches      60708    65192    +4484     
============================================
+ Hits          81330    95391   +14061     
- Misses       409559   426794   +17235     
- Partials       9074    10679    +1605     
Flag Coverage Δ
uitests 3.67% <ø> (-0.49%) ⬇️
unittests 19.00% <ø> (+1.88%) ⬆️

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.

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.

1 participant