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: cannot view resource pool details in front end when it references resources of a kind that is not defined in the main branch #4761

Closed
wvandeun opened this issue Oct 28, 2024 · 1 comment
Assignees
Labels
group/backend Issue related to the backend (API Server, Git Agent) type/bug Something isn't working as expected

Comments

@wvandeun
Copy link
Contributor

Component

Frontend UI

Infrahub version

1.0.0.dev.0

Current Behavior

When you open the resource pool detailed page for a resource pool that contains resources, for which the kind of the resource is not yet defined in the main branch, then opening the detailed page will fail with an error message:
image

Expected Behavior

We can open the resource pool detailed view

Steps to Reproduce

  • load an instance of infrahub
  • create a branch
  • load the following schema in the branch
---
version: "1.0"
nodes:
  - name: IPPrefix
    namespace: Ipam
    include_in_menu: false
    inherit_from:
      - "BuiltinIPPrefix"
    description: "IPv4 or IPv6 network"
    label: "IP Prefix"
  - name: IPAddress
    namespace: Ipam
    include_in_menu: false
    inherit_from:
      - "BuiltinIPAddress"
    description: "IP Address"
    label: "IP Address"
  - name: Device
    namespace: Infra
    description: "A Device"
    icon: "mdi:server"
    label: "Device"
    attributes:
      - name: name
        kind: Text
        label: Name
        optional: false
    relationships:
      - name: primary_ip
        label: "Primary IP Address"
        peer: IpamIPAddress
        optional: false
        kind: Attribute
        cardinality: one
  • in the branch, create a new IpamIPPrefix
  • in the branch, create a new CoreIPAddressPool, referencing the IP prefix as resource
  • in the UI, in the branch navigate to CoreIPAddressPool list view
  • open the newly create pool

Additional Information

No response

@wvandeun wvandeun added the type/bug Something isn't working as expected label Oct 28, 2024
@exalate-issue-sync exalate-issue-sync bot added this to the Infrahub - 1.0.1 milestone Oct 28, 2024
@dgarros dgarros added the group/frontend Issue related to the frontend (React) label Oct 28, 2024
@exalate-issue-sync exalate-issue-sync bot added group/backend Issue related to the backend (API Server, Git Agent) and removed group/frontend Issue related to the frontend (React) labels Oct 29, 2024
Copy link

[From lykinsbd]

Initial investigation shows a query ({{InfrahubResourcePoolUtilization}}) that returns an error if the object does not exist in the main branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
group/backend Issue related to the backend (API Server, Git Agent) type/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

2 participants