close
Skip to content

Support multiple device type with primary type#1034

Draft
aspecter wants to merge 44 commits intoproject-chip:masterfrom
aspecter:multiple-device-type
Draft

Support multiple device type with primary type#1034
aspecter wants to merge 44 commits intoproject-chip:masterfrom
aspecter:multiple-device-type

Conversation

@aspecter
Copy link
Copy Markdown
Collaborator

No description provided.

@aspecter aspecter requested a review from brdandu May 19, 2023 12:24
@paulr34
Copy link
Copy Markdown
Collaborator

paulr34 commented May 25, 2023

@brdandu @tecimovic @aspecter what about Zigbee?

@paulr34
Copy link
Copy Markdown
Collaborator

paulr34 commented May 26, 2023

Primary device types are defined, right? How would the GUI handle this? How would a user know which device types to include in the subset of the superset? They would look at the spec?

Is the plan to allow any device type combo and just let the user mess up?

aspecter and others added 27 commits June 6, 2023 14:51
…nge with the introduction of Endpoint_type_device table

Github: ZAP#682
… update the multiple zcl device types correctly

Github: ZAP#862
Github: ZAP#862
…ype profile id per endpoint for backwards compatibility

Github: ZAP#862
…per endpoint are updated correctly

Github: ZAP#862
Github: ZAP#862
…is edited and a new zcl device type is added to the endpoint

Github: ZAP#862
…devices do not show up in the device UI. Updating deviceIdentifier with this.zclDeviceTypes[deviceTypeRefs[i]].code fixed it

Github: ZAP#862
…nge with the introduction of Endpoint_type_device table

Github: ZAP#682
… update the multiple zcl device types correctly

Github: ZAP#862
Github: ZAP#862
@aspecter aspecter force-pushed the multiple-device-type branch from 83971b5 to 95f06e0 Compare June 12, 2023 14:35
aspecter and others added 12 commits June 12, 2023 16:53
…erEndpoint/ZAP#862' into multiple-device-type
…device junction table instead of keeping it in endpoint table such that multiple zcl device types can be added per endpoint. Schema change lead to the rest of the changes in queries for endpoint_type, endpoint_type_device and endpoint tables along with UI changes to vue files, actions and mutations.

Github: ZAP#862
…erEndpoint/ZAP#862' into multiple-device-type
…instead of endpoint just like device type ref

- Updating db-mapping to have device version and identifier in endpoint_type
- Fixing query-config#updateEndpointType to add the entries properly to endpoint_type and endpoint_type_device tables
- Use endpoint_type_device table in a bunch of queries instead of endpoint_type to get references to device version and identifier
- Fix import isc with the new schema
- Fix edit and update endpoint by fixing httpPatchEndpointType with respect to device version and identifier
- Fix Create endpoint UI and endpoint card such that device identifier and device version can be updated properly through the UI
- Fixing actions and mutations for device version and identifier for an endpoint type such that UI and backend are in sync
- Updating state.js such that device version and identifier are in endpoint type instead of endpoint now
- Minor cleanup
- Github: ZAP#862
…nd device version/identifier

Github: ZAP#862
…g of zap files continues to give the right results when multiple zcl device types are chosen

Github: ZAP#862
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jul 3, 2023

Codecov Report

❌ Patch coverage is 66.66667% with 65 lines in your changes missing coverage. Please review.
✅ Project coverage is 65.59%. Comparing base (6f58a5f) to head (5aa29ec).
⚠️ Report is 364 commits behind head on master.

Files with missing lines Patch % Lines
src-electron/db/query-config.js 66.12% 21 Missing ⚠️
src/components/ZclEndpointCard.vue 0.00% 12 Missing ⚠️
src/store/zap/actions.js 0.00% 7 Missing ⚠️
src-electron/rest/endpoint.js 0.00% 6 Missing ⚠️
src/components/ZclCreateModifyEndpoint.vue 72.72% 6 Missing ⚠️
src/store/zap/mutations.js 50.00% 4 Missing ⚠️
src-electron/db/query-impexp.js 92.10% 3 Missing ⚠️
src-electron/db/query-endpoint.js 50.00% 2 Missing ⚠️
src-electron/generator/helper-endpointconfig.js 33.33% 2 Missing ⚠️
src/util/common-mixin.js 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1034      +/-   ##
==========================================
+ Coverage   65.52%   65.59%   +0.06%     
==========================================
  Files         170      170              
  Lines       17632    17769     +137     
  Branches     3787     3834      +47     
==========================================
+ Hits        11554    11655     +101     
- Misses       6078     6114      +36     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

4 participants