Skip to content

Add VR's system offering to network listing#12862

Open
erikbocks wants to merge 2 commits intoapache:4.20from
scclouds:add-offering-to-network-listing
Open

Add VR's system offering to network listing#12862
erikbocks wants to merge 2 commits intoapache:4.20from
scclouds:add-offering-to-network-listing

Conversation

@erikbocks
Copy link
Collaborator

Description

When listing network offerings with the listNetworkOfferings API, the VR's system offering ID is already returned. However, this information is not present at the GUI. Thus, changes were made to the listNetworkOfferings response to also return the system offering's name, and to the GUI to display the network offering's system offering as a column.

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):

image

How Has This Been Tested?

In a environment without the changes, the Network Offerings tab was accessed and I validated that there was no system offering information. With CloudMonkey, I called the listNetworkOfferings API and validated that the response contained only the system offering's ID.

Then, after installing the packages containing the PR changes, I called the listNetworkOfferings API and validated that the API response now also returned the service offering's name.

{
      "displaytext": "Offering for Isolated networks with Source Nat service enabled",
      "name": "DefaultIsolatedNetworkOfferingWithSourceNatService",
      ...
      "serviceofferingid": "dde866be-b594-45c9-9a0f-f65b9f48ea0c",
      "serviceofferingname": "System Offering For Software Router",
}

Via the GUI, the Network Offering tab was accessed and I validated that the network offering's system offering was also being displayed correctly (as it can be seen in the Screenshots section of the message). I also validated that the link to the system offering's page was working successfully and redirecting to the correct system offering.

@codecov
Copy link

codecov bot commented Mar 19, 2026

Codecov Report

❌ Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 16.25%. Comparing base (56dc119) to head (2e0df54).
⚠️ Report is 23 commits behind head on 4.20.

Files with missing lines Patch % Lines
...oudstack/api/response/NetworkOfferingResponse.java 0.00% 6 Missing ⚠️
...src/main/java/com/cloud/api/ApiResponseHelper.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               4.20   #12862      +/-   ##
============================================
- Coverage     16.25%   16.25%   -0.01%     
+ Complexity    13425    13414      -11     
============================================
  Files          5662     5664       +2     
  Lines        500167   500476     +309     
  Branches      60740    60780      +40     
============================================
+ Hits          81318    81338      +20     
- Misses       409763   410043     +280     
- Partials       9086     9095       +9     
Flag Coverage Δ
uitests 4.15% <ø> (-0.01%) ⬇️
unittests 17.10% <0.00%> (-0.01%) ⬇️

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