[PR #9630] [MERGED] Closes #9092: Introduce support for use of ObjectChildrenView by plugins #13498

Closed
opened 2025-12-29 23:19:13 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/9630
Author: @jeremystretch
Created: 6/29/2022
Status: Merged
Merged: 6/29/2022
Merged by: @jeremystretch

Base: featureHead: 9092-ObjectChildrenView


📝 Commits (4)

  • c577039 Refactor ObjectChildrenView
  • cdcb77d Move actions determination to a mixin
  • 4649bc6 Update templates for subclasses of ObjectChildrenView
  • a0f9b5e Document support for ObjectChildrenView

📊 Changes

21 files changed (+122 additions, -92 deletions)

View changed files

📝 docs/plugins/development/views.md (+16 -9)
📝 docs/release-notes/version-3.3.md (+1 -0)
📝 netbox/netbox/views/generic/bulk_views.py (+9 -37)
netbox/netbox/views/generic/mixins.py (+47 -0)
📝 netbox/netbox/views/generic/object_views.py (+17 -14)
📝 netbox/templates/dcim/device/consoleports.html (+2 -2)
📝 netbox/templates/dcim/device/consoleserverports.html (+2 -2)
📝 netbox/templates/dcim/device/devicebays.html (+2 -2)
📝 netbox/templates/dcim/device/frontports.html (+2 -2)
📝 netbox/templates/dcim/device/interfaces.html (+2 -2)
📝 netbox/templates/dcim/device/inventory.html (+2 -2)
📝 netbox/templates/dcim/device/modulebays.html (+2 -2)
📝 netbox/templates/dcim/device/poweroutlets.html (+2 -2)
📝 netbox/templates/dcim/device/powerports.html (+2 -2)
📝 netbox/templates/dcim/device/rearports.html (+2 -2)
📝 netbox/templates/ipam/aggregate/prefixes.html (+2 -2)
📝 netbox/templates/ipam/iprange/ip_addresses.html (+2 -2)
📝 netbox/templates/ipam/prefix/ip_addresses.html (+2 -2)
📝 netbox/templates/ipam/prefix/ip_ranges.html (+2 -2)
📝 netbox/templates/ipam/prefix/prefixes.html (+2 -2)

...and 1 more files

📄 Description

Closes: #9092

  • Refactor ObjectChildrenView and document its use for plugins

🔄 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/9630 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 6/29/2022 **Status:** ✅ Merged **Merged:** 6/29/2022 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `9092-ObjectChildrenView` --- ### 📝 Commits (4) - [`c577039`](https://github.com/netbox-community/netbox/commit/c5770392e32aeeaed9bd8dcf907a11c7df352b6c) Refactor ObjectChildrenView - [`cdcb77d`](https://github.com/netbox-community/netbox/commit/cdcb77dea8b143c93369d5a34ded0fe128c01ea1) Move actions determination to a mixin - [`4649bc6`](https://github.com/netbox-community/netbox/commit/4649bc632cddb530ca91dbab763de96602a3829c) Update templates for subclasses of ObjectChildrenView - [`a0f9b5e`](https://github.com/netbox-community/netbox/commit/a0f9b5e47b29b5e04ba921741f4d24e588caf36f) Document support for ObjectChildrenView ### 📊 Changes **21 files changed** (+122 additions, -92 deletions) <details> <summary>View changed files</summary> 📝 `docs/plugins/development/views.md` (+16 -9) 📝 `docs/release-notes/version-3.3.md` (+1 -0) 📝 `netbox/netbox/views/generic/bulk_views.py` (+9 -37) ➕ `netbox/netbox/views/generic/mixins.py` (+47 -0) 📝 `netbox/netbox/views/generic/object_views.py` (+17 -14) 📝 `netbox/templates/dcim/device/consoleports.html` (+2 -2) 📝 `netbox/templates/dcim/device/consoleserverports.html` (+2 -2) 📝 `netbox/templates/dcim/device/devicebays.html` (+2 -2) 📝 `netbox/templates/dcim/device/frontports.html` (+2 -2) 📝 `netbox/templates/dcim/device/interfaces.html` (+2 -2) 📝 `netbox/templates/dcim/device/inventory.html` (+2 -2) 📝 `netbox/templates/dcim/device/modulebays.html` (+2 -2) 📝 `netbox/templates/dcim/device/poweroutlets.html` (+2 -2) 📝 `netbox/templates/dcim/device/powerports.html` (+2 -2) 📝 `netbox/templates/dcim/device/rearports.html` (+2 -2) 📝 `netbox/templates/ipam/aggregate/prefixes.html` (+2 -2) 📝 `netbox/templates/ipam/iprange/ip_addresses.html` (+2 -2) 📝 `netbox/templates/ipam/prefix/ip_addresses.html` (+2 -2) 📝 `netbox/templates/ipam/prefix/ip_ranges.html` (+2 -2) 📝 `netbox/templates/ipam/prefix/prefixes.html` (+2 -2) _...and 1 more files_ </details> ### 📄 Description ### Closes: #9092 - Refactor ObjectChildrenView and document its use for plugins --- <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 23:19:13 +01:00
adam closed this issue 2025-12-29 23:19:13 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13498