bug: create/update mutation allows you to set a parent for the "root" of a hierarchy #4325
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
When you define a hierarchy in the schema, we define the root of hierarchy by specifying setting an empty parent.
We should therefor not be able to set a parent for nodes that are at the root level of the hierarchy.
It seems that it is possible to set a parent for nodes at the root level, as long as the node that you want to add a parent is inheriting from the generic that defines the hierarchy.
Expected Behavior
We should not be able to define a parent for a node that is at the root of a hierarchy.
Steps to Reproduce
Additional Information
No response
The text was updated successfully, but these errors were encountered: