opsmill / infrahub

Infrahub - A new approach to Infrastructure Management
https://opsmill.com/
GNU Affero General Public License v3.0
183 stars 8 forks source link

bug: hfid for a schema node is not auto generated when using uniqueness_constraints #4174

Open wvandeun opened 2 weeks ago

wvandeun commented 2 weeks ago

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