Saved filters are displayed on any models not only the assigned models #9443

Closed
opened 2025-12-29 20:50:00 +01:00 by adam · 2 comments
Owner

Originally created by @julianstolp on GitHub (Apr 5, 2024).

Originally assigned to: @jeremystretch on GitHub.

Deployment Type

Self-hosted

NetBox Version

v4.0-beta1

Python Version

3.10

Steps to Reproduce

  1. Go to customization -> saved filters /extras/saved-filters/
  2. create a filter named Test and assign it to object type DCIM > Site
{
    "q": [
        ""
    ],
    "status": [
        "planned"
    ]
}
  1. Go to /dcim/devices/ and click on tab Filters select filter test hit search button
  2. Filter works as intended or returns any object, depending on whether the models share all elements of the filter

Expected Behavior

Filter not visible if the object type does not match the assigned model.

Observed Behavior

All filters are visible regardless of whether they match the object type or not.

Originally created by @julianstolp on GitHub (Apr 5, 2024). Originally assigned to: @jeremystretch on GitHub. ### Deployment Type Self-hosted ### NetBox Version v4.0-beta1 ### Python Version 3.10 ### Steps to Reproduce 1. Go to customization -> saved filters /extras/saved-filters/ 2. create a filter named Test and assign it to object type `DCIM > Site` ``` { "q": [ "" ], "status": [ "planned" ] } ``` 3. Go to /dcim/devices/ and click on tab `Filters` select filter test hit search button 4. Filter works as intended or returns any object, depending on whether the models share all elements of the filter ### Expected Behavior Filter not visible if the object type does not match the assigned model. ### Observed Behavior All filters are visible regardless of whether they match the object type or not.
adam added the type: bugstatus: acceptedbetaseverity: low labels 2025-12-29 20:50:00 +01:00
adam closed this issue 2025-12-29 20:50:01 +01:00
Author
Owner

@arthanson commented on GitHub (Apr 5, 2024):

@julianstolp this is working fine when I try it (v4.0-beta1) can you please check if there are other steps needed or special conditions.

@arthanson commented on GitHub (Apr 5, 2024): @julianstolp this is working fine when I try it (v4.0-beta1) can you please check if there are other steps needed or special conditions.
Author
Owner

@julianstolp commented on GitHub (Apr 5, 2024):

I created the filter on your beta demo instance also happening there.

grafik
grafik

@julianstolp commented on GitHub (Apr 5, 2024): I created the filter on your beta demo instance also happening there. - https://beta-demo.netbox.dev/extras/saved-filters/1/ - https://beta-demo.netbox.dev/tenancy/tenants/?q=&filter_id=1&cf_cust_id= ![grafik](https://github.com/netbox-community/netbox/assets/41152397/e062a45d-8524-4750-92cb-20d66bdc038a) ![grafik](https://github.com/netbox-community/netbox/assets/41152397/cda9a2c7-4ea5-4cf8-a357-06d56d5294a3)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9443