Skip to content

Chore: Add families handling to create instances - #1994

Open
iLLiCiTiT wants to merge 4 commits into
developfrom
enhancement/add-families-handling-to-create-instances
Open

Chore: Add families handling to create instances#1994
iLLiCiTiT wants to merge 4 commits into
developfrom
enhancement/add-families-handling-to-create-instances

Conversation

@iLLiCiTiT

Copy link
Copy Markdown
Member

Changelog Description

Create instances have families that can be tracked and it is possible to listen to changes.

Additional info

CreatedInstance object now have families attribute stored under "families" key on the instance. It does allow to trigger value changes so a plugin can listen to the changes and show/hide attributes based on families.

This PR is preparation for other features, like #1818 .

Added helper decorator refresh_instance_attributes to easily trigger refresh of attribute definitions in most of the simple cases.

Testing notes:

Validate code changes.

Changing families in any way shape or form does trigger and value changed event for "families" key on an instance.

This PR should not break integrations where families were already filled during create phase!

@iLLiCiTiT
iLLiCiTiT requested a review from BigRoy August 11, 2026 12:09
@iLLiCiTiT iLLiCiTiT self-assigned this Aug 11, 2026
@iLLiCiTiT iLLiCiTiT added the type: enhancement Improvement of existing functionality or minor addition label Aug 11, 2026
@ynbot ynbot added the size/S label Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S type: enhancement Improvement of existing functionality or minor addition

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants