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: Check empty value when converting Model to UpdateDTO #529

Merged
merged 3 commits into from
Mar 2, 2021

Conversation

weichou1229
Copy link
Member

Fix #528

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?

Issue Number: #528

What is the new behavior?

  1. Check the empty value when convert Model to UpdateDTO

    • FromProvisionWatcherModelToUpdateDTO
    • FromDeviceModelToUpdateDTO
    • FromDeviceServiceModelToUpdateDTO
  2. API client lib handle the 404 StatusNotFound response

  3. Modify BinaryReading validate annotation

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

1. Check the empty value when convert Model to DTO
      - FromProvisionWatcherModelToUpdateDTO
      - FromDeviceModelToUpdateDTO
      - FromDeviceServiceModelToUpdateDTO

2. API client lib handle the 404 StatusNotFound response
3. Modify BinaryReading validate annotation

Fix edgexfoundry#528

Signed-off-by: weichou <weichou1229@gmail.com>
v2/clients/http/utils/common.go Outdated Show resolved Hide resolved
Fix edgexfoundry#528

Signed-off-by: weichou <weichou1229@gmail.com>
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

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
Copy link
Member

recheck

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] Check empty value when converting Model to UpdateDTO
3 participants