opsmill / infrahub

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

feature: Support hfid in Node.add_relationships() #3728

Open BeArchiTek opened 5 days ago

BeArchiTek commented 5 days ago

Component

Python SDK

Describe the Feature Request

Currently, i can use node.add_relationships() to update a relation with a list of ID. when saving the object in the store I may not have the ID so it's forcing me to requested Infrahub to get the ID before I build the list, which is not efficient

Describe the Use Case

As a user I would like to be able to add related_node via the node.add_relationships() function using the HFID instead of the ID

Additional Information

No response