Device interface missing changelog message on creation #11861

Closed
opened 2025-12-29 21:50:52 +01:00 by adam · 7 comments
Owner

Originally created by @Bapths on GitHub (Nov 21, 2025).

Originally assigned to: @Bapths on GitHub.

NetBox Edition

NetBox Community

NetBox Version

v4.4.6

Python Version

3.12

Steps to Reproduce

  1. Click any device
  2. Use the "+ Add components" > "Interfaces" button
  3. Add a new interface and fill the changelog message field
  4. Click create

Expected Behavior

Changelog message should be visible in the changelog object.

Observed Behavior

No changelog message is assigned to the created object.
It looks like the changelog message do work for update/delete logs... This issue may occur with other models but I only found it with device interfaces for now.

Originally created by @Bapths on GitHub (Nov 21, 2025). Originally assigned to: @Bapths on GitHub. ### NetBox Edition NetBox Community ### NetBox Version v4.4.6 ### Python Version 3.12 ### Steps to Reproduce 1. Click any device 2. Use the "+ Add components" > "Interfaces" button 3. Add a new interface and fill the changelog message field 4. Click create ### Expected Behavior Changelog message should be visible in the changelog object. ### Observed Behavior No changelog message is assigned to the created object. It looks like the changelog message do work for update/delete logs... This issue may occur with other models but I only found it with device interfaces for now.
adam added the type: bugstatus: acceptednetboxseverity: low labels 2025-12-29 21:50:52 +01:00
adam closed this issue 2025-12-29 21:50:52 +01:00
Author
Owner

@Bapths commented on GitHub (Nov 21, 2025):

I am not 100% sure of this but it looks like the issue involves all models using the ComponentCreateForm in dcim/forms/object_create.py. This may explain why the issue only occurs on creation, but I did not manage to fix it on my local instance.

@Bapths commented on GitHub (Nov 21, 2025): I am not 100% sure of this but it looks like the issue involves all models using the ComponentCreateForm in dcim/forms/object_create.py. This may explain why the issue only occurs on creation, but I did not manage to fix it on my local instance.
Author
Owner

@Bapths commented on GitHub (Nov 21, 2025):

Looks like there is no logic to handle _changelog_message in the post() method of class ComponentCreateView from netbox/views/generic/object_views.py.

@Bapths commented on GitHub (Nov 21, 2025): Looks like there is no logic to handle `_changelog_message` in the `post()` method of class `ComponentCreateView` from `netbox/views/generic/object_views.py`.
Author
Owner

@jnovinger commented on GitHub (Nov 21, 2025):

Thanks for the report, @Bapths. Is this something you would like to tackle, since you've already done some of the investigative work?

@jnovinger commented on GitHub (Nov 21, 2025): Thanks for the report, @Bapths. Is this something you would like to tackle, since you've already done some of the investigative work?
Author
Owner

@Bapths commented on GitHub (Nov 21, 2025):

Hi @jnovinger, I never tried proposing a bug fix for now but I might have a try. Thanks!

@Bapths commented on GitHub (Nov 21, 2025): Hi @jnovinger, I never tried proposing a bug fix for now but I might have a try. Thanks!
Author
Owner

@jnovinger commented on GitHub (Nov 21, 2025):

It's never a bad time to get involved! Having said that, I am looking for a yes/no as the project does require issues be assigned before accepted fixes for them. I will leave it as "needs owner" for the time being, in case someone else has a chance to solve it first. But, if you find the time and are interested, just holler here and we'll assign it to you.

@jnovinger commented on GitHub (Nov 21, 2025): It's never a bad time to get involved! Having said that, I am looking for a yes/no as the project does require issues be assigned before accepted fixes for them. I will leave it as "needs owner" for the time being, in case someone else has a chance to solve it first. But, if you find the time and are interested, just holler here and we'll assign it to you.
Author
Owner

@Bapths commented on GitHub (Nov 21, 2025):

I won't be able to have a look before Monday but you can already assign me this issue if that's ok for you 😄

@Bapths commented on GitHub (Nov 21, 2025): I won't be able to have a look before Monday but you can already assign me this issue if that's ok for you 😄
Author
Owner

@Bapths commented on GitHub (Nov 24, 2025):

Hi @jnovinger, I managed to solve this, so if you agree you can assign it to me 😄

@Bapths commented on GitHub (Nov 24, 2025): Hi @jnovinger, I managed to solve this, so if you agree you can assign it to me 😄
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11861