bug: artifact does not get regenerated when the transformation graphqlquery returns new nodes that are not part of the CoreGraphQLQueryGroup #4198
Labels
group/backend
Issue related to the backend (API Server, Git Agent)
type/bug
Something isn't working as expected
Milestone
Component
API Server / GraphQL
Infrahub version
0.16.0.dev0
Current Behavior
Given the following schema
And the following GraphQLQuery used in a jinja2 transform, for which we have an artifact definition that is imported into Infrahub from a Git repository
Assuming we have a generated artifcat for a device in the main branch.
When you create a new branch, and add a new
InfraServer
node, the existing device_config artifact does not get regenerated when you open a proposed change to merge the branch into the main branch.Expected Behavior
Since the
InfraServer
nodes are in the scope of the GraphQL query and therefor they affect the artifact for a given target, I would assume that the artifact gets regenerated.Steps to Reproduce
.infrahub.yml
file at the root of the projectdevice_config.gql
with the following contentsdevice_config.j2
in the templates directory with the following contentsdevices
InfraDevice
with namedevice
InfraInterface
with nameEthernet1
and add a relationship to InfraDevicedevice
InfraServer
with namelogging
device_config
fordevice
test
InfrasServer
namedtacacs
in the branchAdditional Information
No response
The text was updated successfully, but these errors were encountered: