-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GraphQL CustomFieldChoiceSet erroring on extra_choices #17562
Comments
I already have a fix for this issue which is to replace the following in netbox/extras/types.py (note extra_choices should be List[List[str]]
with
|
@gellis713 Assigning you to the issue as it looks like you have a PR. Note, I was actually getting an error on the GraphQL query:
|
@arthanson Yes it appears you have the same observed behavior that I posted in the issue report. Glad to see it was reproducible. Is there anything I can/should do while waiting for the PR to be reviewed? Thanks |
Deployment Type
Self-hosted
NetBox Version
v4.1.1
Python Version
3.12
Steps to Reproduce
1: Create a new custom field choice set called "MY_CHOICE_SET" under Customization -> Custom Field Choices. In the "Extra choices" field enter:
2: Try to execute following graphql query from the API or from the web interface. Replace MY_CHOICE_SET with
Expected Behavior
Returned JSON:
Observed Behavior
Returned JSON:
The text was updated successfully, but these errors were encountered: