[PR #8741] [MERGED] Closes #8594: Add description filter for all models with a description field #13387

Closed
opened 2025-12-29 22:27:07 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/8741
Author: @djothi
Created: 2/24/2022
Status: Merged
Merged: 2/25/2022
Merged by: @jeremystretch

Base: developHead: develop


📝 Commits (8)

  • 42466d5 Add description filter for ProviderNetwork, CircuitType, Circuit & CircuitTermination
  • 08b9009 Add description filter for Site, RackRole, RackReservation & DeviceRole
  • 6db8787 Add description filter for CustomField, ExportTemplate & Tag
  • 879d01a Add description filter for VRF, RouteTarget, Aggregate, ASN, Role, Prefix, IPRange, VLAN & Service
  • c137fa2 Add description filter for Tenant & ContactRole
  • 5a60224 Add description filter for Token & ObjectPermission
  • c0152ce Add description filter to VMInterface
  • 06eacb5 Add description filter to WirelessLAN & WirelessLink

📊 Changes

16 files changed (+185 additions, -79 deletions)

View changed files

📝 netbox/circuits/filtersets.py (+4 -4)
📝 netbox/circuits/tests/test_filtersets.py (+24 -8)
📝 netbox/dcim/filtersets.py (+4 -4)
📝 netbox/dcim/tests/test_filtersets.py (+24 -8)
📝 netbox/extras/filtersets.py (+3 -3)
📝 netbox/extras/tests/test_filtersets.py (+12 -4)
📝 netbox/ipam/filtersets.py (+9 -9)
📝 netbox/ipam/tests/test_filtersets.py (+54 -18)
📝 netbox/tenancy/filtersets.py (+2 -2)
📝 netbox/tenancy/tests/test_filtersets.py (+12 -4)
📝 netbox/users/filtersets.py (+2 -2)
📝 netbox/users/tests/test_filtersets.py (+12 -4)
📝 netbox/virtualization/filtersets.py (+1 -1)
📝 netbox/virtualization/tests/test_filtersets.py (+6 -2)
📝 netbox/wireless/filtersets.py (+2 -2)
📝 netbox/wireless/tests/test_filtersets.py (+14 -4)

📄 Description

Fixes: #8594

These commits allow to filter the following models by their description:

Circuits:

  • ProviderNetwork
  • CircuitType
  • Circuit
  • CircuitTermination

DCIM:

  • Site
  • RackRole
  • RackReservation
  • DeviceRole

Extras:

  • CustomField
  • ExportTemplate
  • Tag

IPAM:

  • VRF
  • RouteTarget
  • Aggregate
  • ASN
  • Role
  • Prefix
  • IPRange
  • VLAN & Service

Tenancy:

  • Tenant
  • ContactRole

Users:

  • Token
  • ObjectPermission

Virtualization:

  • VMInterface

Wireless:

  • WirelessLAN
  • WirelessLink

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/8741 **Author:** [@djothi](https://github.com/djothi) **Created:** 2/24/2022 **Status:** ✅ Merged **Merged:** 2/25/2022 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `develop` --- ### 📝 Commits (8) - [`42466d5`](https://github.com/netbox-community/netbox/commit/42466d5fc4e47fdd4b40b711374e4dba4fd702b9) Add description filter for ProviderNetwork, CircuitType, Circuit & CircuitTermination - [`08b9009`](https://github.com/netbox-community/netbox/commit/08b90090f5bd1748a074b2282b723af633eb9ff3) Add description filter for Site, RackRole, RackReservation & DeviceRole - [`6db8787`](https://github.com/netbox-community/netbox/commit/6db878743cbd6db21f55ffd157840e2a897f3f8f) Add description filter for CustomField, ExportTemplate & Tag - [`879d01a`](https://github.com/netbox-community/netbox/commit/879d01a7502f8e7792beccb8d6338619af307ad2) Add description filter for VRF, RouteTarget, Aggregate, ASN, Role, Prefix, IPRange, VLAN & Service - [`c137fa2`](https://github.com/netbox-community/netbox/commit/c137fa20222f14b02fb50df3a287438f3c0b2c1f) Add description filter for Tenant & ContactRole - [`5a60224`](https://github.com/netbox-community/netbox/commit/5a60224d77c11eca303403a66c0a88bcf1145d81) Add description filter for Token & ObjectPermission - [`c0152ce`](https://github.com/netbox-community/netbox/commit/c0152ce52f00ba1e4add86b22caed14a947ba51f) Add description filter to VMInterface - [`06eacb5`](https://github.com/netbox-community/netbox/commit/06eacb5a5c660e0a554c464aa967e9159e4d46d5) Add description filter to WirelessLAN & WirelessLink ### 📊 Changes **16 files changed** (+185 additions, -79 deletions) <details> <summary>View changed files</summary> 📝 `netbox/circuits/filtersets.py` (+4 -4) 📝 `netbox/circuits/tests/test_filtersets.py` (+24 -8) 📝 `netbox/dcim/filtersets.py` (+4 -4) 📝 `netbox/dcim/tests/test_filtersets.py` (+24 -8) 📝 `netbox/extras/filtersets.py` (+3 -3) 📝 `netbox/extras/tests/test_filtersets.py` (+12 -4) 📝 `netbox/ipam/filtersets.py` (+9 -9) 📝 `netbox/ipam/tests/test_filtersets.py` (+54 -18) 📝 `netbox/tenancy/filtersets.py` (+2 -2) 📝 `netbox/tenancy/tests/test_filtersets.py` (+12 -4) 📝 `netbox/users/filtersets.py` (+2 -2) 📝 `netbox/users/tests/test_filtersets.py` (+12 -4) 📝 `netbox/virtualization/filtersets.py` (+1 -1) 📝 `netbox/virtualization/tests/test_filtersets.py` (+6 -2) 📝 `netbox/wireless/filtersets.py` (+2 -2) 📝 `netbox/wireless/tests/test_filtersets.py` (+14 -4) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be opened for approval prior to filing a pull request. This helps avoid wasting time and effort on something that we might not be able to accept. Please indicate the relevant feature request or bug report below. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ACCEPTED BUG REPORT OR FEATURE REQUEST, IT WILL BE MARKED AS INVALID AND CLOSED. --> ### Fixes: #8594 <!-- Please include a summary of the proposed changes below. --> These commits allow to filter the following models by their `description`: Circuits: - ProviderNetwork - CircuitType - Circuit - CircuitTermination DCIM: - Site - RackRole - RackReservation - DeviceRole Extras: - CustomField - ExportTemplate - Tag IPAM: - VRF - RouteTarget - Aggregate - ASN - Role - Prefix - IPRange - VLAN & Service Tenancy: - Tenant - ContactRole Users: - Token - ObjectPermission Virtualization: - VMInterface Wireless: - WirelessLAN - WirelessLink --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 22:27:07 +01:00
adam closed this issue 2025-12-29 22:27:08 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13387