-
Notifications
You must be signed in to change notification settings - Fork 484
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(command): command request from external MQTT to internal MessageBus #4153
Conversation
core-command subscribes to 3rd-party command requests and publishes to the appropriate device service via messaging Signed-off-by: Chris Hung <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #4153 +/- ##
==========================================
+ Coverage 43.85% 43.90% +0.04%
==========================================
Files 123 123
Lines 10899 10954 +55
==========================================
+ Hits 4780 4809 +29
- Misses 5710 5730 +20
- Partials 409 415 +6
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
internal/core/command/controller/messaging/external/external.go
Outdated
Show resolved
Hide resolved
internal/core/command/controller/messaging/external/external.go
Outdated
Show resolved
Hide resolved
internal/core/command/controller/messaging/external/external.go
Outdated
Show resolved
Hide resolved
internal/core/command/controller/messaging/external/external_test.go
Outdated
Show resolved
Hide resolved
internal/core/command/controller/messaging/external/external_test.go
Outdated
Show resolved
Hide resolved
Signed-off-by: Chris Hung <[email protected]>
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.
Look good, once we decide how to handle the errorResponse when we don't have the data to send it properly.
1. failed to JSON decoding request MessageEnvelope 2. invalid request topic scheme 3. invalid request command method Signed-off-by: Chris Hung <[email protected]>
internal/core/command/controller/messaging/external/external.go
Outdated
Show resolved
Hide resolved
LGTM, once on minor change above is completed. |
Kudos, SonarCloud Quality Gate passed! |
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
core-command subscribes to 3rd-party command requests and publishes to the appropriate device service via messaging
Signed-off-by: Chris Hung [email protected]
If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/edgex-go/blob/main/.github/Contributing.md
PR Checklist
Please check if your PR fulfills the following requirements:
BREAKING CHANGE:
describing the break)Testing Instructions
MESSAGEQUEUE_REQUIRED=true
environment variablePSUBSCRIBE edgex.command.request.*
inredis
container to subscribe to the forwarded requestedgex/command/request/<device>/<command>/<method> topic. For example send following message to
edgex/command/request/Random-Boolean-Device/Bool/get`:redis
container:New Dependency Instructions (If applicable)