-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Added displaynetwork option in filters for listnetwork only for admin #10209
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
clgtm
@DaanHoogland a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
UI build: ✔️ |
tested ok in qa! |
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 ? |
@DaanHoogland can you please check again, added fix for that too. |
@DaanHoogland a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
UI build: ✔️ |
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 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. |
@harikrishna-patnala do you want to polish this more now or merge and postpone further enhancements? |
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. |
ok, I think the remaining 404 is actually valid and how to deal with it requires functional agreement.
I actually like neither ;) |
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.
Types of changes
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Edit a network (test) and set "Display network" to false, then list networks

Update filter option, set "Display network" to false

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

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