Add location by slug to device filterset #10976

Closed
opened 2025-12-29 21:38:42 +01:00 by adam · 3 comments
Owner

Originally created by @Omripresent on GitHub (Apr 2, 2025).

Originally assigned to: @pheus on GitHub.

NetBox version

v4.2.6

Feature type

Other

Proposed functionality

Similar to site, platform, and other fields the location field should be added to lookup by slug and not just by location ID.

Use case

Mainly usable for API users it allows the use of unique slugs for filtering without the need to lookup the object's ID

Database changes

No response

External dependencies

No response

Originally created by @Omripresent on GitHub (Apr 2, 2025). Originally assigned to: @pheus on GitHub. ### NetBox version v4.2.6 ### Feature type Other ### Proposed functionality Similar to site, platform, and other fields the location field should be added to lookup by slug and not just by location ID. ### Use case Mainly usable for API users it allows the use of unique slugs for filtering without the need to lookup the object's ID ### Database changes _No response_ ### External dependencies _No response_
adam added the status: acceptedtype: featurecomplexity: low labels 2025-12-29 21:38:42 +01:00
adam closed this issue 2025-12-29 21:38:42 +01:00
Author
Owner

@pheus commented on GitHub (Apr 13, 2025):

Hi @jnovinger,

I'd like to contribute to this feature! I've already implemented it and would be happy to open a PR.
Would you mind assigning the issue to me?

Thanks!

@pheus commented on GitHub (Apr 13, 2025): Hi @jnovinger, I'd like to contribute to this feature! I've already implemented it and would be happy to open a PR. Would you mind assigning the issue to me? Thanks!
Author
Owner

@pheus commented on GitHub (Apr 13, 2025):

Hi @jnovinger,

I've prepared a PR to implement this functionality. Just let me know if I should target the feature branch instead of main, since the issue is currently marked with needs milestone.

Thanks!

@pheus commented on GitHub (Apr 13, 2025): Hi @jnovinger, I've prepared a PR to implement this functionality. Just let me know if I should target the `feature` branch instead of `main`, since the issue is currently marked with `needs milestone`. Thanks!
Author
Owner

@jeremystretch commented on GitHub (Apr 14, 2025):

Thanks @pheus, I've assigned this to you. It can go into main.

@jeremystretch commented on GitHub (Apr 14, 2025): Thanks @pheus, I've assigned this to you. It can go into `main`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10976