[PR #14526] [MERGED] Fixes #14512: Omit unused queryset annotations for REST API requests using brief mode #14401

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/14526
Author: @jeremystretch
Created: 12/14/2023
Status: Merged
Merged: 12/14/2023
Merged by: @jeremystretch

Base: developHead: 14512-api-brief-annotations


📝 Commits (1)

  • 69cbd76 Fixes #14512: Omit unused queryset annotations for REST API requests using brief mode

📊 Changes

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

View changed files

📝 netbox/netbox/api/viewsets/mixins.py (+8 -1)

📄 Description

Fixes: #14512

Remove any queryset annotations with keys that are not present as serializer fields.


🔄 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/14526 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 12/14/2023 **Status:** ✅ Merged **Merged:** 12/14/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `14512-api-brief-annotations` --- ### 📝 Commits (1) - [`69cbd76`](https://github.com/netbox-community/netbox/commit/69cbd76471bd89fcf843c1994e6519aada7fa1f3) Fixes #14512: Omit unused queryset annotations for REST API requests using brief mode ### 📊 Changes **1 file changed** (+8 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `netbox/netbox/api/viewsets/mixins.py` (+8 -1) </details> ### 📄 Description ### Fixes: #14512 Remove any queryset annotations with keys that are not present as serializer fields. --- <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:24:16 +01:00
adam closed this issue 2025-12-29 23:24:17 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14401