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: Implement V2 API to query readings by name and time range #3577

Merged
merged 2 commits into from
Jul 12, 2021
Merged

feat: Implement V2 API to query readings by name and time range #3577

merged 2 commits into from
Jul 12, 2021

Conversation

weichou1229
Copy link
Member

Close: #3519

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: #3519

What is the new behavior?

Implement V2 API to query readings by resourceName and specified time range

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

Opened PR to add API route constant edgexfoundry/go-mod-core-contracts#635

@cloudxxx8 cloudxxx8 added the hold Intended for PRs we want to flag for ongoing review label Jun 17, 2021
@cloudxxx8
Copy link
Member

this is for v2.0.1, so hold this PR until v2.0.0 released

@cloudxxx8 cloudxxx8 removed the hold Intended for PRs we want to flag for ongoing review label Jul 11, 2021
@cloudxxx8
Copy link
Member

@weichou1229 please rebase this PR and use the new contract version

Implement V2 API to query readings by resourceName and specified time range

Close: #3519
Signed-off-by: weichou <[email protected]>
@weichou1229 weichou1229 dismissed a stale review via 63bdb5d July 12, 2021 09:05
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

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

No Coverage information No Coverage information
0.0% 0.0% Duplication

@weichou1229
Copy link
Member Author

Rebased and upgraded the contract version to v2.0.1-dev.1

@codecov-commenter
Copy link

Codecov Report

Merging #3577 (63bdb5d) into main (54f03fb) will decrease coverage by 0.02%.
The diff coverage is 46.15%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3577      +/-   ##
==========================================
- Coverage   47.29%   47.27%   -0.03%     
==========================================
  Files         111      111              
  Lines        9013     9048      +35     
==========================================
+ Hits         4263     4277      +14     
- Misses       4380     4401      +21     
  Partials      370      370              
Impacted Files Coverage Δ
internal/pkg/infrastructure/redis/client.go 0.00% <0.00%> (ø)
internal/pkg/infrastructure/redis/reading.go 10.48% <0.00%> (-0.39%) ⬇️
internal/core/data/application/reading.go 67.27% <11.11%> (-12.73%) ⬇️
internal/core/data/controller/http/reading.go 83.01% <100.00%> (+3.24%) ⬆️

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 54f03fb...63bdb5d. Read the comment docs.

Copy link
Member

@cloudxxx8 cloudxxx8 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 8a6c101 into edgexfoundry:main Jul 12, 2021
@weichou1229 weichou1229 deleted the issue-3519-2 branch July 13, 2021 01:22
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.

Create a new Reading query API - get readings by start/end timestamp and reading name
4 participants