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

feat(sdk): Use ResponseContentType in MessageBus #644

Merged

Conversation

AlexCuse
Copy link
Contributor

Use edgexcontext.ResponseContentType in messagebus trigger output if
set. If not set infer JSON / CBOR as in MQTT trigger.

Signed-off-by: Alex Ullrich alexullrich@technotects.com

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

Issue Number:
#540

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Are there any new imports or modules? If so, what are they used for and why?

Are there any specific instructions or things that should be known prior to reviewing?

Other information

Use edgexcontext.ResponseContentType in messagebus trigger output if
set.  If not set infer JSON / CBOR as in MQTT trigger.

Signed-off-by: Alex Ullrich <alexullrich@technotects.com>
@AlexCuse AlexCuse linked an issue Jan 16, 2021 that may be closed by this pull request
@codecov-io
Copy link

Codecov Report

Merging #644 (4752ac0) into master (29611b3) will increase coverage by 0.14%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #644      +/-   ##
==========================================
+ Coverage   60.83%   60.98%   +0.14%     
==========================================
  Files          31       31              
  Lines        1823     1830       +7     
==========================================
+ Hits         1109     1116       +7     
  Misses        640      640              
  Partials       74       74              
Impacted Files Coverage Δ
internal/trigger/messagebus/messaging.go 72.82% <100.00%> (+2.23%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 29611b3...4752ac0. Read the comment docs.

Copy link
Member

@lenny-goodell lenny-goodell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lenny-goodell
Copy link
Member

recheck

@lenny-goodell lenny-goodell merged commit 8142930 into edgexfoundry:master Jan 22, 2021
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.

bug(sdk): context.OutputData assumed to be JSON
3 participants