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: InfrahubTask entries show the wrong related node in the frontend #5118

Open
wvandeun opened this issue Dec 2, 2024 · 1 comment
Open
Labels
group/backend Issue related to the backend (API Server, Git Agent) priority/2 This issue stalls work on the project or its dependents, it's a blocker for a release type/bug Something isn't working as expected

Comments

@wvandeun
Copy link
Contributor

wvandeun commented Dec 2, 2024

Component

Frontend UI

Infrahub version

1.0.7

Current Behavior

When you create (or delete) a new branch, then the Infrahub task entry seems to be related to the wrong user in the frontend. The user seems to be the first CoreAccount returned by the GraphQL CoreAccount query (alphabetical order).

The related_node of the InfrahubTask returned by the InfrahubTask GraphQL query is the correct id of the correct CoreAccount.

Expected Behavior

An Infrahub Task should show the correct related node in the frontend.

Steps to Reproduce

  • spin up instance of Infrahub
  • login as the admin user
  • create a new branch
  • navigate to the InfrahubTask list view
  • the task to create the branch shows the correct related node "Admin"
  • create a new CoreAccount "abc" (any name alphabetically ordered before Admin will do)
  • navigate to the InfrahubTask list view
  • the task to create the branch shows the wrong related node, the newly create CoreAccount
  • execute the following GraphQL query
query {
  InfrahubTask {
    edges {
      node {
        title
        related_node
      }
    }
  }
}
  • the related node should be the id of the Admin user

Additional Information

No response

@wvandeun wvandeun added type/bug Something isn't working as expected group/frontend Issue related to the frontend (React) labels Dec 2, 2024
@exalate-issue-sync exalate-issue-sync bot added the priority/2 This issue stalls work on the project or its dependents, it's a blocker for a release label Dec 2, 2024
@ogenstad ogenstad added group/backend Issue related to the backend (API Server, Git Agent) and removed group/frontend Issue related to the frontend (React) labels Dec 2, 2024
@BeArchiTek
Copy link
Contributor

Maybe similar to #5002

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) priority/2 This issue stalls work on the project or its dependents, it's a blocker for a release type/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

3 participants