[PR #17260] [MERGED] Fixes: #16905 - Allow filtering on Device Status in InventoryItemTable #15038

Closed
opened 2025-12-30 00:19:35 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/17260
Author: @bctiemann
Created: 8/23/2024
Status: Merged
Merged: 8/29/2024
Merged by: @jeremystretch

Base: developHead: 16905-inventoryitemlist-filter-by-device-status


📝 Commits (5)

  • 5a75e30 Add device_status as filtering option (and configurable column) for InventoryItemTable
  • 698155e Merge branch 'develop' into 16905-inventoryitemlist-filter-by-device-status
  • cd7c7f4 Add device_status to common superclasses for Device Components, and refactor ChoiceFieldColumn to support a "color" callable allowing get_FOO_color behavior to be overridden
  • fb2d8e8 Remove unnecessary 'device_status' in fields
  • 2846807 Add unit tests for device_status

📊 Changes

5 files changed (+110 additions, -51 deletions)

View changed files

📝 netbox/dcim/filtersets.py (+4 -0)
📝 netbox/dcim/forms/filtersets.py (+42 -10)
📝 netbox/dcim/tables/devices.py (+5 -0)
📝 netbox/dcim/tests/test_filtersets.py (+46 -35)
📝 netbox/netbox/tables/columns.py (+13 -6)

📄 Description

Fixes: #16905 Allow filtering on Device Status in InventoryItemTable

Adds device_status as a filter field in Inventory Item list view, and associated filter in InventoryItemFilterSet.

Screenshot 2024-08-23 at 5 27 48 PM

🔄 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/17260 **Author:** [@bctiemann](https://github.com/bctiemann) **Created:** 8/23/2024 **Status:** ✅ Merged **Merged:** 8/29/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `16905-inventoryitemlist-filter-by-device-status` --- ### 📝 Commits (5) - [`5a75e30`](https://github.com/netbox-community/netbox/commit/5a75e305b1d5fbc0dd956c6ffee622120aff9ca8) Add device_status as filtering option (and configurable column) for InventoryItemTable - [`698155e`](https://github.com/netbox-community/netbox/commit/698155e66e0926b3c7807a850c69c0339a3d3e83) Merge branch 'develop' into 16905-inventoryitemlist-filter-by-device-status - [`cd7c7f4`](https://github.com/netbox-community/netbox/commit/cd7c7f4143eb87f0d6133b9cd4adb9e67400f4e5) Add device_status to common superclasses for Device Components, and refactor ChoiceFieldColumn to support a "color" callable allowing get_FOO_color behavior to be overridden - [`fb2d8e8`](https://github.com/netbox-community/netbox/commit/fb2d8e8e8efdb44f3be7ae6ca8dd7a047903f1ca) Remove unnecessary 'device_status' in fields - [`2846807`](https://github.com/netbox-community/netbox/commit/2846807ca49693c50eb8794ac6bc92cd38dc15b4) Add unit tests for device_status ### 📊 Changes **5 files changed** (+110 additions, -51 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/filtersets.py` (+4 -0) 📝 `netbox/dcim/forms/filtersets.py` (+42 -10) 📝 `netbox/dcim/tables/devices.py` (+5 -0) 📝 `netbox/dcim/tests/test_filtersets.py` (+46 -35) 📝 `netbox/netbox/tables/columns.py` (+13 -6) </details> ### 📄 Description ### Fixes: #16905 Allow filtering on Device Status in InventoryItemTable Adds `device_status` as a filter field in Inventory Item list view, and associated filter in `InventoryItemFilterSet`. <img width="1202" alt="Screenshot 2024-08-23 at 5 27 48 PM" src="https://github.com/user-attachments/assets/bfa002e8-ad29-4567-8998-bf5932efdf6d"> --- <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-30 00:19:35 +01:00
adam closed this issue 2025-12-30 00:19:35 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15038