8000 Fix the Legal Clusters view where users will only see clusters associated with a device type and not just enabled clusters which is wrong by brdandu · Pull Request #1573 · project-chip/zap · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

brdandu
Copy link
Collaborator
@brdandu brdandu commented Apr 11, 2025
  • 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

@brdandu
Copy link
Collaborator Author
brdandu commented Apr 11, 2025

@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.

Copy link
Collaborator
@tecimovic tecimovic left a 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}`
Copy link
Collaborator

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

Copy link
Collaborator Author

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.

8000
…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
@brdandu brdandu force-pushed the feature/showOnlyLegalClustersBasedOnDeviceTypes/ZAP#316 branch from 2055d65 to b0e829c Compare April 11, 2025 19:41
@brdandu brdandu merged commit 74eadd0 into project-chip:master Apr 14, 2025
13 checks passed
@brdandu brdandu linked an issue Apr 14, 2025 that may be closed by this pull request
@brdandu brdandu linked an issue Apr 23, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants
0