-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
severity: mediumResults in substantial degraded or broken functionality for specfic workflowsResults in substantial degraded or broken functionality for specfic workflowsstatus: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtopic: GraphQLtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application
Description
Deployment Type
Self-hosted
NetBox Version
v4.0.0
Python Version
3.11
Steps to Reproduce
Let's take the OR-Filter as an example: As described in the docs, I would like to filter for VMs that are in the active and in the staged status:
{
virtual_machine_list(filters: {status: "staged", OR: {status: "active"}}) {
name
status
}
}
Returns:
{
"data": {
"virtual_machine_list": []
}
}
As seen, this query returns an empty result, while distinct queries for staged and active VMs return results:
{
virtual_machine_list(filters: {status: "staged"}) {
name
status
}
}
Returns:
{
"data": {
"virtual_machine_list": [
{
"name": "vm3",
"status": "staged"
},
{
"name": "vm4",
"status": "staged"
}
]
}
}
And
{
virtual_machine_list(filters: {status: "active"}) {
name
status
}
}
Returns:
{
"data": {
"virtual_machine_list": [
{
"name": "vm1",
"status": "active"
},
{
"name": "vm2",
"status": "active"
}
]
}
}
Or another example: the NOT-Filter: let's assume that I want to filter for all VMs that are not active:
{
virtual_machine_list(filters: {NOT: {status: "active"}}) {
name
status
}
}
But for some reason, this only returns active VMs:
{
"data": {
"virtual_machine_list": [
{
"name": "vm1",
"status": "active"
},
{
"name": "vm2",
"status": "active"
}
]
}
}
Expected Behavior
That the OR-Filter returns active and staged VMs and that the NOT-Filter returns everything except active VMs.
Observed Behavior
Described above.
v0tti, atownson, dmulyalin, bluikko, unfokus and 3 more
Metadata
Metadata
Assignees
Labels
severity: mediumResults in substantial degraded or broken functionality for specfic workflowsResults in substantial degraded or broken functionality for specfic workflowsstatus: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtopic: GraphQLtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application