-
Notifications
You must be signed in to change notification settings - Fork 87
Fix the Legal Clusters view where users will only see clusters associated with a device type and not just enabled clusters which is wrong #1573
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
Conversation
- Use the device types on the selected endpoint to figure out the device type clusters and then only show those clusters in the UI.
- The Legal clusters UI view will also not allow users to enable/disable non compliant clusters and also not show non compliant clusters.
- Github: ZAP#316
@mlepage-google @bzbarsky-apple , Added you too, just a FYI and if you guys wanted to try the feature before it is merged. Feel free to ignore the PR review process. However, all reviews are appreciated. |
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.
Cursory sanity check seems ok if the builds pass.
) | ||
p.push( | ||
axiosRequests | ||
.$serverGet( | ||
`${restApi.uri.deviceTypeAttributes}${endpointTypeDeviceTypeRefPair.deviceTypeRef}` |
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.
Why did you do this? I'm lost
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 was all broken when multiple device type refs are passed(Which happens when user selects more than one device type on an endpoints). The URIs were like Identify/1,2
which would return nothing. Now it does Identify/1 and
Identify/2` and collates the 2 results.
Am surprised no one has complained about this yet.
…ated with a device type and not just enabled clusters which is wrong - Use the device types on the selected endpoint to figure out the device type clusters and then only show those clusters in the UI. - The Legal clusters UI view will also not allow users to enable/disable non compliant clusters and also not show non compliant clusters. - Adding cypress tests for filters of legal and enabled clusters - Add more tests where the clusters are check for enablement when clicking on the client and server checkboxes - Github: ZAP#316
2055d65
to
b0e829c
Compare