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: edit form node shows empty input field for required relationships of cardinality many #4102

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

Comments

@wvandeun
Copy link
Contributor

Component

Frontend UI

Infrahub version

0.16.0.dev0

Current Behavior

The node edit form shows an empty input field for a node that has a required relationship of cardinality many, when such relationship to a related node exists.

Expected Behavior

The related node is properly shown in the node edit form.

Steps to Reproduce

  • spin up infrahub
  • load this schema
---
version: "1.0"
nodes:
  - name: ANode
    namespace: Infra
    label: "ANode"
    display_labels:
      - name__value
    attributes:
      - name: name
        kind: Text
        unique: true
    relationships:
      - name: other_node
        peer: InfraBNode
        label: Other node
        cardinality: many
        optional: false
  - name: BNode
    namespace: Infra
    menu_placement: InfraANode
    label: "BNode"
    display_labels:
      - name__value
    attributes:
      - name: name
        kind: Text
        unique: true
  • Create an InfraANode (and create the required relationship to BNode)
  • Open the created ANode in the node detailed view
  • Click edit object
  • The Other node input field will show up as empty

Additional Information

No response

@wvandeun wvandeun added the type/bug Something isn't working as expected label Aug 14, 2024
@dgarros dgarros added the group/frontend Issue related to the frontend (React) label Aug 14, 2024
@bilalabbad bilalabbad self-assigned this Aug 14, 2024
@exalate-issue-sync exalate-issue-sync bot added the state/planned This issue is planned to be worked on in an upcoming release. label Aug 27, 2024
@exalate-issue-sync exalate-issue-sync bot removed the state/planned This issue is planned to be worked on in an upcoming release. label Aug 30, 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