Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a tag_id filter for all models which support tagging #18783

Open
jeremystretch opened this issue Feb 28, 2025 · 0 comments · May be fixed by #18889
Open

Add a tag_id filter for all models which support tagging #18783

jeremystretch opened this issue Feb 28, 2025 · 0 comments · May be fixed by #18889
Assignees
Labels
complexity: low Requires minimal effort to implement status: accepted This issue has been accepted for implementation type: feature Introduction of new functionality to the application
Milestone

Comments

@jeremystretch
Copy link
Member

NetBox version

v4.2.4

Feature type

Data model extension

Proposed functionality

Add a tag_id filter to NetBoxModelFilterSet, which will enable filtering of objects by tag ID. This should function similarly to the existing tag filter (which matches by tag slug). For example:

GET /api/dcim/sites/?tag_id=100&tag_id=200

Use case

This provides an alternative to referencing tags by their slugs, and may be needed in some specific scenarios (such as that described in #18757).

Database changes

N/A

External dependencies

N/A

@jeremystretch jeremystretch added complexity: low Requires minimal effort to implement needs milestone Awaiting prioritization for inclusion with a future NetBox release status: backlog Awaiting selection for work type: feature Introduction of new functionality to the application labels Feb 28, 2025
@jeremystretch jeremystretch added this to the v4.3 milestone Mar 12, 2025
@jeremystretch jeremystretch added status: accepted This issue has been accepted for implementation and removed needs milestone Awaiting prioritization for inclusion with a future NetBox release status: backlog Awaiting selection for work labels Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
complexity: low Requires minimal effort to implement status: accepted This issue has been accepted for implementation type: feature Introduction of new functionality to the application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants