[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 21162: minor fixes, update AttributeService.updateAttributeValues() to support a list of AttributeValue ...

2015-11-22 Thread noreply
revno: 21162 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Mon 2015-11-23 14:21:18 +0700 message: minor fixes, update AttributeService.updateAttributeValues() to support a list of AttributeValue directly, means it can la

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 21161: remove AttributeUtils.updateAttributeValues, now exists in AttributeService, updated attributeVal...

2015-11-22 Thread noreply
revno: 21161 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Mon 2015-11-23 13:52:49 +0700 message: remove AttributeUtils.updateAttributeValues, now exists in AttributeService, updated attributeValues collections to be cas

[Dhis2-devs] Data approval

2015-11-22 Thread Elmarie Claasen
Hi all, I am having some hassles setting up data approval on our South African instances and due to the limited setup of data approval on SL Demo cannot really test properly if this is a generic problem or datafile related so decided to describe the issue we have here first before logging a bug re

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 21160: rewrite of save/update attribute values from actions, wip

2015-11-22 Thread noreply
revno: 21160 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Mon 2015-11-23 13:05:02 +0700 message: rewrite of save/update attribute values from actions, wip modified: dhis-2/dhis-api/src/main/java/org/hisp/dhis/attribute

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 21159: helper method to get unique AV from idObject

2015-11-22 Thread noreply
revno: 21159 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Mon 2015-11-23 09:54:19 +0700 message: helper method to get unique AV from idObject modified: dhis-2/dhis-api/src/main/java/org/hisp/dhis/common/BaseIdentifiabl

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 21158: minor fix

2015-11-22 Thread noreply
revno: 21158 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Mon 2015-11-23 09:31:01 +0700 message: minor fix modified: dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/AttributeUtils.java

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 21157: minor fixes related to renaming of TEI.attributeValues => TEI.trackedEntityAttributeValues

2015-11-22 Thread noreply
revno: 21157 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Mon 2015-11-23 08:05:22 +0700 message: minor fixes related to renaming of TEI.attributeValues => TEI.trackedEntityAttributeValues modified: dhis-2/dhis-api/sr

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 21156: Note support for table data entry in TC

2015-11-22 Thread noreply
revno: 21156 committer: Markus Bekken branch nick: dhis2 timestamp: Sun 2015-11-22 22:25:25 +0100 message: Note support for table data entry in TC added: dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/views/l

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 21155: Better support for entering events in table-view mode

2015-11-22 Thread noreply
revno: 21155 committer: Markus Bekken branch nick: dhis2 timestamp: Sun 2015-11-22 21:50:10 +0100 message: Better support for entering events in table-view mode modified: dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracke

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 21154: minor fix, checking F_TRACKED_ENTITY_INSTANCE_SEARCH_IN_ALL_ORGUNITS didnt work in advanced search

2015-11-22 Thread noreply
revno: 21154 committer: Markus Bekken branch nick: dhis2 timestamp: Sun 2015-11-22 19:47:25 +0100 message: minor fix, checking F_TRACKED_ENTITY_INSTANCE_SEARCH_IN_ALL_ORGUNITS didnt work in advanced search modified: dhis-2/dhis-web

Re: [Dhis2-devs] Parsing the json output from the API

2015-11-22 Thread Abyot Gizaw
Hi, I am using ID. Tracker apps do not support across instances. Not sure if we have an app that supports across instances. Whenever an ID is changed - it is like a new meta-data and the practice so far is to clear cache and download the new meta-data. --- Thank you, Abyot. On Sun, Nov 22, 201

Re: [Dhis2-devs] Parsing the json output from the API

2015-11-22 Thread Mark Polak
Right, that makes sense. My knowledge about the whole tracker is fairly limited. I'll ask Abyot at some point how he handles that :) On Sun, Nov 22, 2015 at 1:36 PM, Morten Olav Hansen wrote: > > On Sun, Nov 22, 2015 at 7:21 PM, Mark Polak wrote: > >> The ID might not be the same across instan

Re: [Dhis2-devs] Parsing the json output from the API

2015-11-22 Thread Mark Polak
Like Morten says, lodash.groupBy is probably better, (if you using that already) The ID might not be the same across instances? So if it needs to work across instances that won't work? On Sun, Nov 22, 2015 at 1:13 PM, Morten Olav Hansen wrote: > Personally I wouldn't create the map based on na

Re: [Dhis2-devs] Parsing the json output from the API

2015-11-22 Thread Morten Olav Hansen
On Sun, Nov 22, 2015 at 7:21 PM, Mark Polak wrote: > The ID might not be the same across instances? So if it needs to work > across instances that won't work? > Sure, but you don't have any guarantee about anything like that, not name, age, etc.. nothing is created for you. You need synchronised

Re: [Dhis2-devs] Parsing the json output from the API

2015-11-22 Thread Morten Olav Hansen
Personally I wouldn't create the map based on names, since they could potentially change, better to use the ID. Simplest way of doing this I can think of is using lodash (which you probably use anyways) and do: const groupedById = _.groupBy(o.attributes, "id"); -- Morten On Sun, Nov 22, 2015 a

Re: [Dhis2-devs] Parsing the json output from the API

2015-11-22 Thread Mark Polak
Hey Knut, Araz, The order for arrays is guaranteed according to the JSON standard i believe. However for the objects property order is not. (Just like in Javascript) But we (DHIS2) don't seem to always return the array in the same order from the server side, so in that case you can't really trus

Re: [Dhis2-devs] Parsing the json output from the API

2015-11-22 Thread Araz Abishov
Hi Knut, What are you using for parsing JSON (which library)? In general you should never rely on order of items in JSON. It is better to interpret it as a "map" rather than "list". Best Regards, Araz On Sun, Nov 22, 2015 at 7:32 AM, Knut Staring wrote: > > Below is a patient tracked entity i