-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
state/need-more-infoThis issue needs more informationThis issue needs more informationtype/bugSomething isn't working as expectedSomething isn't working as expected
Description
Component
No response
Infrahub SDK version
1.18.1
Current Behavior
I updated a Node attribute using the SDK and saved the object. After running the InfrahubNodeSync().update() and InfrahubNodeSync().update(do_full_update=True) multiple times my computed_attributes were not updated. I see the updated value in the GUI but the SDK does not update no matter what.
Basically I have to trash every node after I modify them and query the API again.
Expected Behavior
InfrahubNodeSync().update() should pull updates for computed attributes and update the model with any new data.
Steps to Reproduce
- Configure a Node with 2 attributes (1 attribute such as Text and a computed_attribute that uses the other attribute)
- Query the node in the SDK.
- Update the Text attribute
- Save the Node
- Run
InfrahubNodeSync().update()orInfrahubNodeSync().update(do_full_update=True) - The computed_attributed is never updated to the new value
Additional Information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
state/need-more-infoThis issue needs more informationThis issue needs more informationtype/bugSomething isn't working as expectedSomething isn't working as expected