-
Notifications
You must be signed in to change notification settings - Fork 360
T7282: op-mode: show firewall group filtering and tab completion update #4414
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: current
Are you sure you want to change the base?
Conversation
👍 |
Linting failed in the firewall.py file, but not in the section I modified. I can reformat the file if you’d like, but I wanted to keep the focus on the purpose of the PR instead of linting. |
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.
Thank you for the submission. Looks like you are mangling two changes into one commit which is - from a software development and life cycle point - not a good idea.
Can you please split this change into two individual commits?
- Update TAB completion helpers
- Fix the for loop by an early exit in the script showing the firewall rules?
Just to clarify, would you want these completely split with different tasks and PRs? Or just different commits inside this PR? |
436462a
to
a961c94
Compare
Please use individual commits inside a single PR referencing the same task id. |
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.
Implementation looks good to me
a961c94
to
cd6fcb4
Compare
Rebased on current to sync up other firewall.py changes for remote-groups |
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.
Completion help is useful for firewall groups
before this gets merged - I think there is an issue with how the path tab completion works. Admittedly, I don't know how all of that works either currently but there is an issue if a group type isn't found it doesn't continue down the list. so in this commit, if a dynamic group isn't found, the rest won't process. |
… over any existing group directories
cd6fcb4
to
34df2ab
Compare
Completely overhauled the path completion logic. Previously, when using multiple entries in the completion help, a series of With the updated approach, each group directory is checked individually and only listed if it exists, ensuring more accurate and complete output. |
CI integration ❌ failed! Details
|
Change summary
When showing firewall group , any dynamic groups are also shown along with the requested group name. Dynamic-groups, mac-groups and domain-groups are also not shown in tab completion.
Types of changes
Related Task(s)
T7282
Related PR(s)
How to test / Smoketest result
Checklist: