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

Support multiple device type with primary type #1034

Draft
wants to merge 44 commits into
base: master
Choose a base branch
from

Conversation

aspecter
Copy link
Collaborator

No description provided.

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

paulr34 commented May 25, 2023

@brdandu @tecimovic @aspecter what about Zigbee?

@paulr34
Copy link
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 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

Codecov Report

Merging #1034 (cb88c37) into master (6f58a5f) will decrease coverage by 0.10%.
The diff coverage is 51.77%.

@@            Coverage Diff             @@
##           master    #1034      +/-   ##
==========================================
- Coverage   65.52%   65.43%   -0.10%     
==========================================
  Files         170      170              
  Lines       17632    17769     +137     
  Branches     3787     3834      +47     
==========================================
+ Hits        11554    11627      +73     
- Misses       6078     6142      +64     
Impacted Files Coverage Δ
src-electron/db/db-mapping.js 98.70% <ø> (ø)
src-electron/rest/endpoint.js 38.18% <0.00%> (-2.21%) ⬇️
src-shared/rest-api.js 100.00% <ø> (ø)
src/components/ZclEndpointCard.vue 37.00% <0.00%> (-0.79%) ⬇️
src/store/zap/actions.js 1.39% <0.00%> (-0.02%) ⬇️
src/store/zap/state.js 27.27% <ø> (ø)
src/tutorials/ZclTour.vue 0.00% <ø> (ø)
src/util/common-mixin.js 28.88% <0.00%> (-0.66%) ⬇️
src-electron/db/query-config.js 74.70% <22.58%> (-8.23%) ⬇️
src-electron/generator/helper-endpointconfig.js 92.66% <33.33%> (ø)
... and 8 more

... and 1 file with indirect coverage changes

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.

None yet

4 participants