[PR #15422] [MERGED] Closes #14454: Include member devices for virtual chassis in REST API #14592

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/15422
Author: @jeremystretch
Created: 3/13/2024
Status: Merged
Merged: 3/14/2024
Merged by: @jeremystretch

Base: featureHead: 14454-api-vc-members


📝 Commits (1)

  • eefa249 Closes #14454: Include member devices for virtual chassis in REST API

📊 Changes

2 files changed (+6 additions, -2 deletions)

View changed files

📝 netbox/dcim/api/serializers_/virtualchassis.py (+2 -1)
📝 netbox/dcim/api/views.py (+4 -1)

📄 Description

Fixes: #14454

  • Add the members field to the API serializer for VirtualChassis
  • Prefetch master__virtual_chassis on the view to avoid extra SQL queries for unnamed master devices

🔄 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/15422 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 3/13/2024 **Status:** ✅ Merged **Merged:** 3/14/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `14454-api-vc-members` --- ### 📝 Commits (1) - [`eefa249`](https://github.com/netbox-community/netbox/commit/eefa2497ac2e24c1e6634aeb1a2129bd732aea10) Closes #14454: Include member devices for virtual chassis in REST API ### 📊 Changes **2 files changed** (+6 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/api/serializers_/virtualchassis.py` (+2 -1) 📝 `netbox/dcim/api/views.py` (+4 -1) </details> ### 📄 Description ### Fixes: #14454 - Add the `members` field to the API serializer for VirtualChassis - Prefetch `master__virtual_chassis` on the view to avoid extra SQL queries for unnamed master devices --- <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:25:23 +01:00
adam closed this issue 2025-12-29 23:25:23 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14592