UI: Removed redundant input fields from ACL List rules modal#8253
Conversation
|
Maybe it's also worth mentioning somewhere in the ACL Rules API documentation?
|
|
@DaanHoogland a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
@OlegChuev , thanks for the fix. I am not sure if it covers all combinations this way, but I'll have a test/look. |
|
UI build: ✔️ |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 4.18 #8253 +/- ##
============================================
+ Coverage 12.93% 13.09% +0.15%
- Complexity 8944 9120 +176
============================================
Files 2715 2720 +5
Lines 256107 257638 +1531
Branches 39938 40168 +230
============================================
+ Hits 33139 33748 +609
- Misses 218808 219625 +817
- Partials 4160 4265 +105 ☔ View full report in Codecov by Sentry. |
|
@OlegChuev , it works but... |
|
@DaanHoogland yep, I think it makes sense to make this field visible if the user enters Protocol Number equal to 1 (ICMP) however, personally, I find it a bit weird to enter the protocol number directly instead of choosing the already predefined ICMP, don't you think so? :p |
maybe, but there are 255 protocol numbers possible and I have no idea if all of those use port ranges or maybe some of them use service/qos or some other combination. I don't think we can cater for everything. Also I do not know if your change is affending someone's intended use. Given those remarks, it is fine by me! |
|
@alexandremattioli you want to have a look? |
shwstppr
left a comment
There was a problem hiding this comment.
UI code change looks okay but I'm not certain about the use-case.
@alexandremattioli @andrijapanicsb @NuxRo @rajujith can comment better
|
Since we have "ICMP" as a dedicated menu item (next to Protocol Number) - I think this PR makes sense - hide other ICMP fields if "ICMP" is not specifically the chosen protocol. |
+1 |
Just a quick question here: since we are making these two fields visible, does it make sense to change the backend API logic as well? Currently, even if we set the Protocol Number to
|
If you can do that easily - sure, and with minimal effort/risk - otherwise the API error message is very descriptive and will help the operator learn his IP skills :) |
weizhouapache
left a comment
There was a problem hiding this comment.
let's merge this. cc @DaanHoogland @OlegChuev @andrijapanicsb @shwstppr
I will take the rest (API, service, etc)
- list protocol numbers in the dropdown
- display icmp type/code if protocol number is 1 (ICMP) or protocol is ICMP, but start/end ports will be hidden then
- list icmp types/codes in the dropdown
- check icmp type/code if protocol number is 1 or protocol is ICMP
* 4.18: server: Initial new vpnuser state (apache#8268) UI: Removed redundant IP Address Column when create Port forwarding rules (apache#8275) UI: Removed ICMP input fields for protocol number from ACL List rules modal (apache#8253) server: check if there are active nics before network GC (apache#8204)

Description
This PR removes redundant input fields from the front end (FE) on the 'Add ACL Rules' modal window.
According to
server/src/main/java/com/cloud/network/vpc/NetworkACLServiceImpl.java, line 588:In the current state, the input field exists but isn't functional.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
Current state:

After fix:

How Has This Been Tested?
How did you try to break this feature and the system with this change?