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

fix(triggers): Return Bad Request Errors Where Appropriate #1022

Merged
merged 2 commits into from
Jan 20, 2022

Conversation

AlexCuse
Copy link
Contributor

@AlexCuse AlexCuse commented Jan 19, 2022

Requires the trigger to have insight into whether TargetType is byte
array or not - exposed this on ServiceBinding as RawInput

Fixes #1019

Signed-off-by: Alex Ullrich [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/app-functions-sdk-go/blob/main/.github/CONTRIBUTING.md

PR Checklist

Please check if your PR fulfills the following requirements:

  • I am not introducing a breaking change (if you are, flag in conventional commit message with BREAKING CHANGE: describing the break)
  • I am not introducing a new dependency (add notes below if you are)
  • I have added unit tests for the new feature or bug fix (if not, why?)
  • I have fully tested (add details below) this the new feature or bug fix (if not, why?)
    unit tests sufficient
  • I have opened a PR for the related docs change (if not, why?)
    no docs change

Testing Instructions

New Dependency Instructions (If applicable)

@lenny-goodell
Copy link
Member

@AlexCuse , please complete the PR template. i.e. how'd to test it, n/a for docs.

@AlexCuse AlexCuse force-pushed the fix/http-bad-request branch 2 times, most recently from 8cd82f5 to 688f51a Compare January 19, 2022 20:23
@AlexCuse
Copy link
Contributor Author

This should be good to go @lenny-intel - I think I marked conversations resolved if you want to re-review

@AlexCuse AlexCuse force-pushed the fix/http-bad-request branch from 181eaa4 to d5dcc27 Compare January 19, 2022 22:44
Requires the trigger to have insight into whether TargetType is byte
array or not - exposed this on ServiceBinding as RawInput

Fixes edgexfoundry#1019

Signed-off-by: Alex Ullrich <[email protected]>
@AlexCuse AlexCuse force-pushed the fix/http-bad-request branch from d5dcc27 to f5c655a Compare January 19, 2022 22:45
@codecov-commenter
Copy link

Codecov Report

Merging #1022 (181eaa4) into main (a651657) will increase coverage by 0.01%.
The diff coverage is 100.00%.

❗ Current head 181eaa4 differs from pull request most recent head f5c655a. Consider uploading reports for the commit f5c655a to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1022      +/-   ##
==========================================
+ Coverage   68.90%   68.91%   +0.01%     
==========================================
  Files          36       36              
  Lines        2849     2850       +1     
==========================================
+ Hits         1963     1964       +1     
  Misses        777      777              
  Partials      109      109              
Impacted Files Coverage Δ
internal/trigger/http/rest.go 96.00% <100.00%> (+0.08%) ⬆️

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 a651657...f5c655a. 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 lenny-goodell self-requested a review January 20, 2022 00:11
@lenny-goodell lenny-goodell merged commit 354085e into edgexfoundry:main Jan 20, 2022
FelixTing pushed a commit to FelixTing/app-functions-sdk-go that referenced this pull request Mar 3, 2022
…dry#1022)

Requires the trigger to have insight into whether TargetType is byte
array or not - exposed this on ServiceBinding as RawInput

Fixes edgexfoundry#1019

Signed-off-by: Alex Ullrich <[email protected]>

Co-authored-by: Lenny Goodell <[email protected]>
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.

HTTP Trigger with invalid event returns 500
3 participants