Incorrect raw value for "loose" custom field filter logic #4300

Closed
opened 2025-12-29 18:34:31 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Nov 24, 2020).

Originally assigned to: @jeremystretch on GitHub.

Environment

  • Python version: 3.6.9
  • NetBox version: 2.9.9

Steps to Reproduce

  1. Create a custom field with its filter logic set to "loose"
  2. Inspect the column's value in the database table (extras_customfield.filter_logic)

Expected Behavior

The value should read "loose".

Observed Behavior

The value reads "integer".

This is due to an error in database migration 0029_3569_customfield_fields under the extras app, which incorrectly converts the old numeric representation to the slug value "integer" instead of "loose". (This was due to a copy/paste error when constructing the migration.)

It's worth noting that this error doesn't actually inhibit functionality. However, with REST API support being introduced for custom fields in v2.10 (#5274), the value needs to be corrected.

Originally created by @jeremystretch on GitHub (Nov 24, 2020). Originally assigned to: @jeremystretch on GitHub. ### Environment * Python version: 3.6.9 * NetBox version: 2.9.9 ### Steps to Reproduce 1. Create a custom field with its filter logic set to "loose" 2. Inspect the column's value in the database table (`extras_customfield.filter_logic`) ### Expected Behavior The value should read "loose". ### Observed Behavior The value reads "integer". This is due to an error in database migration `0029_3569_customfield_fields` under the extras app, which incorrectly converts the old numeric representation to the slug value "integer" instead of "loose". (This was due to a copy/paste error when constructing the migration.) It's worth noting that this error doesn't actually inhibit functionality. However, with REST API support being introduced for custom fields in v2.10 (#5274), the value needs to be corrected.
adam added the type: bugstatus: accepted labels 2025-12-29 18:34:31 +01:00
adam closed this issue 2025-12-29 18:34:31 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4300