bug: infrahub doesn't update the CoreGraphQLQuery query attribute properly from a query defined in a repository in a branch if the branch has a conflict #5085
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
Component
Git Integration
Infrahub version
1.0.7
Current Behavior
Infrahub doesn't seem to properly update a CoreGraphQLQuery node's query attribute value, when that value is coming from a query that is defined in an external git repository in a branch, that has a conflict with main.
It seems that the value is being set, to the value of the query as defined in the main branch.
When you then update the query in the main branch (new commit in git repo), then the value of the query will be updated for the CoreGraphQLQuery node in main, but the node in the branch will still have main's old query value.
Additionally we may want change the
Operational status
should not beError
when we run into a conflict, but a more dedicated status with a different color.Expected Behavior
The CoreGraphQLQuery query attribute contains the query as defined in the branch in the git repository, even if there's a conflict.
Steps to Reproduce
test.gql
with the following contents.infrahub.yml
file with the following contentstest-branch
Error
test
but have a query attribute value which is the value from the main branchAdditional Information
I haven't checked but we might have a similar issue for checks/transforms/generators/...
The text was updated successfully, but these errors were encountered: