UI / exclusive filters #5535

Closed
opened 2025-12-29 19:29:04 +01:00 by adam · 5 comments
Owner

Originally created by @Ren60FHk on GitHub (Oct 20, 2021).

NetBox version

3.0.7

Feature type

Change to existing functionality

Proposed functionality

Exclusive filters for devices.

Use case

I want to find all devices, but for not specific manufacturer. To be able to do this in current version, I must select all vendors, except one. If we have a lot of these, this task could be exhausting. Ability to exceptional filtering will give us more ergonomic search. Probably, this functionality could be extended beyond devices.

Database changes

No response

External dependencies

No response

Originally created by @Ren60FHk on GitHub (Oct 20, 2021). ### NetBox version 3.0.7 ### Feature type Change to existing functionality ### Proposed functionality Exclusive filters for devices. ### Use case I want to find all devices, but for not specific manufacturer. To be able to do this in current version, I must select all vendors, except one. If we have a lot of these, this task could be exhausting. Ability to exceptional filtering will give us more ergonomic search. Probably, this functionality could be extended beyond devices. ### Database changes _No response_ ### External dependencies _No response_
adam added the type: feature label 2025-12-29 19:29:04 +01:00
adam closed this issue 2025-12-29 19:29:05 +01:00
Author
Owner

@jeremystretch commented on GitHub (Nov 11, 2021):

Exclusive filters for devices.

Please elaborate on the proposed implementation.

@jeremystretch commented on GitHub (Nov 11, 2021): > Exclusive filters for devices. Please elaborate on the proposed implementation.
Author
Owner

@Ren60FHk commented on GitHub (Nov 12, 2021):

Exclusive filters for devices.

Please elaborate on the proposed implementation.

First of all, I'm talking solely about the UI. For example: if I want to find all devices except the devices by a vendor (manufacturer) A, I do the following:

  1. Navigate to Devices>Filters.
  2. Select all vendors except one, vendor A, and press the Search button.

If we have a couple of vendors, it's not a big problem. But if we have a lot of vendors, I find this not ergonomic. I want to be able except one than select all except one.
I propose the following:
Probably quick and dirty - an ability of prepending the exclamation point to a manufacturer name (with a hint in the UI).
Something like this:
Screenshot_2021-11-12_09-55-42

As another solution, I see a drop down list opening by clicking on the Manufacturer field in the Filters tab, with a more complicated logic for selection: select all, select invert, select none, etc., something like in spreadsheets (WPS Office, MS Excel, OpenOffice, etc).
I hope I gave the clear explanation to you!

@Ren60FHk commented on GitHub (Nov 12, 2021): > > Exclusive filters for devices. > > Please elaborate on the proposed implementation. First of all, I'm talking solely about the UI. For example: if I want to find all devices except the devices by a vendor (manufacturer) A, I do the following: 1. Navigate to **Devices>Filters**. 2. Select all vendors except one, vendor A, and press the **Search** button. If we have a couple of vendors, it's not a big problem. But if we have a lot of vendors, I find this not ergonomic. I want to be able _except one_ than _select all except one_. I propose the following: Probably quick and dirty - an ability of prepending the exclamation point to a manufacturer name (with a hint in the UI). Something like this: ![Screenshot_2021-11-12_09-55-42](https://user-images.githubusercontent.com/54929420/141426157-f9372092-edd2-4f0a-82b1-cc57a2cf8b98.png) As another solution, I see a drop down list opening by clicking on the **Manufacturer** field in the **Filters** tab, with a more complicated logic for selection: select all, select invert, select none, etc., something like in spreadsheets (WPS Office, MS Excel, OpenOffice, etc). I hope I gave the clear explanation to you!
Author
Owner

@jeremystretch commented on GitHub (Nov 15, 2021):

It's not part of the UI, however NetBox does allow you to negate most filters by appending the __n filter lookup. We can look at adding support for this in the UI but I wanted to point it out.

@jeremystretch commented on GitHub (Nov 15, 2021): It's not part of the UI, however NetBox does allow you to negate most filters by [appending the `__n` filter lookup](https://netbox.readthedocs.io/en/stable/rest-api/filtering/#lookup-expressions). We can look at adding support for this in the UI but I wanted to point it out.
Author
Owner

@Ren60FHk commented on GitHub (Nov 16, 2021):

It's not part of the UI, however NetBox does allow you to negate most filters by appending the __n filter lookup. We can look at adding support for this in the UI but I wanted to point it out.

Got it.

@Ren60FHk commented on GitHub (Nov 16, 2021): > It's not part of the UI, however NetBox does allow you to negate most filters by [appending the `__n` filter lookup](https://netbox.readthedocs.io/en/stable/rest-api/filtering/#lookup-expressions). We can look at adding support for this in the UI but I wanted to point it out. Got it.
Author
Owner

@jeremystretch commented on GitHub (Dec 13, 2021):

Actually, let's fold this into #7604, since negation is just one of several available lookups.

@jeremystretch commented on GitHub (Dec 13, 2021): Actually, let's fold this into #7604, since negation is just one of several available lookups.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5535