← Back to team overview

dhis2-devs team mailing list archive

Data viz app: OrgUnit tree names not appearing (children API call not passing correctly encoded parameters)

 

Hi

We updated an instance (2.24 / 23578) to the latest build (2.24 / 8282ca3) 
and noticed that the org unit tree in the data visualizer app is not 
displaying names of orgunits.



The API call to get them would be: 
GET 
/api/organisationUnits/HY7fC5c8lXF.json?fields=children[id,displayName|rename(name),children::isNotEmpty|rename(hasChildren)&paging=false

response:
{

    "children": [
        {
            "id": "tOixAuufpk1",
            "hasChildren": true,
            "name": "One"
        },
        {
            "id": "r3D8BkVf4PA",
            "hasChildren": true,
            "name": "Two"
        }
    ]

}


but it calls instead:
GET 
/api/organisationUnits/HY7fC5c8lXF.json?fields=children%5Bid,displayName%7Crename(name),children::isNotEmpty%7Crename(hasChildren)&paging=false

response:

{

    "children": [
        {
            "id": "r3D8BkVf4PA"
        },
        {
            "id": "tOixAuufpk1"
        }
    ]

}

DB is identical / tested in incognito mode, Firefox & Chrome. Do you have 
any hints on why this happens?

Thanks
Alex

--------------------------------------------------------------------------
This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. 
If you have received this email in error, please notify us immediately by 
reply e-mail and delete this message from your system.
--------------------------------------------------------------------------

Attachment: ml.png
Description: PNG image


Follow ups