change log is cryptic when field value is id #5556

Closed
opened 2025-12-29 19:29:22 +01:00 by adam · 3 comments
Owner

Originally created by @thecotne on GitHub (Oct 23, 2021).

NetBox version

v3.0.8

Feature type

Change to existing functionality

Proposed functionality

change log is cryptic when field value is id since it only shows id and does not give you name of the object or link to that object

it would be beneficial to show name/link of object instead of only showing raw data

Use case

for example if you go to devices and change device role for specific device diff you get in change log is like it was 6 and now it's 4 and there is no good way to see what that means

we can add name and link of the role 6 and 4 so it's easy to understand what's going on

this would benefit anyone who needs to read change log with changes of any field where value is id of other object

current view

Screenshot 2021-10-23 165015

proposed change

Screenshot 2021-10-23 165252

Database changes

No response

External dependencies

No response

Originally created by @thecotne on GitHub (Oct 23, 2021). ### NetBox version v3.0.8 ### Feature type Change to existing functionality ### Proposed functionality change log is cryptic when field value is id since it only shows id and does not give you name of the object or link to that object it would be beneficial to show name/link of object instead of only showing raw data ### Use case for example if you go to devices and change device role for specific device diff you get in change log is like it was 6 and now it's 4 and there is no good way to see what that means we can add name and link of the role 6 and 4 so it's easy to understand what's going on this would benefit anyone who needs to read change log with changes of any field where value is id of other object ## current view ![Screenshot 2021-10-23 165015](https://user-images.githubusercontent.com/1606993/138557256-7abf22a4-00a5-40ea-a2aa-866a6874a492.png) ## proposed change ![Screenshot 2021-10-23 165252](https://user-images.githubusercontent.com/1606993/138557253-9d92770a-e4da-41c1-a29b-697c5f55d5eb.png) ### Database changes _No response_ ### External dependencies _No response_
adam added the type: feature label 2025-12-29 19:29:22 +01:00
adam closed this issue 2025-12-29 19:29:22 +01:00
Author
Owner

@jeremystretch commented on GitHub (Oct 23, 2021):

This is intentional. The primary key is the one attribute guaranteed to be unique for every instance of every model.

it would be beneficial to show name/link of object instead of only showing raw data

If we did, it would quickly become very confusing to track down related objects whose names have changed. Referencing their primary key instead ensures that the related object can always be quickly and reliably queried.

@jeremystretch commented on GitHub (Oct 23, 2021): This is intentional. The primary key is the one attribute guaranteed to be unique for every instance of every model. > it would be beneficial to show name/link of object instead of only showing raw data If we did, it would quickly become very confusing to track down related objects whose names have changed. Referencing their primary key instead ensures that the related object can always be quickly and reliably queried.
Author
Owner

@thecotne commented on GitHub (Oct 24, 2021):

i am NOT proposing any changes to database structure.

i am proposing to SHOW (not store) name/link of related object referenced by ID (primary key) since people don't memorize IDs and it's not convenient to manually lookup related object by it's ID to understand what was the change

@thecotne commented on GitHub (Oct 24, 2021): i am **NOT** proposing any changes to database structure. i am proposing to **SHOW** (not store) name/link of related object referenced by ID (primary key) since people don't memorize IDs and it's not convenient to manually lookup related object by it's ID to understand what was the change
Author
Owner

@jeremystretch commented on GitHub (Oct 24, 2021):

i am proposing to SHOW (not store) name/link of related object referenced by ID

Each change log entry is a snapshot in time. It wouldn't make any sense to show the current name or other attributes of a related object in a past entry.

@jeremystretch commented on GitHub (Oct 24, 2021): > i am proposing to SHOW (not store) name/link of related object referenced by ID Each change log entry is a snapshot in time. It wouldn't make any sense to show the _current_ name or other attributes of a related object in a _past_ entry.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5556