Skip to content

Conversation

harikrishna-patnala
Copy link
Contributor

@harikrishna-patnala harikrishna-patnala commented Jan 20, 2025

Description

This PR addresses the issue #9386

With this PR, admin will now have the new option in filters section in list networks page. If a network is edited by setting "Display Network" to false, it will still redirect to 404 page, but then have the below option to list those kind of networks.

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)

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

  1. Edit a network (test) and set "Display network" to false, then list networks
    image

  2. Update filter option, set "Display network" to false
    image

  3. click Search, Networks to which display networks set to false will be shown
    image

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

@apache apache deleted a comment from blueorangutan Jan 20, 2025
@apache apache deleted a comment from blueorangutan Jan 20, 2025
Copy link

codecov bot commented Jan 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 15.13%. Comparing base (9967bb3) to head (f4d3042).
Report is 12 commits behind head on 4.19.

Additional details and impacted files
@@            Coverage Diff            @@
##               4.19   #10209   +/-   ##
=========================================
  Coverage     15.13%   15.13%           
- Complexity    11274    11279    +5     
=========================================
  Files          5408     5408           
  Lines        473974   474016   +42     
  Branches      57813    57824   +11     
=========================================
+ Hits          71730    71746   +16     
- Misses       394227   394248   +21     
- Partials       8017     8022    +5     
Flag Coverage Δ
uitests 4.29% <ø> (-0.01%) ⬇️
unittests 15.85% <ø> (+<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.

clgtm

@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/10209 (QA-JID-512)

@DaanHoogland
Copy link
Contributor

tested ok in qa!
@harikrishna-patnala this may be a bit counterintuitive for users, don't you think? The display in the list being possible but the details not. Maybe we can find a good spot to document/explain this?

@harikrishna-patnala
Copy link
Contributor Author

harikrishna-patnala commented Jan 20, 2025

tested ok in qa! @harikrishna-patnala this may be a bit counterintuitive for users, don't you think? The display in the list being possible but the details not. Maybe we can find a good spot to document/explain this?

I suppose users you mean the admins! The display is possible only when they select "Display Network" to false, so I think it is intuitive. But what I just realized is clicking on that network leads to a 404 error. I'm thinking to extend this PR to include that as well. Any objections on that ?

@harikrishna-patnala
Copy link
Contributor Author

@blueorangutan ui

@harikrishna-patnala
Copy link
Contributor Author

@DaanHoogland can you please check again, added fix for that too.

@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/10209 (QA-JID-516)

Copy link
Contributor

@shwstppr shwstppr 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 but for such networks opened from other than listview it would still return 404. Others can advise. Maybe in future we improve this API parameter which somehow allows list a network irrespective of network's displaynetwork value for admins

@DaanHoogland
Copy link
Contributor

Code LGTM but for such networks opened from other than listview it would still return 404. Others can advise. Maybe in future we improve this API parameter which somehow allows list a network irrespective of network's displaynetwork value for admins

I had the same finding @shwstppr but agree this is another issue (UI polish). At least now the network can be viewed in the UI at all.

@DaanHoogland
Copy link
Contributor

@harikrishna-patnala do you want to polish this more now or merge and postpone further enhancements?

@harikrishna-patnala
Copy link
Contributor Author

Did some code investigation and I agreed with @shwstppr this has to be improved from API param, so I think we are good with the existing PR changes @DaanHoogland if you agree let's merge this.

@DaanHoogland
Copy link
Contributor

ok, I think the remaining 404 is actually valid and how to deal with it requires functional agreement.

  • one take would be to revert to the list
  • another one to be cleaver about the display parameter

I actually like neither ;)
merging

@DaanHoogland DaanHoogland merged commit 4d9fd1b into apache:4.19 Jan 23, 2025
25 of 26 checks passed
@DaanHoogland DaanHoogland deleted the AddDisplayNetworkOption branch January 23, 2025 08:36
rg9975 pushed a commit to rg9975/cloudstack that referenced this pull request Jan 31, 2025
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.

UI: Network 'not found' when displaynetwork=false even when logged in as admin
4 participants