Skip to content

Enable filtering for null numeric values using the empty lookup #13585

@jeremystretch

Description

@jeremystretch

NetBox version

v3.5.8

Feature type

New functionality

Proposed functionality

NetBox currently supports checking for empty string fields using the empty lookup (e.g. ?description__empty=true). This FR proposes extending that functionality to numeric fields as well, to match null/non-null values.

Use case

This enables a user to query numeric fields generally for null or non-null values. For example, ?position__empty=true would return devices which do not have a rack position defined.

Database changes

No response

External dependencies

No response

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions