[PR #11755] [MERGED] Fixes #11473 graphql invalid tag filter returns all devices/interfaces #13836

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/11755
Author: @aronjohanns
Created: 2/15/2023
Status: Merged
Merged: 2/16/2023
Merged by: @jeremystretch

Base: developHead: 11473-graphql-filter-fix


📝 Commits (2)

  • c204f3c Fixes #11473 graphql invalid tag filter returns all devices/interfaces
  • 6dc29bf change empty list to qs.none()

📊 Changes

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

View changed files

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

📄 Description

Fixes: #11473

Return an empty queryset if the filterset is invalid in the static method ObjectListField.list_resolver().


🔄 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/11755 **Author:** [@aronjohanns](https://github.com/aronjohanns) **Created:** 2/15/2023 **Status:** ✅ Merged **Merged:** 2/16/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `11473-graphql-filter-fix` --- ### 📝 Commits (2) - [`c204f3c`](https://github.com/netbox-community/netbox/commit/c204f3c3fe1a5ea21fa9dc644383aa14a67fa513) Fixes #11473 graphql invalid tag filter returns all devices/interfaces - [`6dc29bf`](https://github.com/netbox-community/netbox/commit/6dc29bff9dcb0d08a79bb46515b1bbfa1e9eb403) change empty list to qs.none() ### 📊 Changes **1 file changed** (+2 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `netbox/netbox/graphql/fields.py` (+2 -0) </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: #11473 <!-- Please include a summary of the proposed changes below. --> Return an empty queryset if the filterset is invalid in the static method ObjectListField.list_resolver(). --- <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:21:05 +01:00
adam closed this issue 2025-12-29 23:21:05 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13836