Optionally set a user global search preference #11817

Open
opened 2025-12-29 21:50:15 +01:00 by adam · 0 comments
Owner

Originally created by @PieterL75 on GitHub (Nov 7, 2025).

NetBox version

v4.3.7

Feature type

Data model extension

Proposed functionality

I'd like to reopen the FR #17138

The default GlobalSearch Lookup Type is set to partial match.
While this is in most cases good enough, there are also a lot of cases where it just does not cut it.

The proposal is to implement an extra User-Profile based setting that sets the default LookupType for that user.

The concern was that this could confuse users on the results.
To improve that, the resulting URL should include the used lookuptype, so that it can be passed to other users (that have a different default setting).

Use case

In our company, most lookups are regex based, and not contains.
A very common search is esx*.datacenter or rtr*.customer
Each time this search is performed, a second action is needed to change the search type to regex in stead of contains.

Setting the default per user, can reduce the UI interaction, provide consistent result for that user and the why can't this be defaulted question from my users.

Database changes

An extra UserProfile field is required to store the LookupType default.

External dependencies

No response

Originally created by @PieterL75 on GitHub (Nov 7, 2025). ### NetBox version v4.3.7 ### Feature type Data model extension ### Proposed functionality I'd like to reopen the FR #17138 The default GlobalSearch Lookup Type is set to partial match. While this is in most cases good enough, there are also a lot of cases where it just does not cut it. The proposal is to implement an extra User-Profile based setting that sets the default LookupType for that user. The concern was that this could confuse users on the results. To improve that, the resulting URL should include the used lookuptype, so that it can be passed to other users (that have a different default setting). ### Use case In our company, most lookups are `regex` based, and not `contains`. A very common search is `esx*.datacenter` or `rtr*.customer` Each time this search is performed, a second action is needed to change the search type to regex in stead of contains. Setting the default per user, can reduce the UI interaction, provide consistent result for that user and the `why can't this be defaulted` question from my users. ### Database changes An extra UserProfile field is required to store the LookupType default. ### External dependencies _No response_
adam added the type: featurenetboxstatus: backlog labels 2025-12-29 21:50:15 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11817