Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Invalid GET_RELATIONSHIP_PARENT shows an error in the frontend #5035

Closed
ogenstad opened this issue Nov 25, 2024 · 0 comments
Closed

bug: Invalid GET_RELATIONSHIP_PARENT shows an error in the frontend #5035

ogenstad opened this issue Nov 25, 2024 · 0 comments
Assignees
Labels
group/frontend Issue related to the frontend (React) type/bug Something isn't working as expected

Comments

@ogenstad
Copy link
Contributor

ogenstad commented Nov 25, 2024

Component

API Server / GraphQL

Infrahub version

v1.1.0-dev

Current Behavior

When editing interfaces within a circuit you can reach the point where the frontend issues this query:

query GET_RELATIONSHIP_PARENT {
  InfraCircuit(
    infracircuitendpoints__ids: ["180b3922-cb81-4a58-58db-17461439c50f"]
  ) {
    count
    edges {
      node {
        id
        display_label
        __typename
      }
      __typename
    }
    __typename
  }
}

Which returns the error:

{
  "data": null,
  "errors": [
    {
      "message": "Unknown argument 'infracircuitendpoints__ids' on field 'Query.InfraCircuit'.",
      "locations": [
        {
          "line": 3,
          "column": 5
        }
      ]
    }
  ]
}

Expected Behavior

The query to get the relationship should use a valid filter.

Steps to Reproduce

  1. Load a new instance of Infrahub and load the infrastructure schema, menu and data
  2. Nagivate to Circuit Management -> Circuts
  3. Go to the detailed page of the first circuit
  4. Click on the Endpoints tab
  5. Click on the name of the connected endpoint
  6. Click "Edit Interface L3"
  7. Observe the error

Screenshot 2024-11-25 at 14 44 52

Additional Information

No response

@ogenstad ogenstad added type/bug Something isn't working as expected group/frontend Issue related to the frontend (React) labels Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
group/frontend Issue related to the frontend (React) type/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

3 participants