-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Matter Cleanup for Chip Tool Repo #737
Matter Cleanup for Chip Tool Repo #737
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Er, meant to request changes.
a40fa5b
to
e730753
Compare
@brdandu I see 4 different changes here and each of them could have been its own dedicated PR. That would make the process easier and not all changes will be blocked on one particular changes:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This generally looks pretty good, but I'm still not convinced on the max behavior. See #737 (comment)
…d across different kinds of templates - Adding selectStructsWithClusterAssociation which takes the logic src-electron/generator/matter/chip-tool/templates/helper.js#structs_with_cluster_name to the backend(sql query). structs_with_clusters helper uses this instead of exports.structs_with_cluster_name - Updating cleanseLabelAsKebabCase so that it can be used instead of asDelimitedCommand - endpoint type was being treated as signed integer due to parsing logic in zcl-silabs-loader.js. Added a separate condition for this - Added generation tests for all the new helpers with an additional matter generation template - Adding the groupByStructName option to structs_with_clusters to avoid duplicate rows - Cleaning up the loader - Cleaning up the helpers in helper-zcl - For zcl data types, taking into account the signed attribute in the xml for numbers. If not mentioned then accounting for known exceptions such as single and double data types Throwing an error in as_type_max/min_value when language option is not specified Github: ZAP#679
8db1f24
to
8a3a89a
Compare
Adding generic helpers with less hardcoding such that they can be used across different kinds of templates
This PR will be associated with a CHIP repo PR project-chip/connectedhomeip#22762