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

refactor(triggers): Normalize Orchestration #967

Merged
merged 2 commits into from
Dec 29, 2021

Conversation

AlexCuse
Copy link
Contributor

@AlexCuse AlexCuse commented Oct 12, 2021

Share functionality between custom and built-in triggers, expanding
testability of those built-in.

fixes #960

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?)
    need to look into running TAF locally have only tested with a couple services I had handy.
  • I have opened a PR for the related docs change (if not, why?)
    looking for comment before updating docs

Testing Instructions

New Dependency Instructions (If applicable)

@AlexCuse AlexCuse force-pushed the trigger-refactoring branch from fef4bc0 to 78af7e0 Compare October 12, 2021 00:06
@AlexCuse AlexCuse linked an issue Oct 12, 2021 that may be closed by this pull request
@codecov-commenter
Copy link

codecov-commenter commented Oct 12, 2021

Codecov Report

Merging #967 (4fb1cb3) into main (57f4d8b) will increase coverage by 0.78%.
The diff coverage is 85.22%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #967      +/-   ##
==========================================
+ Coverage   68.17%   68.96%   +0.78%     
==========================================
  Files          35       36       +1     
  Lines        2734     2845     +111     
==========================================
+ Hits         1864     1962      +98     
- Misses        762      775      +13     
  Partials      108      108              
Impacted Files Coverage Δ
internal/app/service.go 55.73% <0.00%> (ø)
pkg/transforms/mqttsecret.go 20.68% <0.00%> (ø)
internal/trigger/mqtt/mqtt.go 43.92% <73.91%> (ø)
pkg/secure/mqttfactory.go 59.18% <75.00%> (ø)
internal/trigger/http/rest.go 95.91% <92.30%> (+76.35%) ⬆️
internal/trigger/messagebus/messaging.go 77.57% <92.59%> (+7.09%) ⬆️
internal/app/triggerfactory.go 100.00% <100.00%> (ø)

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 57f4d8b...4fb1cb3. Read the comment docs.

@AlexCuse AlexCuse force-pushed the trigger-refactoring branch from 78af7e0 to 9ebde02 Compare October 12, 2021 00:49
@AlexCuse AlexCuse linked an issue Oct 12, 2021 that may be closed by this pull request
@AlexCuse AlexCuse force-pushed the trigger-refactoring branch 2 times, most recently from 9d857f3 to 8388dad Compare October 12, 2021 01:02
@lenny-goodell lenny-goodell self-requested a review October 14, 2021 13:31
@lenny-goodell
Copy link
Member

@AlexCuse , I like the idea of this but think it needs to wait until Kamakura. For Jakarta (LTS) we want to avoid these kind of refactoring to stable code. Also too close to code freeze to make these changes. THX!

@AlexCuse
Copy link
Contributor Author

I'll see what I can do to fix the custom trigger multi-pipeline issue without it @lenny-intel

@AlexCuse AlexCuse force-pushed the trigger-refactoring branch 2 times, most recently from 199ee09 to 1a27d5b Compare November 22, 2021 17:01
@AlexCuse AlexCuse marked this pull request as ready for review November 28, 2021 20:32
@AlexCuse AlexCuse force-pushed the trigger-refactoring branch from 1a27d5b to 4fb1cb3 Compare November 28, 2021 20:39
@AlexCuse AlexCuse force-pushed the trigger-refactoring branch from 4fb1cb3 to b66893a Compare December 8, 2021 11:43
internal/app/triggerfactory.go Outdated Show resolved Hide resolved
internal/trigger/http/rest.go Show resolved Hide resolved
internal/trigger/http/rest_test.go Outdated Show resolved Hide resolved
internal/trigger/http/rest.go Show resolved Hide resolved
Share functionality between custom and built-in triggers, expanding
testability of those built-in.

fixes edgexfoundry#960

Signed-off-by: Alex Ullrich <[email protected]>
@AlexCuse AlexCuse force-pushed the trigger-refactoring branch from b66893a to 2d6c7c3 Compare December 29, 2021 03:10
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.

Looks good, just need to remove that unused outputData from Trigger struct

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 merged commit a4177a0 into edgexfoundry:main Dec 29, 2021
FelixTing pushed a commit to FelixTing/app-functions-sdk-go that referenced this pull request Mar 3, 2022
Share functionality between custom and built-in triggers, expanding
testability of those built-in.

fixes edgexfoundry#960

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.

Trigger Refactoring Support processing response data in custom trigger multi-pipeline
3 participants