Skip to content

GraphQL: Filtering FHRP group assignments by device/VM is not available #19640

@Leo1003

Description

@Leo1003

Deployment Type

Self-hosted

NetBox Version

v4.3.1

Python Version

3.10

Steps to Reproduce

Originally, it was able to filter FHRP group assignments by device/VM id.
This feature was added by #9314.
However, in the version 4.3.1, Those fields definition are missing in FHRPGroupAssignmentFilter.
And this regression breaks our scripts.

I can even check this issue from the demo site: https://demo.netbox.dev/graphql/

The following GraphQL query works fine in version 4.2, but it causes an error in version 4.3

{
  fhrp_group_assignment_list(filters: {virtual_machine_id: ["22"]}) {
    group {
      id
      ip_addresses {
        address
        dns_name
      }
    }
  }
}

Expected Behavior

Should be able to use device, device_id, virtual_machine, virtual_machine_id to filter FHRPGroupAssignment.

Observed Behavior

The above query return an error:

Field 'virtual_machine_id' is not defined by type 'FHRPGroupAssignmentFilter'.

And those fields are missing from FHRPGroupAssignmentFilter definition.

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtopic: GraphQLtype: bugA confirmed report of unexpected behavior in the application

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions