Skip to content

bug: using generate_template: True on a GenericSchema breaks the GraphQL schema (and UI) #8371

@ajtmccarty

Description

@ajtmccarty

Component

API Server / GraphQL

Infrahub version

1.7.4

Current Behavior

setting generate_template: True on a GenericSchema will create an invalid GraphQL schema, which breaks the frontend and prevents any GraphQL queries/mutations from running

Expected Behavior

we should just prevent setting generate_template: True on a GenericSchema

Steps to Reproduce

  1. load a schema that includes a Generic with generate_template=True and at least one Node that inherits from the Generic (generate_template can be either True or False)
  2. the schema loads successfully, then the UI breaks

Additional Information

No response

Metadata

Metadata

Assignees

Labels

priority/1This issue must be fixed/implemented ASAP, it's a blocker for a releasestate/need-triageThis issue needs to be triagedtype/bugSomething isn't working as expected

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions