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

All properties of device resource are listed when get device profile by API, even the upload file didn't contain the property #4321

Closed
cherrycl opened this issue Feb 6, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@cherrycl
Copy link
Contributor

cherrycl commented Feb 6, 2023

🐞 Bug Report

Affected Services [REQUIRED]

The issue is located in: Metadata

Is this a regression?

No, this behavior also existed on Levski.

Description and Minimal Reproduction [REQUIRED]

  1. Deploy EdgeX with compose file.

  2. Create a new profile with attached file.
    Test-Profile-3.yaml.zip

  3. Query the profile by API http://localhost:59882/api/v2/deviceprofile/name/Test-Profile-3

🔥 Exception or Error

deviceResources displayed like as below.


{
                "description": "Generate device FLOAT32 value",
                "name": "DeviceValue_FLOAT32_R",
                "isHidden": true,
                "tag": "humidity",
                "properties": {
                    "valueType": "Float32",
                    "readWrite": "R",
                    "units": "",
                    "minimum": "",
                    "maximum": "",
                    "defaultValue": "",
                    "mask": "",
                    "shift": "",
                    "scale": "",
                    "offset": "",
                    "base": "",
                    "assertion": "",
                    "mediaType": ""
                },

Expected behavior:

{
                "description": "Generate device FLOAT32 value",
                "name": "DeviceValue_FLOAT32_R",
                "isHidden": true,
                "tag": "humidity",
                "properties": {
                    "valueType": "Float32",
                    "readWrite": "R",
}

🌍 Your Environment

Deployment Environment: x86 / Ubuntu

EdgeX Version [REQUIRED]: main

Anything else relevant?

@cherrycl cherrycl added the bug Something isn't working label Feb 6, 2023
@github-project-automation github-project-automation bot moved this to New Issues in Technical WG Feb 6, 2023
@cloudxxx8
Copy link
Member

we should re-visit this issue after edgexfoundry/go-mod-core-contracts#770 is resolved

@cloudxxx8
Copy link
Member

@cherrycl please help verify this issue again

@cloudxxx8 cloudxxx8 moved this from New Issues to QA/Code Review in Technical WG Apr 19, 2023
@cherrycl
Copy link
Contributor Author

This issue was fixed.

@github-project-automation github-project-automation bot moved this from QA/Code Review to Minnesota Done in Technical WG Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

2 participants