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: separate count and query functions in DB interface #4977

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

jinlinGuan
Copy link
Contributor

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/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?)
  • I have opened a PR for the related docs change (if not, why?)

Testing Instructions

New Dependency Instructions (If applicable)

Copy link

@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 12.60504% with 104 lines in your changes missing coverage. Please review.

Project coverage is 30.74%. Comparing base (6ace714) to head (803138e).

Files with missing lines Patch % Lines
internal/pkg/infrastructure/redis/client.go 0.00% 23 Missing ⚠️
...e/data/infrastructure/interfaces/mocks/DBClient.go 24.00% 12 Missing and 7 partials ⚠️
...tadata/infrastructure/interfaces/mocks/DBClient.go 36.00% 6 Missing and 10 partials ⚠️
internal/pkg/infrastructure/postgres/reading.go 0.00% 9 Missing ⚠️
...nternal/pkg/infrastructure/redis/device_profile.go 0.00% 8 Missing ⚠️
...nternal/core/metadata/application/deviceprofile.go 0.00% 7 Missing ⚠️
internal/core/data/application/reading.go 0.00% 6 Missing ⚠️
...rnal/pkg/infrastructure/postgres/device_profile.go 0.00% 6 Missing ⚠️
internal/pkg/infrastructure/redis/queries.go 0.00% 6 Missing ⚠️
internal/pkg/infrastructure/redis/reading.go 0.00% 4 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4977      +/-   ##
==========================================
- Coverage   30.78%   30.74%   -0.04%     
==========================================
  Files         266      266              
  Lines       19658    19680      +22     
==========================================
- Hits         6052     6051       -1     
- Misses      12276    12295      +19     
- Partials     1330     1334       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

@cloudxxx8 cloudxxx8 merged commit b42af75 into edgexfoundry:main Oct 22, 2024
6 checks passed
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.

3 participants