Unnecessary changelog records for tag add/change/remove
See original GitHub issueEnvironment
- Python version: 3.6.9
- NetBox version: 2.10.3
Steps to Reproduce
- create two tags TagA and TagB
- create a virtual-machine (or device)
- add TagA to the virtual-machine
- remove TagA and add TagB to the virtual-machine (in one request)
- 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:
- Created 3 years ago
- Reactions:1
- Comments:5 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This will be fixed in the upcoming v2.11 release.
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.