-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Replace tags list on object filters with a Select2 selection widget #2921
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
Comments
This is not just present on the Prefix, but anywhere where the tag cloud exists. I am not sure if this should be classed as a bug as this appears to be how it was intended to operate. |
I expected that it wasn't limited to just the To make sure I follow the correct process, do I need to open an FR or by having the Let me know if I need to do anything else. |
My vote would be to replace the current UI tag filtering method with a multi-select2 widget as a part of the standard filter forms. |
That would be perfect! Having separate methods for filtering that get in the way of each other is not ideal. |
I was also surprised that when I selected a tag to drill down to a subset of devices, and then entered part of a device's name, that the tag filtering was lost. However today there's no way to remove tag filtering either, apart from doing an unrelated search. I agree that having a multi-select would be good, where you can select tag(s) and deselect them as separate operations. It needs to be clear whether it acts as "and" or "or". I guess a multi-select normally acts as "or", but there's also a valid use case for "and". Perhaps there should be selection labelled "any" or "all". |
I've identified a tag display bug (v2.6.6) that would be remediated by this fix. Tag two objects (2 sites or 2 circuits for example) with tags that partially match: Template line in question: https://github.com/netbox-community/netbox/blob/develop/netbox/templates/inc/tags_panel.html#L10 |
I was tackling this issue by adding a new class that the filter forms can inherit from but ran into the problem with ordering as some of them have their field order set part-implicitly (some fields are in Inheritance without modifying the order will place the tags field between the explicit and implicit fields in the filter form, so I'd have to order all of them manually. In addition, the field will become a part of the primary filter panel (not sure if we should keep it in a separate panel for distinction). The straight-forward solution would be to just change |
Fixes #2921: Replace tags filter with Select2 widget
Environment
Steps to Reproduce
Prefixes
page and in theTags
section of the WebUI, click to filter by one of the tagsApply
Expected Behavior
To be able to cumulatively add filters and tags as the same time to drill down and find what the object you may be looking for.
Observed Behavior
Explained above.
The text was updated successfully, but these errors were encountered: