-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Make access control cluster attributes nullable #13608
Make access control cluster attributes nullable #13608
Conversation
Couldn't do this before as the tooling and/or generated code was not up to it. Now it seems to be able to handle the list attributes being nullable.
Ideally related PR #13607 is merged first, though I think this will be OK if it does go in beforehand, it just won't actually handle null as an attribute value until it does, it'll just complain with an error if you try. |
PR #13608: Size comparison from a11413e to f6431f3 Increases (1 build for linux)
Decreases (5 builds for efr32, p6, qpg, telink)
Full report (14 builds for efr32, k32w, linux, p6, qpg, telink)
|
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.
I don't quite follow this change. These are not marked nullable in the spec...
@@ -67,13 +67,13 @@ limitations under the License. | |||
and enforce Access Control for the Node’s endpoints and their associated | |||
cluster instances.</description> | |||
<!-- Base data types --> | |||
<attribute side="server" code="0x0000" define="ACL" type="ARRAY" entryType="AccessControlEntry" writable="true"> | |||
<attribute side="server" code="0x0000" define="ACL" type="ARRAY" entryType="AccessControlEntry" isNullable="true" writable="true"> |
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 is not nullable in the spec. Why are we marking it nullable?
PR #13608: Size comparison from a11413e to d439875 Increases (1 build for linux)
Decreases (1 build for esp32)
Full report (32 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
|
The attributes were originally nullable in the spec, but I see they lost it at some point before we settled on final spec. I'll withdraw this PR. |
Couldn't do this before as the tooling and/or generated code was not up to it.
Now it seems to be able to handle the list attributes being nullable.
Problem
Access Control cluster attributes should be nullable. This couldn't be done when they were created
as the tooling and generated code were not up to it.
Change overview
Now that this is feasible, make the attributes in access-control-cluster.xml nullable.
Testing
Built and ran all-clusters-app on Linux with REPL to try null lists
as well as lists with items.