Skip to content

No changelogs entry for deleted tags #19998

@ederlf

Description

@ederlf

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)

  1. 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"}'
  1. 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"}]}'
  1. 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.

Image

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 availablestatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions