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

Allow profileName to be empty string in Device #901

Closed
cloudxxx8 opened this issue Jun 28, 2024 · 0 comments · Fixed by #902
Closed

Allow profileName to be empty string in Device #901

cloudxxx8 opened this issue Jun 28, 2024 · 0 comments · Fixed by #902
Assignees
Labels
enhancement New feature or request

Comments

@cloudxxx8
Copy link
Member

🚀 Feature Request

Relevant Package [REQUIRED]

This feature request is for core-metadata, device-services

Description [REQUIRED]

Currently, Device and DeviceProfile have hard dependency, and the profileName field of Device is required.
However, there are some scenarios need empty profile. Currently, users have to create a fake profile to achieve that.
Deivces may be created first with empty profiles, and the profile can be scanned or generated by some tools for some protocols, such as OPC-UA and BACnet.

Describe the solution you'd like

Allow Device can be created or updated with the empty string of profileName.
If this case, we need to modify Device Services to do nothing if there is any requests sent to the Device with emtpy profiles.

@cloudxxx8 cloudxxx8 added the enhancement New feature or request label Jun 28, 2024
jinlinGuan added a commit to jinlinGuan/go-mod-core-contracts that referenced this issue Jul 1, 2024
closed edgexfoundry#901

Signed-off-by: Ginny Guan <ginny@iotechsys.com>
jinlinGuan added a commit to jinlinGuan/go-mod-core-contracts that referenced this issue Jul 1, 2024
BREAKING CHANGE: Allow empty profileName in Device, and set AdminState as Locked and OperatingState as Down by default

closed edgexfoundry#901

Signed-off-by: Ginny Guan <ginny@iotechsys.com>
jinlinGuan added a commit to jinlinGuan/device-sdk-go that referenced this issue Jul 1, 2024
refer to edgexfoundry/go-mod-core-contracts#901

Signed-off-by: Ginny Guan <ginny@iotechsys.com>
jinlinGuan added a commit to jinlinGuan/device-sdk-go that referenced this issue Jul 2, 2024
refer to edgexfoundry/go-mod-core-contracts#901

Signed-off-by: Ginny Guan <ginny@iotechsys.com>
jinlinGuan added a commit to jinlinGuan/edgex-go that referenced this issue Jul 2, 2024
refer to edgexfoundry/go-mod-core-contracts#901

Signed-off-by: Ginny Guan <ginny@iotechsys.com>
jinlinGuan added a commit to jinlinGuan/edgex-go that referenced this issue Jul 2, 2024
refer to edgexfoundry/go-mod-core-contracts#901

Signed-off-by: Ginny Guan <ginny@iotechsys.com>
jinlinGuan added a commit to jinlinGuan/edgex-go that referenced this issue Jul 2, 2024
refer to edgexfoundry/go-mod-core-contracts#901

Signed-off-by: Ginny Guan <ginny@iotechsys.com>
jinlinGuan added a commit to jinlinGuan/device-virtual-go that referenced this issue Jul 2, 2024
refer to edgexfoundry/go-mod-core-contracts#901

Signed-off-by: Ginny Guan <ginny@iotechsys.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Odessa Done
Development

Successfully merging a pull request may close this issue.

2 participants