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(meta): Delete DS API should check the associated Device existence #3054

Merged
merged 1 commit into from
Jan 20, 2021
Merged

fix(meta): Delete DS API should check the associated Device existence #3054

merged 1 commit into from
Jan 20, 2021

Conversation

weichou1229
Copy link
Member

fix 2989

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?

Delete Device Service API doesn't check the associated Device existence.

Issue Number: #2989

What is the new behavior?

Delete Device Service API should check the associated Device existence.
If there is any associated Device exists, the Device Service deletion should return error.

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

Delete Device Service API should check the associated Device existence.
If there is any associated Device exists, the Device Service deletion should return error.

fix 2989

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

sonarcloud bot commented Jan 20, 2021

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

@codecov-io
Copy link

Codecov Report

Merging #3054 (f85f266) into master (c4887d0) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3054   +/-   ##
=======================================
  Coverage   40.28%   40.28%           
=======================================
  Files         158      158           
  Lines       13736    13736           
=======================================
  Hits         5533     5533           
  Misses       7882     7882           
  Partials      321      321           

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 c4887d0...f85f266. 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

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.

4 participants