Skip to content
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

Cleaning up the custom xml UI update as well as the custom xml package uploading such that there are no duplicates #1296

Closed

Conversation

brdandu
Copy link
Collaborator

@brdandu brdandu commented Apr 3, 2024

  • JIRA: ZAPP-1351

@brdandu
Copy link
Collaborator Author

brdandu commented Apr 3, 2024

cluster extensions(attributes, cmd) are not showing up in the UI. Looking into it.

paulr34
paulr34 previously approved these changes Apr 3, 2024
@brdandu brdandu force-pushed the bug/fixCustomXml/ZAPP-1351 branch from 38b0216 to e41829c Compare April 3, 2024 18:07
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 70.83333% with 7 lines in your changes are missing coverage. Please review.

Project coverage is 65.89%. Comparing base (5cc7614) to head (e41829c).

Files Patch % Lines
src/store/zap/mutations.js 28.57% 5 Missing ⚠️
src-electron/importexport/import-json.js 77.77% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1296      +/-   ##
==========================================
- Coverage   65.89%   65.89%   -0.01%     
==========================================
  Files         189      189              
  Lines       20132    20152      +20     
  Branches     4337     4344       +7     
==========================================
+ Hits        13266    13279      +13     
- Misses       6866     6873       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@brdandu
Copy link
Collaborator Author

brdandu commented Apr 5, 2024

cluster extensions(attributes, cmd) are not showing up in the UI. Looking into it.

fixed

@paulr34 paulr34 dismissed their stale review April 5, 2024 19:21

Will review again

@brdandu
Copy link
Collaborator Author

brdandu commented Apr 5, 2024

remaining tasks: Add unit tests for custom xml

- Cleaning up the custom xml UI update as well as the custom xml package uploading such that there are no duplicates
- Fixing the custom xml UI for attributes, commands and events when cluster extensions are added through custom xml. Needed the custom xml package ids to be included
- Fixing the duplicate attributes and commands which show up in the attribute and command UI when a custom cluster with custom attributes and commands is added. This is solved by using a set in : reduceAndConcatenateZclEntity(db, id, [...new Set([...standAlonePackageIds, clusterInfo.packageRef])],
- Adding unique constraint to Attribute table and adding insert or replace to attribute insert query such that custom cluster extensions are not reloaded into the db.
- Making sure the global attributes are part of the custom clusters in static-zcl.js while calling reduceAndConcatenateZclEntity
- Making sure that session partition numbering is correct for the partitionNumber column
- For loading custom cluster extensions such as attributes and commands. Making sure they are loaded into the database based on the top level zcl package loaded. This is needed for sdk upgrades or custom xml in multi-protocol. See changes to zcl-loader-silabs and zcl-loader
- When adding custom xml, there are instances where multiple zcl packages are loaded for the same xml file. This was an issue with the mutation observer. Getting the load new package call out of the observer to fix this. Reproducer: Open zap, add custom xml from extensions, close extensions pane, add another xml from extensions and you will see two instances of the xml added. If you add another xml then you see 3 instances. This is fixed in ZclCustomZclView.vue
- Making sure that the delete button appears across custom xml for removal and doing some minor UI cleanup
- Add more unit tests for custom xml
- JIRA: ZAPP-1351
@brdandu brdandu force-pushed the bug/fixCustomXml/ZAPP-1351 branch from 02b5d86 to b4ae37d Compare April 8, 2024 17:05
@brdandu
Copy link
Collaborator Author

brdandu commented Apr 8, 2024

See #1299 PR instead since that has the fix on top of the multi protocol revert

@brdandu brdandu closed this Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants