Tenant filtering issue #1628

Closed
opened 2025-12-29 16:33:36 +01:00 by adam · 2 comments
Owner

Originally created by @cslingerland on GitHub (Mar 16, 2018).

Issue type

[ ] Feature request
[ x] Bug report
[ ] Documentation

Environment

  • Python version: 3
  • NetBox version: 2.3

Description

When filtering the tenants by a custom Boolean field (true/false) it returns a list of tenants that is not accurate, and duplicate entries appear. Other custom fields that we have filter correctly, just the ones that are Boolean produce this behavior.

  1. create multiple boolean custom fields on tenants with no default set
  2. assign some tenants to true and false for each boolean field
  3. filter tenants based on those boolean fields. try a few different types of filters

The above steps allowed me to re-create the issue.

Originally created by @cslingerland on GitHub (Mar 16, 2018). ### Issue type [ ] Feature request <!-- An enhancement of existing functionality --> [ x] Bug report <!-- Unexpected or erroneous behavior --> [ ] Documentation <!-- A modification to the documentation --> ### Environment * Python version: 3 * NetBox version: 2.3 ### Description When filtering the tenants by a custom Boolean field (true/false) it returns a list of tenants that is not accurate, and duplicate entries appear. Other custom fields that we have filter correctly, just the ones that are Boolean produce this behavior. 1. create multiple boolean custom fields on tenants with no default set 2. assign some tenants to true and false for each boolean field 3. filter tenants based on those boolean fields. try a few different types of filters The above steps allowed me to re-create the issue.
adam added the type: bugstatus: accepted labels 2025-12-29 16:33:36 +01:00
adam closed this issue 2025-12-29 16:33:36 +01:00
Author
Owner

@jeremystretch commented on GitHub (Mar 21, 2018):

Please provide the list of steps necessary to reproduce this bug, beginning with the creation of example tenants.

@jeremystretch commented on GitHub (Mar 21, 2018): Please provide the list of steps necessary to reproduce this bug, beginning with the creation of example tenants.
Author
Owner

@cslingerland commented on GitHub (Mar 21, 2018):

After some additional testing, this happens only when you have multiple boolean fields attached to an object. If you setup 2 or 3 boolean custom fields on Tenants, and you start filtering, it returns lists that have duplicate tenant entries, and incorrect entries. Please try reproducing on your side by creating multiple boolean fields on tenants and then setting a few of those per client. Then filter.

@cslingerland commented on GitHub (Mar 21, 2018): After some additional testing, this happens only when you have multiple boolean fields attached to an object. If you setup 2 or 3 boolean custom fields on Tenants, and you start filtering, it returns lists that have duplicate tenant entries, and incorrect entries. Please try reproducing on your side by creating multiple boolean fields on tenants and then setting a few of those per client. Then filter.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1628