[PR #20141] [MERGED] Fixes #19970: Report device & VM counts for child device roles on parents #15837

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/20141
Author: @jeremystretch
Created: 8/20/2025
Status: Merged
Merged: 8/25/2025
Merged by: @bctiemann

Base: mainHead: 19970-devicerole-child-counts


📝 Commits (1)

  • 92fba0b Fixes #19970: Report device & VM counts for child device roles on parents

📊 Changes

3 files changed (+30 additions, -8 deletions)

View changed files

📝 netbox/dcim/api/serializers_/roles.py (+4 -4)
📝 netbox/dcim/api/views.py (+14 -1)
📝 netbox/dcim/views.py (+12 -3)

📄 Description

Fixes: #19970

Add recursive related object counts to the querysets for DeviceRole UI & REST API lists


🔄 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/20141 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 8/20/2025 **Status:** ✅ Merged **Merged:** 8/25/2025 **Merged by:** [@bctiemann](https://github.com/bctiemann) **Base:** `main` ← **Head:** `19970-devicerole-child-counts` --- ### 📝 Commits (1) - [`92fba0b`](https://github.com/netbox-community/netbox/commit/92fba0bed4106705ac0e2252664027a5051cdcdf) Fixes #19970: Report device & VM counts for child device roles on parents ### 📊 Changes **3 files changed** (+30 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/api/serializers_/roles.py` (+4 -4) 📝 `netbox/dcim/api/views.py` (+14 -1) 📝 `netbox/dcim/views.py` (+12 -3) </details> ### 📄 Description ### Fixes: #19970 Add recursive related object counts to the querysets for DeviceRole UI & REST API lists --- <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:24:20 +01:00
adam closed this issue 2025-12-30 00:24:20 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15837