[PR #17563] [CLOSED] Fix parsing of extra_choices #15121

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/17563
Author: @gellis713
Created: 9/20/2024
Status: Closed

Base: developHead: 17562-grapqhl-choiceset


📝 Commits (4)

  • 968535d Fix parsing of extra_choices
  • 6035d64 Fix failing test
  • 48d9e88 Align extra_choices syntax to match graphql expectation of iterable
  • cbd5d05 Linting

📊 Changes

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

View changed files

📝 netbox/extras/graphql/types.py (+1 -1)
📝 netbox/extras/tests/test_api.py (+3 -3)

📄 Description

Fixes: #17562

Updates extra_choices to be a list of a list of strings which is what Django reports as the relevant types at each level.


🔄 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/17563 **Author:** [@gellis713](https://github.com/gellis713) **Created:** 9/20/2024 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `17562-grapqhl-choiceset` --- ### 📝 Commits (4) - [`968535d`](https://github.com/netbox-community/netbox/commit/968535de870cefe8e230a3c3703f466873a35982) Fix parsing of extra_choices - [`6035d64`](https://github.com/netbox-community/netbox/commit/6035d64ece3ad43aa6152d0852e9e10ff6439006) Fix failing test - [`48d9e88`](https://github.com/netbox-community/netbox/commit/48d9e882f509a15000ae741ba655e64901a1f2b3) Align extra_choices syntax to match graphql expectation of iterable - [`cbd5d05`](https://github.com/netbox-community/netbox/commit/cbd5d059969c84234258a4be9fa745aeff0c0c9b) Linting ### 📊 Changes **2 files changed** (+4 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `netbox/extras/graphql/types.py` (+1 -1) 📝 `netbox/extras/tests/test_api.py` (+3 -3) </details> ### 📄 Description ### Fixes: #17562 Updates extra_choices to be a list of a list of strings which is what Django reports as the relevant types at each level. --- <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:20:08 +01:00
adam closed this issue 2025-12-30 00:20: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#15121