[PR #3550] [MERGED] 3259 cable filters #12572

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/3550
Author: @jeremystretch
Created: 9/27/2019
Status: Merged
Merged: 10/1/2019
Merged by: @jeremystretch

Base: developHead: 3259-cable-filters


📝 Commits (3)

  • d2ab41a Cache A/B termination devices on the Cable model
  • 4889c8f Closes #3259: Add rack and site filters for cables
  • aa9d034 Filter by site slug rather than by name

📊 Changes

4 files changed (+121 additions, -30 deletions)

View changed files

📝 CHANGELOG.md (+26 -14)
📝 netbox/dcim/filters.py (+27 -16)
netbox/dcim/migrations/0075_cable_devices.py (+46 -0)
📝 netbox/dcim/models.py (+22 -0)

📄 Description

Fixes: #3259

  • Extend dcim.Cable to cache termination A and B devices where applicable (does not include circuits)
  • Introduce migration logic to store the device references for existing cables
  • Replace the existing device filter and add rack and site filters

🔄 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/3550 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 9/27/2019 **Status:** ✅ Merged **Merged:** 10/1/2019 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `3259-cable-filters` --- ### 📝 Commits (3) - [`d2ab41a`](https://github.com/netbox-community/netbox/commit/d2ab41abfba04036603c3958226e23e992d38dcd) Cache A/B termination devices on the Cable model - [`4889c8f`](https://github.com/netbox-community/netbox/commit/4889c8ff9bb64f5a514170f92d8d1d15d13dfbbd) Closes #3259: Add rack and site filters for cables - [`aa9d034`](https://github.com/netbox-community/netbox/commit/aa9d034b5db9865b8689414ded004a246ac95991) Filter by site slug rather than by name ### 📊 Changes **4 files changed** (+121 additions, -30 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+26 -14) 📝 `netbox/dcim/filters.py` (+27 -16) ➕ `netbox/dcim/migrations/0075_cable_devices.py` (+46 -0) 📝 `netbox/dcim/models.py` (+22 -0) </details> ### 📄 Description ### Fixes: #3259 * Extend dcim.Cable to cache termination A and B devices where applicable (does not include circuits) * Introduce migration logic to store the device references for existing cables * Replace the existing `device` filter and add `rack` and `site` filters --- <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:22:24 +01:00
adam closed this issue 2025-12-29 22:22:24 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12572