Saving a search as a filter #2423

Closed
opened 2025-12-29 17:25:58 +01:00 by adam · 5 comments
Owner

Originally created by @angely-dev on GitHub (Mar 1, 2019).

Environment

  • Python version: 3.6
  • NetBox version: 61003208e802 (v2.4.8)

Proposed Functionality

Add the ability to save a search in the NetBox menu and name it.

Use Case

An example :

  • We commonly use the filter q=Pool&vrf=0&status=1&role=service-inet to get all our public IP pools.
  • Each user has to bookmark this link in its browser.
  • The ability to save a search in the NetBox menu for all users would be very convenient:

save_search_as_filter

Database Changes

This change requires to add a new table that stores the search (e.g., q=Pool&vrf=0&status=1&role=service-inet) and the name (e.g., public IP pools) as well as an admin section to maintain the saved searches.

External Dependencies

Originally created by @angely-dev on GitHub (Mar 1, 2019). <!-- NOTE: This form is only for proposing specific new features or enhancements. If you have a general idea or question, please post to our mailing list instead of opening an issue: https://groups.google.com/forum/#!forum/netbox-discuss NOTE: Due to an excessive backlog of feature requests, we are not currently accepting any proposals which significantly extend NetBox's feature scope. Please describe the environment in which you are running NetBox. Be sure that you are running an unmodified instance of the latest stable release before submitting a bug report. --> ### Environment * Python version: 3.6 * NetBox version: 61003208e802 (v2.4.8) <!-- Describe in detail the new functionality you are proposing. Include any specific changes to work flows, data models, or the user interface. --> ### Proposed Functionality Add the ability to save a search in the NetBox menu and name it. <!-- Convey an example use case for your proposed feature. Write from the perspective of a NetBox user who would benefit from the proposed functionality and describe how. ---> ### Use Case An example : - We commonly use the filter `q=Pool&vrf=0&status=1&role=service-inet` to get all our public IP pools. - Each user has to bookmark this link in its browser. - The ability to save a search in the NetBox menu for all users would be very convenient: ![save_search_as_filter](https://user-images.githubusercontent.com/4362224/53636051-3574a380-3c1f-11e9-9535-09f975c3c91c.png) <!-- Note any changes to the database schema necessary to support the new feature. For example, does the proposal require adding a new model or field? (Not all new features require database changes.) ---> ### Database Changes This change requires to add a new table that stores the search (e.g., `q=Pool&vrf=0&status=1&role=service-inet`) and the name (e.g., `public IP pools`) as well as an admin section to maintain the saved searches. <!-- List any new dependencies on external libraries or services that this new feature would introduce. For example, does the proposal require the installation of a new Python package? (Not all new features introduce new dependencies.) --> ### External Dependencies
adam closed this issue 2025-12-29 17:25:59 +01:00
Author
Owner

@jeremystretch commented on GitHub (Mar 1, 2019):

I'm sorry but we're not able to accept requests for any new features until the current backlog has been reduced.

@jeremystretch commented on GitHub (Mar 1, 2019): I'm sorry but we're not able to accept requests for any new features until the current backlog has been reduced.
Author
Owner

@angely-dev commented on GitHub (Mar 1, 2019):

I understand and this is not an important feature.
Maybe we are going to develop it ourselves and send a pull request.
Thanks for your work on NetBox!

@angely-dev commented on GitHub (Mar 1, 2019): I understand and this is not an important feature. Maybe we are going to develop it ourselves and send a pull request. Thanks for your work on NetBox!
Author
Owner

@tb-killa commented on GitHub (Mar 2, 2019):

If you use this type of search in periodic way, the simple solution would be for the first you build your search links via the

BANNER_TOP
BANNER_BOTTOM
Setting these variables will display content in a banner at the top and/or bottom of the page, respectively. HTML is allowed.

as this is show everywhere.

@tb-killa commented on GitHub (Mar 2, 2019): If you use this type of search in periodic way, the simple solution would be for the first you build your search links via the ```` BANNER_TOP BANNER_BOTTOM Setting these variables will display content in a banner at the top and/or bottom of the page, respectively. HTML is allowed. ```` as this is show everywhere.
Author
Owner

@angely-dev commented on GitHub (Mar 2, 2019):

Hello @tb-killa,

Yes, we will often use these filters. They are quite permanent so a static solution like you described is totally fine. I will try this when I'm going back to work, thanks!

@angely-dev commented on GitHub (Mar 2, 2019): Hello @tb-killa, Yes, we will often use these filters. They are quite permanent so a static solution like you described is totally fine. I will try this when I'm going back to work, thanks!
Author
Owner

@angely-dev commented on GitHub (Mar 4, 2019):

@tb-killa, I tried what you suggested and it does the trick like a charm! Thanks again.
Too bad I didn't find this feature earlier in the doc (optional-settings/#banner_top).

@angely-dev commented on GitHub (Mar 4, 2019): @tb-killa, I tried what you suggested and it does the trick like a charm! Thanks again. Too bad I didn't find this feature earlier in the doc ([optional-settings/#banner_top](https://netbox.readthedocs.io/en/latest/configuration/optional-settings/#banner_top)).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2423