-
Notifications
You must be signed in to change notification settings - Fork 1.2k
add delete option for additional ports #22174
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
base: main
Are you sure you want to change the base?
Conversation
|
Hello @libkurisu ! Indeed this is a bit annoying right now. I figure if you have multiple additional ports, it's not much of an use case to delete all of them. I think it would be cleaner to represent each extra port in its own table line. I.e. like a service, but with "Additional port" as service name. Then removing them would also be exactly parallel to services. Are you interested in working on that? |
|
I'd be happy to continue working on this, sounds simple enough as well. |
|
Now that i've thought about it for a bit I have to ask if it would be good enough to simply list each additional tcp/udp port in it's own row in the public zone, or if it would be preferable for them to have their own separate list on the firewalls page. |
|
@libkurisu Ports and services are structurally very similar. Additional ports are also specific to a zone, so they should have the same format/representation as services. So it's not specific to the "public" zone, and IMHO they also shouldn't have their own table. |
|
Thanks, I just wanted some additional input before I got started working on it. |
|
Hello! This is complete but I have not marked as ready for review because I am unsure how to resolve the protection checks. untitled.mp4 |
|
@libkurisu Thanks! This looks good at first sight (perhaps some minor cleanups). Don't worry about the "protection checks" for now -- this is probably just your branch being behind origin/main too much. The main piece of work now is to adjust the tests, in particular Cheers! |
Fixes #21393
as I mentioned there I do feel like there could be some more work to make this a bit better. like breaking the additional ports into a collapsible list that you could delete them one by one? (as well as being able to delete them all at once). but I feel this is good enough for now. :P
quick.mp4