[PR #11172] [MERGED] 11171 fix graphql related models query #13747

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/11172
Author: @arthanson
Created: 12/13/2022
Status: Merged
Merged: 12/14/2022
Merged by: @jeremystretch

Base: featureHead: 11171-graphql-related


📝 Commits (3)

  • 152247b 11171 fix graphql related models query
  • bb8d8e3 11171 remove redundant code from code review
  • ba73778 11171 remove redundant code from code review

📊 Changes

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

View changed files

📝 netbox/netbox/graphql/fields.py (+1 -2)

📄 Description

Fixes: #11171

Fixes graphql queries to related objects (ex: all devices for a given device role). This pulls in extra code for getting the queryset from graphene_django DjangoListView object.


🔄 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/11172 **Author:** [@arthanson](https://github.com/arthanson) **Created:** 12/13/2022 **Status:** ✅ Merged **Merged:** 12/14/2022 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `11171-graphql-related` --- ### 📝 Commits (3) - [`152247b`](https://github.com/netbox-community/netbox/commit/152247b0e7989cf2ea2b99c40a311192d33612b9) 11171 fix graphql related models query - [`bb8d8e3`](https://github.com/netbox-community/netbox/commit/bb8d8e3ea863b65882d0593139645cad0a1c9e56) 11171 remove redundant code from code review - [`ba73778`](https://github.com/netbox-community/netbox/commit/ba73778efd02d38fd9c3aee1821ff45e38a88c47) 11171 remove redundant code from code review ### 📊 Changes **1 file changed** (+1 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `netbox/netbox/graphql/fields.py` (+1 -2) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to opening a pull request. This helps avoid waste time and effort on a proposed change that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WILL BE CLOSED AUTOMATICALLY. Please specify your assigned issue number on the line below. --> ### Fixes: #11171 <!-- Please include a summary of the proposed changes below. --> Fixes graphql queries to related objects (ex: all devices for a given device role). This pulls in extra code for getting the queryset from graphene_django DjangoListView object. --- <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:34 +01:00
adam closed this issue 2025-12-29 23:20:34 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13747