Open wvandeun opened 2 weeks ago
API Server / GraphQL
0.16.0.dev0
When you define a single uniqueness_constraint on a schema node, the hfid property of the schema node is not automatically generated.
When you do the same, but instead use the unique property on the attribute then the HFID is automatically generated.
unique
The HFID is auto generated for a schema node if the unqiueness constraint is on a single attribute defined using the uniqueness_constraints property.
--- version: "1.0" nodes: - name: Test namespace: Testing uniqueness_constraints: - ["aaa__value"] attributes: - name: aaa kind: Text - name: bbb kind: Text
from infrahub_sdk import InfrahubClientSync client = InfrahubClientSync() node_schema = client.schema.get("TestingTest") assert node_schema.human_friendly_id is None
No response
Component
API Server / GraphQL
Infrahub version
0.16.0.dev0
Current Behavior
When you define a single uniqueness_constraint on a schema node, the hfid property of the schema node is not automatically generated.
When you do the same, but instead use the
unique
property on the attribute then the HFID is automatically generated.Expected Behavior
The HFID is auto generated for a schema node if the unqiueness constraint is on a single attribute defined using the uniqueness_constraints property.
Steps to Reproduce
Additional Information
No response