Skip to content

Conversation

weichou1229
Copy link
Member

Close #640

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/go-mod-core-contracts/blob/master/.github/Contributing.md.

What is the current behavior?

The validation would be failed if the Id field is empty string in the update DTO.

Issue Number: #640

What is the new behavior?

The validation should pass if the Name is provided and the Id field is empty string in the update DTO.

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

The validation should pass if the Name is provided and the Id field is empty string in the update DTO.

Close edgexfoundry#640

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

codecov-commenter commented Jul 17, 2021

Codecov Report

Merging #648 (1a2b35e) into main (cd1e6cd) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #648   +/-   ##
=======================================
  Coverage   62.54%   62.54%           
=======================================
  Files          75       75           
  Lines        2753     2753           
=======================================
  Hits         1722     1722           
  Misses        866      866           
  Partials      165      165           

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 cd1e6cd...1a2b35e. 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

@cloudxxx8 cloudxxx8 merged commit 1a8dc7a into edgexfoundry:main Aug 3, 2021
@weichou1229 weichou1229 deleted the issue-640 branch August 3, 2021 11:09
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.

The Id field should accept the empty string in update DTO if the name is provided
3 participants