Hi Jan,
Thank you!
Alex
From: Jan Henrik Øverland <[email protected]>
To: Blake Hansen <[email protected]>
Cc: Alexandre Vanobberghen <[email protected]>,
dhis2-devs <[email protected]>, Lars Helge Øverland
<[email protected]>, Morten Olav Hansen <[email protected]>
Date: 30.01.2017 10:39
Subject: Re: [Dhis2-devs] Data viz app: OrgUnit tree names not
appearing (children API call not passing correctly encoded parameters)
Hi Alexandre, Blake,
Turned out the request url was encoded twice before it was sent to the
server. Should be fixed now in the affected version.
Jan
On 27 January 2017 at 14:36, Blake Hansen <[email protected]> wrote:
Dear Alex,
I have also seen and reported this and believe a fix is being worked on
currently.
All best,
Blake
--
Blake Hansen
Projects Implementation Manager, BAO Systems
+1 202-536-1541 | [email protected] | http://www.baosystems.com |
Skype: blake.a.hansen | 2900 K Street, Suite 404, Washington D.C. 20007
On 27 Jan 2017, at 13:34, [email protected] wrote:
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.
--------------------------------------------------------------------------
<ml.png>_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to : [email protected]
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp
_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to : [email protected]
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp
--
Jan Henrik Øverland
Software developer, DHIS 2
University of Oslo
http://www.dhis2.org
--------------------------------------------------------------------------
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.
--------------------------------------------------------------------------_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to : [email protected]
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp