peteeckel/netbox-plugin-dns

Save on record cause double save and 2 webhooks sent

Closed this issue · 3 comments

Versions
NetBox Version: 3.7.8
NetBox DNS Version: 0.22.9
Python Version: 3.10

Describe the bug
When a record is updated with data and tags, and I look at the webhooks sent, I receive a webhook first of the data change, then a webhook with the tag change.

To Reproduce
Steps to reproduce the behavior:

  1. Got to a record object
  2. Update the record with tags and data

Expected result
I believe that there should only be one update and only one webhooks sent.

Actual result
It seems that a double update occurs, one for data and one for tags.

Hi @MaayanPeleg,

this is a duplicate of #89.

Unfortunately it is due to a NetBox issue that was fixed in version 4.0.5, so I don't have a chance of backporting the fix to the legacy branch for NetBox 3.

I'm sorry, but it just can't be done.

Thank you and apologies for not noticing that this was a duplicate issue.

Never mind - you're by no means the first, the issue is really ugly and hard to spot.

The only way of getting rid of it is to upgrade NetBox to 4.0.5+ (and NetBox DNS to 1.x.x for NetBox 4 support), which will solve it immediately.