Skip to content

Change of custom field name results in empty data #5652

Closed
@Mothuizyk

Description

@Mothuizyk

Environment

  • Python version: 3.6.8
  • NetBox version: 2.10.3

Steps to Reproduce

  1. Create custom field.
  2. Create appropriate object (device/ip address...) and fill the custom field with data.
  3. Change name of custom field and see that appropriate field in object is empty.
  4. (Optionally) Change back the name and see that the data is back.

Expected Behavior

After changing the name of custom field data is also migrated.

Observed Behavior

Data is still linked with old name.

Looking at the database the data is still there with associated old name. Seems like name change doesn't make sure that the appropriate data is migrated to the field under new name. For sure affects devices and ip addresses, probably all objects with custom fields.

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions