[PR #11587] [MERGED] Closes #11517: Standardize the display of related objects across UI #13813

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/11587
Author: @jeremystretch
Created: 1/26/2023
Status: Merged
Merged: 1/26/2023
Merged by: @jeremystretch

Base: featureHead: 11517-related-object-tabs


📝 Commits (8)

  • efba3c8 Clean up related objects for sites, tenants
  • 79419d3 Standardize related model display for nested models
  • d5c26c0 Standardize related model display for organizational models
  • 04d997b Standardize linking to related objects in tables
  • 0cc9234 Standard related object links across all models
  • a1bd1b7 Use embedded table to show assigned services under object view
  • 576cd03 Move rack reservations panel to separate tab
  • 2f92586 Use embedded tables for importing/export VRFs & L2VPNs under route target view

📊 Changes

49 files changed (+599 additions, -1147 deletions)

View changed files

📝 netbox/circuits/tables/circuits.py (+3 -1)
📝 netbox/circuits/views.py (+30 -0)
📝 netbox/dcim/tables/devices.py (+3 -0)
📝 netbox/dcim/tables/devicetypes.py (+15 -6)
📝 netbox/dcim/tables/racks.py (+5 -1)
📝 netbox/dcim/views.py (+150 -100)
📝 netbox/ipam/views.py (+36 -43)
📝 netbox/templates/circuits/circuittype.html (+1 -13)
📝 netbox/templates/circuits/provider.html (+2 -7)
📝 netbox/templates/circuits/providernetwork.html (+3 -2)
📝 netbox/templates/dcim/device.html (+18 -23)
📝 netbox/templates/dcim/devicerole.html (+1 -16)
netbox/templates/dcim/devicerole/devices.html (+0 -21)
netbox/templates/dcim/devicerole/virtual_machines.html (+0 -21)
📝 netbox/templates/dcim/devicetype.html (+2 -5)
📝 netbox/templates/dcim/location.html (+2 -20)
📝 netbox/templates/dcim/manufacturer.html (+1 -25)
📝 netbox/templates/dcim/module.html (+5 -95)
📝 netbox/templates/dcim/moduletype.html (+4 -7)
📝 netbox/templates/dcim/platform.html (+5 -25)

...and 29 more files

📄 Description

Closes: #11517

  • Introduces a related models panel template to optimize the display of related object counts using context data
  • Removes related object tables from organizational models (e.g. device roles) in favor of direct links to the appropriate filtered list views
  • Replaces static object tables under other views with dynamic embedded tables where possible
  • Cleans up tables to ensure all object count columns are linked to the appropriate views

🔄 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/11587 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 1/26/2023 **Status:** ✅ Merged **Merged:** 1/26/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `11517-related-object-tabs` --- ### 📝 Commits (8) - [`efba3c8`](https://github.com/netbox-community/netbox/commit/efba3c8a7b10e5bcd38ae1ab34bebf23e7888160) Clean up related objects for sites, tenants - [`79419d3`](https://github.com/netbox-community/netbox/commit/79419d3110d60bb13f22454edf8631bb47e7afc9) Standardize related model display for nested models - [`d5c26c0`](https://github.com/netbox-community/netbox/commit/d5c26c0451196bbb7e031273f18ccbcf8007c96f) Standardize related model display for organizational models - [`04d997b`](https://github.com/netbox-community/netbox/commit/04d997bdbc2c572ca6eca46c5fc561892e44b806) Standardize linking to related objects in tables - [`0cc9234`](https://github.com/netbox-community/netbox/commit/0cc92341bb1a8c496e711b0e24c577699c5037f2) Standard related object links across all models - [`a1bd1b7`](https://github.com/netbox-community/netbox/commit/a1bd1b77349d0507dada42d3b3d9a455645a8ed7) Use embedded table to show assigned services under object view - [`576cd03`](https://github.com/netbox-community/netbox/commit/576cd0363b98b9fd68cab4090010557392782581) Move rack reservations panel to separate tab - [`2f92586`](https://github.com/netbox-community/netbox/commit/2f92586cdeff229305e16d23d508f58054a2aa32) Use embedded tables for importing/export VRFs & L2VPNs under route target view ### 📊 Changes **49 files changed** (+599 additions, -1147 deletions) <details> <summary>View changed files</summary> 📝 `netbox/circuits/tables/circuits.py` (+3 -1) 📝 `netbox/circuits/views.py` (+30 -0) 📝 `netbox/dcim/tables/devices.py` (+3 -0) 📝 `netbox/dcim/tables/devicetypes.py` (+15 -6) 📝 `netbox/dcim/tables/racks.py` (+5 -1) 📝 `netbox/dcim/views.py` (+150 -100) 📝 `netbox/ipam/views.py` (+36 -43) 📝 `netbox/templates/circuits/circuittype.html` (+1 -13) 📝 `netbox/templates/circuits/provider.html` (+2 -7) 📝 `netbox/templates/circuits/providernetwork.html` (+3 -2) 📝 `netbox/templates/dcim/device.html` (+18 -23) 📝 `netbox/templates/dcim/devicerole.html` (+1 -16) ➖ `netbox/templates/dcim/devicerole/devices.html` (+0 -21) ➖ `netbox/templates/dcim/devicerole/virtual_machines.html` (+0 -21) 📝 `netbox/templates/dcim/devicetype.html` (+2 -5) 📝 `netbox/templates/dcim/location.html` (+2 -20) 📝 `netbox/templates/dcim/manufacturer.html` (+1 -25) 📝 `netbox/templates/dcim/module.html` (+5 -95) 📝 `netbox/templates/dcim/moduletype.html` (+4 -7) 📝 `netbox/templates/dcim/platform.html` (+5 -25) _...and 29 more files_ </details> ### 📄 Description ### Closes: #11517 - Introduces a related models panel template to optimize the display of related object counts using context data - Removes related object tables from organizational models (e.g. device roles) in favor of direct links to the appropriate filtered list views - Replaces static object tables under other views with dynamic embedded tables where possible - Cleans up tables to ensure all object count columns are linked to the appropriate views --- <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:20:57 +01:00
adam closed this issue 2025-12-29 23:20:57 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13813