Quick Search should also Search the Site field #10912

Closed
opened 2025-12-29 21:37:38 +01:00 by adam · 1 comment
Owner

Originally created by @Hestichan on GitHub (Mar 18, 2025).

NetBox version

NetBox Community v4.2.5 (2025-03-06)

Feature type

Change to existing functionality

Proposed functionality

The Quick Search box at the top of most top-level category pages (Circuits, Devices, etc.) should be able to query the Site values, as defined under Organization > Sites.

Use case

I'm trying to be able to Quick Search in the Circuits category for circuits assigned to a particular site. Creating a termination A of type Site and assigning the site value does not work, unless I also add a text description of the same value and THAT gets searched by Quick Search, but this is an extra step that is more prone to error than if it would just query the selected site. Quick search is much faster and convenient than digging into the Filters area to find the right filter to apply every time I want to search for objects belonging to a site, so it would be nice if Quick Search supported the Site values by default. See #14596 for where you did this for a similar case (probably why description field works).

Database changes

No response

External dependencies

No response

Originally created by @Hestichan on GitHub (Mar 18, 2025). ### NetBox version NetBox Community v4.2.5 (2025-03-06) ### Feature type Change to existing functionality ### Proposed functionality The Quick Search box at the top of most top-level category pages (Circuits, Devices, etc.) should be able to query the Site values, as defined under Organization > Sites. ### Use case I'm trying to be able to Quick Search in the Circuits category for circuits assigned to a particular site. Creating a termination A of type Site and assigning the site value does not work, unless I also add a text description of the same value and THAT gets searched by Quick Search, but this is an extra step that is more prone to error than if it would just query the selected site. Quick search is much faster and convenient than digging into the Filters area to find the right filter to apply every time I want to search for objects belonging to a site, so it would be nice if Quick Search supported the Site values by default. See #14596 for where you did this for a similar case (probably why description field works). ### Database changes _No response_ ### External dependencies _No response_
adam added the type: feature label 2025-12-29 21:37:38 +01:00
adam closed this issue 2025-12-29 21:37:38 +01:00
Author
Owner

@jeremystretch commented on GitHub (Mar 20, 2025):

The general purpose search filter intentionally does not filter on related objects, for reasons concerning both performance and dilution. The description field was added in the FR you referenced because it is a local field, not a related object. If you need to filter objects by the assigned site, please use the filters provided expressly for that purpose.

@jeremystretch commented on GitHub (Mar 20, 2025): The general purpose search filter intentionally does not filter on related objects, for reasons concerning both performance and dilution. The description field was added in the FR you referenced because it is a local field, not a related object. If you need to filter objects by the assigned site, please use the filters provided expressly for that purpose.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10912