edgexfoundry/go-mod-core-contracts

AdminState naming in ProvisionWatcher

Closed this issue ยท 2 comments

๐Ÿš€ Feature Request

Relevant Package [REQUIRED]

This feature request is for core-metadata

Description [REQUIRED]

In ProvisionWatcher, there is an adminState field, but it's not the adminState of ProvisionWatcher.
The adminState here will be assigned to the discovered Devices adminState. The naming is easily cause confusion.

Describe the solution you'd like

I suggest to add another field deviceAdminState to serve the same purpose, and the original adminState should belong to the ProvisionWatcher. Device SDK should also be modified to skip the ProvisionWatcher which adminState is LOCKED

@iain-anderson do you agree with this proposed change?

Suggest creating a new structure to hold the fields which are to be assigned on the new device - profileName, adminState, autoEvents, serviceName. Then the PW would have a member deviceFields or whatever