Carry filters over when clicking on object list in dashboard widget #8055

Closed
opened 2025-12-29 20:31:45 +01:00 by adam · 3 comments
Owner

Originally created by @eric-eisenhart on GitHub (May 13, 2023).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.5.1

Feature type

Change to existing functionality

Proposed functionality

I have an "Object Count" widget with a Devices/Cables/Racks/Sites and tenant filter "{"tenant_id": "19"}. I'd like if I click (for example) on "Devices" that I get /dcim/devices/?tenant_id=19 instead of /dcim/devices/.

Use case

Makes widgets with filters more useful if clicking on something gives a page with the actual items in the count instead of all objects of that type. And can make the dashboard widgets a handy way to get to what that user needs to see.

Database changes

No response

External dependencies

No response

Originally created by @eric-eisenhart on GitHub (May 13, 2023). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.5.1 ### Feature type Change to existing functionality ### Proposed functionality I have an "Object Count" widget with a Devices/Cables/Racks/Sites and tenant filter `"{"tenant_id": "19"}`. I'd like if I click (for example) on "Devices" that I get `/dcim/devices/?tenant_id=19` instead of `/dcim/devices/`. ### Use case Makes widgets with filters more useful if clicking on something gives a page with the actual items in the count instead of _all_ objects of that type. And can make the dashboard widgets a handy way to get to what that user needs to see. ### Database changes _No response_ ### External dependencies _No response_
adam added the status: acceptedtype: feature labels 2025-12-29 20:31:45 +01:00
adam closed this issue 2025-12-29 20:31:46 +01:00
Author
Owner

@jeremystretch commented on GitHub (May 15, 2023):

Per the contributing guide:

Don't prepend your issue title with a label like [Bug]; the proper label will be assigned automatically.

@jeremystretch commented on GitHub (May 15, 2023): Per the contributing guide: > Don't prepend your issue title with a label like [Bug]; the proper label will be assigned automatically.
Author
Owner

@jeremystretch commented on GitHub (May 26, 2023):

Marking this as blocked by #12742 as its implementation depends on adjusting the widget to support FilterSet filters rather than QuerySet filters.

@jeremystretch commented on GitHub (May 26, 2023): Marking this as blocked by #12742 as its implementation depends on adjusting the widget to support FilterSet filters rather than QuerySet filters.
Author
Owner

@jeremystretch commented on GitHub (May 30, 2023):

I'll take this as I just pushed a fix for #12742.

@jeremystretch commented on GitHub (May 30, 2023): I'll take this as I just pushed a fix for #12742.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8055