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

Tree views with json drilldown produces wrong tmeasurement fields #23

Open
Piiit opened this issue Sep 17, 2021 · 0 comments
Open

Tree views with json drilldown produces wrong tmeasurement fields #23

Piiit opened this issue Sep 17, 2021 · 0 comments
Assignees
Labels
bug Something isn't working prj:mobility repr::tree

Comments

@Piiit
Copy link
Contributor

Piiit commented Sep 17, 2021

https://mobility.api.opendatahub.testingmachine.eu/v2/tree/EChargingPlug/echarging-plug-status/latest?select=pmetadata.state,sname

... produces wrong result:

    "offset": 0,
    "data": {
        "EChargingPlug": {
            "stations": {
                "00-30-D6-09-5F-8A-0": {
                    "sdatatypes": {
                        "echarging-plug-status": {
                            "tmeasurements": [
                                {}
                            ]
                        }
                    },
                    "sname": "Tamm-200770-13103",
                    "sparent": {
                        "pmetadata": {
                            "state": "TEMPORARYUNAVAILABLE"
                        }
                    }
                }
            }
        }
    }

tmeasurements should not be there, the empty object should be removed and therefore the list would be empty and also removed from results

@Piiit Piiit self-assigned this Sep 17, 2021
@Piiit Piiit added bug Something isn't working prj:mobility repr::tree labels Sep 17, 2021
Piiit pushed a commit that referenced this issue Sep 20, 2021
This one is currently ignored.
Related issue #23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working prj:mobility repr::tree
Projects
None yet
Development

No branches or pull requests

1 participant