question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unnecessary changelog records for tag add/change/remove

See original GitHub issue

Environment

  • Python version: 3.6.9
  • NetBox version: 2.10.3

Steps to Reproduce

  1. create two tags TagA and TagB
  2. create a virtual-machine (or device)
  3. add TagA to the virtual-machine
  4. remove TagA and add TagB to the virtual-machine (in one request)
  5. remove TagB from the virtual-machine

Expected Behavior

Steps 3., 4. and 5. create only one changelog record

Observed Behavior

Step 3. creates two changelog records (with the same request id), where only one record shows the tag add and one shows no change.

Step 4. creates three changelog records (with the same request id), where one record shows the TagA remove, one the TagB add, and one shows no change.

Step 5. creates two changelog records (with the same request id), where only one record shows the tag remove and one shows no change.

Here are the database extras_objectchange records for the above steps 2.-5.: https://gist.github.com/cloos/e7dd4c3b1f064098e4250e7cddb29c85

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jeremystretchcommented, Apr 13, 2021

This will be fixed in the upcoming v2.11 release.

0reactions
jeremystretchcommented, Apr 13, 2021

With the improvements made to change logging in v2.11 (see #5913), we should be able to update the first ObjectChange instance on m2m_changed instead of creating a second instance. I’m going to dig into this a bit more.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Grails Database Migration Plugin
The Database Migration plugin helps you manage database changes while developing Grails applications. The plugin uses the Liquibase library.
Read more >
If you were to add/change/remove 5 things from the game ...
They have made changes to the structure of boss fights which ... I would remover the price tag on skins and add a...
Read more >
Product Updates - StructionSite
Updated UI with Filter Side Panel - Sort by date, tag, user, etc. ... Bugsee no longer records video on any screens where...
Read more >
My Favorite Services (1466) - TeamDynamix
Request to process Biographical Updates, Create New Records / LIDs, ... Requests for new MiDent accounts or for changes to existing permissions.
Read more >
Propertyware, Buildium and On-Site Screening Services ...
Such information may include, without limitation, credit history, credit and ... information and authority necessary to perform RealPage's obligations under ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found