-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Labels
severity: lowDoes not significantly disrupt application functionality, or a workaround is availableDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application
Milestone
Description
NetBox Version
v4.35
Python Version
3.12
Steps to Reproduce
Here are the curl api calls to reproduce:
(Assuming you have set a NETBOX_DEMO_TOKEN environment variable)
- Create Tag
curl -X POST "https://demo.netbox.dev/api/extras/tags/" \
-H "Authorization: Token $NETBOX_DEMO_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name": "test", "slug": "test"}'
- Add tag to interface
curl -X PATCH "https://demo.netbox.dev/api/dcim/interfaces/1/" \
-H "Authorization: Token $NETBOX_DEMO_TOKEN" \
-H "Content-Type: application/json" \
-d '{"tags": [{"slug": "test"}]}'
- Remove tag from interface
curl -X PATCH "https://demo.netbox.dev/api/dcim/interfaces/1/" \
-H "Authorization: Token $NETBOX_DEMO_TOKEN" \
-H "Content-Type: application/json" \
-d '{"tags": []}'
Expected Behavior
After executing the commands above, I'd expect two changelog entries for the target interface.
However there's is only a single change entry.

The patch removal of the tag worked though, as it results in an interface without tags.
Observed Behavior
There should be two changelog entries.
One for the addition of the tag and another one for the removal.
Metadata
Metadata
Assignees
Labels
severity: lowDoes not significantly disrupt application functionality, or a workaround is availableDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application