-
Notifications
You must be signed in to change notification settings - Fork 67
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
feat: Add new Properties field to Device DTO and Model #800
Conversation
Add an extendable field into Device DTO and Model: Properties map[string]any This is useful for some devices that requires extra information. For example, a BACnet device may have properties such as DeviceInstance, Firmware, InstanceID, and ObjectName. fixes edgexfoundry#769 Signed-off-by: Jude Hung <[email protected]>
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #800 +/- ##
==========================================
- Coverage 64.42% 64.31% -0.12%
==========================================
Files 80 80
Lines 3092 3099 +7
==========================================
+ Hits 1992 1993 +1
- Misses 911 915 +4
- Partials 189 191 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…Device dto Per edgexfoundry/go-mod-core-contracts#800, the Device DTO is added with a new field "Properties", so the swagger file needs to be updated correspondingly. Moreover, this commit also updates the swagger file to remove those fields that had been taken out of Device DTO before: - created - modified - serviceId - profileId This commit also adds back a newly created field "tags" into the Device DTO. Signed-off-by: Jude Hung <[email protected]>
…Device DTO Per edgexfoundry/go-mod-core-contracts#800, the Device DTO is added with a new field properties, so the swagger file of core-metadata needs to be updated correspondingly. This commit also updates the swagger with newly created field tags of the Device DTO. Signed-off-by: Jude Hung <[email protected]>
…Device DTO Per edgexfoundry/go-mod-core-contracts#800, the Device DTO is added with a new field properties, so the swagger file of core-metadata needs to be updated correspondingly. This commit also updates the swagger with newly created field tags of the Device DTO. Signed-off-by: Jude Hung <[email protected]>
…isionWatcher dto Per edgexfoundry/go-mod-core-contracts#803 and edgexfoundry/go-mod-core-contracts#800, new fields `properties` are added into Device dto and ProvisionWatcher dto. This PR updates edgex-docs with the description of these new fields. Signed-off-by: Jude Hung <[email protected]>
…isionWatcher dto Per edgexfoundry/go-mod-core-contracts#803 and edgexfoundry/go-mod-core-contracts#800, new fields `properties` are added into Device dto and ProvisionWatcher dto. This PR updates edgex-docs with the description of these new fields. fixes edgexfoundry#969 Signed-off-by: Jude Hung <[email protected]>
Add an extendable field into Device DTO and Model: Properties map[string]any
This is useful for some devices that requires extra information. For example, a BACnet device may have properties such as DeviceInstance, Firmware, InstanceID, and ObjectName.
fixes #769
If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/go-mod-core-contracts/blob/main/.github/Contributing.md
PR Checklist
Please check if your PR fulfills the following requirements:
BREAKING CHANGE:
describing the break)Testing Instructions
New Dependency Instructions (If applicable)