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

Make device client compliant with edgex-go implementation #273

Merged
merged 1 commit into from
Aug 27, 2020

Conversation

difince
Copy link
Contributor

@difince difince commented Aug 26, 2020

#126 PR Checklist
Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

Device admin and operating status update implementation have been changed
in edgex-go so that the status data is sent in the request body instead of being part of the URL
(see edgexfoundry/edgex-go#1361)
But go-mod-core-contracts wasn't updated accordingly.
So if you try to update admin/operating device state using Device client interface an error "404 page not found" is returned , because endpoint with such path does not exists

Issue Number:
#272

What is the new behavior?

This PR makes go-mod-core-contracts Device interface compliant with the
implementation within edgex-go.

Does this PR introduce a breaking change?

  • Yes
  • No

Are there any new imports or modules? If so, what are they used for and why?

Are there any specific instructions or things that should be known prior to reviewing?

Other information

Signed-off-by: Diana Atanasova dianaa@vmware.com

…s update

Device admin and operating status update implementation have been changed
in edgex-go so that the status data is sent in the request body instead of being part of the URL
(see edgexfoundry/edgex-go#1361)

But go-mod-core-contracts wasn't updated accordingly.
This PR makes go-mod-core-contracts Device interface complient with the
implementation within edgex-go.

Fix: edgexfoundry#272

Signed-off-by: Diana Atanasova <dianaa@vmware.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

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.

2 participants