[PR #18238] [MERGED] Added the cable -> CableType-Annotation in CableTerminationType. #15297

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/18238
Author: @dxks
Created: 12/16/2024
Status: Merged
Merged: 12/16/2024
Merged by: @jeremystretch

Base: developHead: 18124-graphql-query-cable-inside-cabletermination-set


📝 Commits (1)

  • 01a71e3 Added the cable -> CableType-Annotation in CableTerminationType.

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 netbox/dcim/graphql/types.py (+1 -1)

📄 Description

Fixes: https://github.com/netbox-community/netbox/issues/18124

The OpenAPI schema for CableTerminationType auto retrieves the cable-property as default DjangoType and therefore no properties of the cable can be retrieved. Adding the reference annotation to CableType solves this issue.


🔄 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/18238 **Author:** [@dxks](https://github.com/dxks) **Created:** 12/16/2024 **Status:** ✅ Merged **Merged:** 12/16/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `18124-graphql-query-cable-inside-cabletermination-set` --- ### 📝 Commits (1) - [`01a71e3`](https://github.com/netbox-community/netbox/commit/01a71e3265405d98dd2ed769594786c3d4d2deb3) Added the cable -> CableType-Annotation in CableTerminationType. ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/graphql/types.py` (+1 -1) </details> ### 📄 Description ### Fixes: https://github.com/netbox-community/netbox/issues/18124 The OpenAPI schema for CableTerminationType auto retrieves the cable-property as default DjangoType and therefore no properties of the cable can be retrieved. Adding the reference annotation to CableType solves this issue. --- <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:08 +01:00
adam closed this issue 2025-12-30 00:21:08 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15297