Skip to content

Conversation

@Pearl1594
Copy link
Contributor

@Pearl1594 Pearl1594 commented Feb 3, 2025

Description

This PR attempts to improve #10222.
Before fix:
for default untagged physical network - all shared network offerings are listed, including the tagged ones:
image

for Physical network with tag: phy2 - all shared offering are listed - default and tagged:
image

After fix:
for default untagged physical network - only untagged offerings are listed:
Screenshot from 2025-02-05 00-18-17

image

for Physical network with tag: phy2 - all shared offering are listed - default and tagged:
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?

@codecov
Copy link

codecov bot commented Feb 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 15.16%. Comparing base (c1bc57b) to head (8d8b21c).
Report is 11 commits behind head on 4.19.

Additional details and impacted files
@@             Coverage Diff             @@
##               4.19   #10320     +/-   ##
===========================================
  Coverage     15.16%   15.16%             
- Complexity    11302    11333     +31     
===========================================
  Files          5408     5409      +1     
  Lines        473931   476911   +2980     
  Branches      57844    58763    +919     
===========================================
+ Hits          71866    72332    +466     
- Misses       394034   396507   +2473     
- Partials       8031     8072     +41     
Flag Coverage Δ
uitests 4.22% <ø> (-0.08%) ⬇️
unittests 15.90% <ø> (+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.

Copy link
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

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

code looks good, but not sure if this is functionally what we want.
cc @rajujith

@rajujith
Copy link

rajujith commented Feb 4, 2025

@Pearl1594 After the fix the listing does list all networking even though a tag is passed? also shouldn't it list all network offerings when a tag is not passed?

@weizhouapache
Copy link
Member

to be frank, I am a bit confused what is expected

@Pearl1594
Copy link
Contributor Author

@weizhouapache I've added the isTagged=false if no tags are present on the physical network.

@weizhouapache
Copy link
Member

@weizhouapache I've added the isTagged=false if no tags are present on the physical network.

thanks @Pearl1594

code lgtm

sc.addAnd("tags", SearchCriteria.Op.EQ, tags);
}
}
// else {
Copy link
Member

Choose a reason for hiding this comment

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

remove this ?

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 5, 2025

@DaanHoogland
Copy link
Contributor

@rajujith , can you retest?

@DaanHoogland DaanHoogland added this to the 4.19.2 milestone Feb 5, 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/10320 (QA-JID-542)

@rajujith
Copy link

rajujith commented Feb 7, 2025

@blueorangutan package

@blueorangutan
Copy link

@rajujith a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 12372

Copy link
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

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

clgtm, tested against a lab env

@DaanHoogland DaanHoogland merged commit a1117ac into 4.19 Feb 7, 2025
49 of 50 checks passed
@DaanHoogland DaanHoogland deleted the list-non-tagged branch February 7, 2025 13:18
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Jun 19, 2025
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.

5 participants