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(scheduler): Implement POST /intervalaction V2 API #3190

Merged
merged 3 commits into from
Mar 10, 2021
Merged

feat(scheduler): Implement POST /intervalaction V2 API #3190

merged 3 commits into from
Mar 10, 2021

Conversation

weichou1229
Copy link
Member

Close #3187

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)

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/master/.github/Contributing.md.

What is the current behavior?

Issue Number: #3187

What is the new behavior?

Implement the V2 API according to the swagger doc https://app.swaggerhub.com/apis-docs/EdgeXFoundry1/support-scheduler/2.x#/default/post_intervalaction

Does this PR introduce a breaking change?

  • Yes
  • No

New Imports

  • Yes
  • No

Specific Instructions

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

Other information

@weichou1229
Copy link
Member Author

Hold this PR according to the discussion of the PR edgexfoundry/go-mod-core-contracts#518 (comment)

@weichou1229 weichou1229 marked this pull request as ready for review March 8, 2021 13:36
@weichou1229
Copy link
Member Author

This PR should hold until edgexfoundry/go-mod-core-contracts#536 merged.

Close #3187

Signed-off-by: weichou <weichou1229@gmail.com>
- Upgrade core-contract lib to latest version
- Add the description to clarify that id or name is an either requirement, not both

Close #3187

Signed-off-by: weichou <weichou1229@gmail.com>
@sonarcloud
Copy link

sonarcloud bot commented Mar 10, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
5.9% 5.9% Duplication

@codecov-io
Copy link

Codecov Report

Merging #3190 (452e8e5) into master (e1c877c) will increase coverage by 0.06%.
The diff coverage is 55.55%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3190      +/-   ##
==========================================
+ Coverage   41.81%   41.87%   +0.06%     
==========================================
  Files         177      179       +2     
  Lines       15180    15252      +72     
==========================================
+ Hits         6347     6387      +40     
- Misses       8460     8492      +32     
  Partials      373      373              
Impacted Files Coverage Δ
internal/pkg/v2/infrastructure/redis/client.go 0.00% <0.00%> (ø)
...rnal/pkg/v2/infrastructure/redis/intervalaction.go 0.00% <0.00%> (ø)
...ort/scheduler/v2/controller/http/intervalaction.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 e1c877c...452e8e5. 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 merged commit fb188d2 into edgexfoundry:master Mar 10, 2021
@weichou1229 weichou1229 deleted the issue-3187 branch July 15, 2021 06:27
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.

[V2 scheduler] Implement POST /intervalaction V2 API
3 participants