Component
Python SDK
Describe the Feature Request
We should raise an error of some sort when attempting to update a read-only attribute via the SDK
Describe the Use Case
The current approach for handling read-only-attribute updates in the SDK is to silently fail by not updating the read-only attribute. A better approach would be to raise a warning or an error when the read-only attribute is updated.
Additional Information
Patrick suggested making this change in python_sdk.infrahub_sdk.node.Attribute
What we could do is to convert self.value to a property setter that after initialized would produce a warning if anyone tried to update read_only values.
Component
Python SDK
Describe the Feature Request
We should raise an error of some sort when attempting to update a read-only attribute via the SDK
Describe the Use Case
The current approach for handling read-only-attribute updates in the SDK is to silently fail by not updating the read-only attribute. A better approach would be to raise a warning or an error when the read-only attribute is updated.
Additional Information
Patrick suggested making this change in
python_sdk.infrahub_sdk.node.Attribute