[PR #18748] [MERGED] Closes #18352: Adds PowerOutlet.status field #15433

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/18748
Author: @jnovinger
Created: 2/26/2025
Status: Merged
Merged: 3/4/2025
Merged by: @bctiemann

Base: featureHead: 18352-add-poweroutlet-status


📝 Commits (9)

  • dbac093 For #18352, adds choices, model field, migration
  • d9d7955 For #18352, adds PowerOutlet.status field to forms and filtersets
  • 9556b0c Adds status field to PowerOutletSerializer
  • 1d5c67a Adds PowerOutlet.status field to PowerOutlet model tables
  • f2a0933 Updates PowerOutletIndex to display status field in results
  • 8efcbdd Updates PowetOutler docs to include new status field
  • 2dcf2d2 Extend filterset/model tests to cover PowerOutlet.status
  • 2ae84ce Adds initial PowerOutletForm tests
  • 913405a Adds PowerOutlet.status to detail view

📊 Changes

16 files changed (+170 additions, -16 deletions)

View changed files

📝 docs/models/dcim/poweroutlet.md (+13 -0)
📝 netbox/dcim/api/serializers_/device_components.py (+4 -4)
📝 netbox/dcim/choices.py (+17 -0)
📝 netbox/dcim/filtersets.py (+5 -1)
📝 netbox/dcim/forms/bulk_edit.py (+5 -2)
📝 netbox/dcim/forms/filtersets.py (+6 -1)
📝 netbox/dcim/forms/model_forms.py (+2 -2)
netbox/dcim/migrations/0201_add_power_outlet_status.py (+16 -0)
📝 netbox/dcim/models/device_components.py (+9 -0)
📝 netbox/dcim/search.py (+1 -1)
📝 netbox/dcim/tables/devices.py (+10 -3)
📝 netbox/dcim/tests/test_filtersets.py (+20 -0)
📝 netbox/dcim/tests/test_forms.py (+53 -1)
📝 netbox/dcim/tests/test_models.py (+2 -1)
📝 netbox/dcim/tests/test_views.py (+3 -0)
📝 netbox/templates/dcim/poweroutlet.html (+4 -0)

📄 Description

Fixes: #18352


🔄 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/18748 **Author:** [@jnovinger](https://github.com/jnovinger) **Created:** 2/26/2025 **Status:** ✅ Merged **Merged:** 3/4/2025 **Merged by:** [@bctiemann](https://github.com/bctiemann) **Base:** `feature` ← **Head:** `18352-add-poweroutlet-status` --- ### 📝 Commits (9) - [`dbac093`](https://github.com/netbox-community/netbox/commit/dbac09349bc752a214ab92e3500a0a32fff68a8d) For #18352, adds choices, model field, migration - [`d9d7955`](https://github.com/netbox-community/netbox/commit/d9d7955c19ea8b40c2f7121b5ccb23ad3cd8420c) For #18352, adds PowerOutlet.status field to forms and filtersets - [`9556b0c`](https://github.com/netbox-community/netbox/commit/9556b0c480a55631000ac87c83bbd0cb2bb289f8) Adds status field to PowerOutletSerializer - [`1d5c67a`](https://github.com/netbox-community/netbox/commit/1d5c67a0a8f947bcb49b290ae75a3906b7949050) Adds PowerOutlet.status field to PowerOutlet model tables - [`f2a0933`](https://github.com/netbox-community/netbox/commit/f2a09333d7cc72406cffa314ef2ff02b0626f97a) Updates PowerOutletIndex to display status field in results - [`8efcbdd`](https://github.com/netbox-community/netbox/commit/8efcbddb374d4fdc5510555f8b2f9db497d3c7b4) Updates PowetOutler docs to include new status field - [`2dcf2d2`](https://github.com/netbox-community/netbox/commit/2dcf2d203ca7c0d89b54e4093d7ff2189fdc6c96) Extend filterset/model tests to cover PowerOutlet.status - [`2ae84ce`](https://github.com/netbox-community/netbox/commit/2ae84ce9fb40ec94cd4b88269417a57bfa513099) Adds initial PowerOutletForm tests - [`913405a`](https://github.com/netbox-community/netbox/commit/913405a3ae93ec28b8970a2dbdd81c99508dd557) Adds PowerOutlet.status to detail view ### 📊 Changes **16 files changed** (+170 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `docs/models/dcim/poweroutlet.md` (+13 -0) 📝 `netbox/dcim/api/serializers_/device_components.py` (+4 -4) 📝 `netbox/dcim/choices.py` (+17 -0) 📝 `netbox/dcim/filtersets.py` (+5 -1) 📝 `netbox/dcim/forms/bulk_edit.py` (+5 -2) 📝 `netbox/dcim/forms/filtersets.py` (+6 -1) 📝 `netbox/dcim/forms/model_forms.py` (+2 -2) ➕ `netbox/dcim/migrations/0201_add_power_outlet_status.py` (+16 -0) 📝 `netbox/dcim/models/device_components.py` (+9 -0) 📝 `netbox/dcim/search.py` (+1 -1) 📝 `netbox/dcim/tables/devices.py` (+10 -3) 📝 `netbox/dcim/tests/test_filtersets.py` (+20 -0) 📝 `netbox/dcim/tests/test_forms.py` (+53 -1) 📝 `netbox/dcim/tests/test_models.py` (+2 -1) 📝 `netbox/dcim/tests/test_views.py` (+3 -0) 📝 `netbox/templates/dcim/poweroutlet.html` (+4 -0) </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 approved and assigned prior to opening a pull request. This helps avoid waste time and effort on a proposed change that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WILL BE CLOSED AUTOMATICALLY. Please specify your assigned issue number on the line below. --> ### Fixes: #18352 <!-- Please include a summary of the proposed changes below. --> --- <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:21:53 +01:00
adam closed this issue 2025-12-30 00:21:54 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15433