Skip to content

bug: Template Creation Requires Parent Template #6836

Description

@BeArchiTek

Component

API Server / GraphQL

Infrahub version

1.3.3

Current Behavior

When attempting to template a model that has a Parent, the system also forces the creation of a template for the parent. This is inconvenient and should not be required—users should be able to template a child model independently of its Parent.

Expected Behavior

It should be possible to template a child model without being forced to create a template for its Parent.

Steps to Reproduce

  1. Create a simple schema with 2 nodes. One of them is the Parent of the other.
  2. Add generate_template: true on the child node and try to load the schema
  3. Observe that the system requires a template for the Parent.

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    state/need-more-infoThis issue needs more informationtype/bugSomething isn't working as expected

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions