Remove Duplicate IP Range API Serializer Values #11124

Closed
opened 2025-12-29 21:40:38 +01:00 by adam · 4 comments
Owner

Originally created by @mr1716 on GitHub (May 5, 2025).

Originally assigned to: @mr1716 on GitHub.

Proposed Changes

Image

When doing some custom development for my own Netbox instance, I found that there may be some duplicate IP Range API Serializers

Justification

Removing Duplicates values

Originally created by @mr1716 on GitHub (May 5, 2025). Originally assigned to: @mr1716 on GitHub. ### Proposed Changes ![Image](https://github.com/user-attachments/assets/2cb5d249-d6b0-453b-8001-9af13df63a4a) When doing some custom development for my own Netbox instance, I found that there may be some duplicate IP Range API Serializers ### Justification Removing Duplicates values
adam added the status: acceptedtype: housekeeping labels 2025-12-29 21:40:38 +01:00
adam closed this issue 2025-12-29 21:40:38 +01:00
Author
Owner

@jnovinger commented on GitHub (May 5, 2025):

Hey @mr1716 , it doesn't look like this causes custom_fields to be duplicated in REST API responses. But, you are absolutely correct that it doesn't need to be there twice. Thanks for the report!

@jnovinger commented on GitHub (May 5, 2025): Hey @mr1716 , it doesn't look like this causes `custom_fields` to be duplicated in REST API responses. But, you are absolutely correct that it doesn't need to be there twice. Thanks for the report!
Author
Owner

@mr1716 commented on GitHub (May 5, 2025):

@jnovinger understood. Thanks. I'll take care of this ticket and have a PR shortly

@mr1716 commented on GitHub (May 5, 2025): @jnovinger understood. Thanks. I'll take care of this ticket and have a PR shortly
Author
Owner

@jnovinger commented on GitHub (May 5, 2025):

@mr1716 , I did also notice that there are other duplicates in there, besides just custom_fields. I couldn't tell if you had seen them as well from the screenshot.

@jnovinger commented on GitHub (May 5, 2025): @mr1716 , I did also notice that there are other duplicates in there, besides just `custom_fields`. I couldn't tell if you had seen them as well from the screenshot.
Author
Owner

@mr1716 commented on GitHub (May 5, 2025):

@jnovinger thanks. I did, but highlighted that 1 field to be simple

@mr1716 commented on GitHub (May 5, 2025): @jnovinger thanks. I did, but highlighted that 1 field to be simple
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11124