Re: [Dhis2-devs] Metadata filtering in API no longer working?

2014-06-11 Thread Morten Olav Hansen
On Wed, Jun 11, 2014 at 8:50 AM, Knut Staring wrote: > $.getJSON( url, function( json ) { > console.dir(json); > }); > $.ajax({ url: URL, dataType: 'json' }).done(function(data) { $.each(data.organisationUnits, function(idx) { console.log("root" + idx + ": " + this.id); }) }); S

Re: [Dhis2-devs] Metadata filtering in API no longer working?

2014-06-11 Thread Knut Staring
Thanks! I now did this, which also works: var url = dhis_api_base +'organisationUnits.json?userDataViewFallback=true'; $.getJSON( url, function( json ) { console.dir(json.organisationUnits[0].name + ' has UID ' + json.organisationUnits[0].id); }); On Wed, Jun 11, 2014 at 9:03 AM, Morten

Re: [Dhis2-devs] Metadata filtering in API no longer working?

2014-06-11 Thread Farai Mutero
Thanks Knut for raising this question. Now I no longer have to hard code the root OU UID so as to render the full OU hierarchy in my apps. On Wed, Jun 11, 2014 at 9:07 AM, Knut Staring wrote: > Thanks! > > I now did this, which also works: > > var url = dhis_api_base > +'organisationUnits.jso

Re: [Dhis2-devs] Metadata filtering in API no longer working?

2014-06-11 Thread Knut Staring
Yes, I think we should try to add these kind of helpful tips to the manual. The Web API is quite extensively covered, but there is still some leap to get started with apps for those of us who are not experienced API + JS developers... On Wed, Jun 11, 2014 at 9:09 AM, Farai Mutero wrote: > Thank

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15615: various bugfixes to fields filter

2014-06-11 Thread noreply
revno: 15615 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Wed 2014-06-11 09:43:00 +0200 message: various bugfixes to fields filter modified: dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/schema/Ja

Re: [Dhis2-devs] Contract changes in User Controller.

2014-06-11 Thread Morten Olav Hansen
Hi This should now be working in rev 15615. /api/users/OYLGMiazHtW.json?fields=:all,userCredentials[:all] Please try it out and report any issues back -- Morten On Tue, Jun 10, 2014 at 1:33 PM, Morten Olav Hansen wrote: > Hi > > All our endpoint have now been switched our to using the new fi

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15616: minor fix, collapse exception block

2014-06-11 Thread noreply
revno: 15616 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Wed 2014-06-11 10:13:22 +0200 message: minor fix, collapse exception block modified: dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller

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

2014-06-11 Thread noreply
revno: 15617 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Wed 2014-06-11 11:26:41 +0200 message: minor indent fix modified: dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/AnalyticsControlle

Re: [Dhis2-devs] Contract changes in User Controller.

2014-06-11 Thread Aravind Muralikrishnan
Hello Morten, Thank you for the quick fix! We were trying the new api and it works. We also looked at the code a little bit, and we saw that if we don't give any query params, we are defaulting it to ":all". However this retrieves fields only at the first level and does not retrieve fields for th

Re: [Dhis2-devs] Contract changes in User Controller.

2014-06-11 Thread Morten Olav Hansen
Yes, This is by design, :all merely means "give me all property on current level". It will by default render idObjects with just idObject properties, and Collections of idObject as a collection of idObject properties. I know this breaks things, but we were really not happy with the current use of

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15618: bugfixes for preset expansion in field filtering

2014-06-11 Thread noreply
revno: 15618 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Wed 2014-06-11 11:59:34 +0200 message: bugfixes for preset expansion in field filtering modified: dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp

Re: [Dhis2-devs] Contract changes in User Controller.

2014-06-11 Thread Kiran Prakash
Is it possible to keep backward compatibility intact while making API changes? We're already seeing lot of issues on our side, and I'm sure others who're using the API will also face these problems. One more place where the API change is breaking our code is this, while querying the org hierarchy

Re: [Dhis2-devs] Contract changes in User Controller.

2014-06-11 Thread Morten Olav Hansen
On Wed, Jun 11, 2014 at 12:03 PM, Kiran Prakash wrote: > Is it possible to keep backward compatibility intact while making API > changes? > Ideally yes, but these changes did require breaking the API in a few places. Going forward there should be no major changes to the external API (only additi

Re: [Dhis2-devs] Contract changes in User Controller.

2014-06-11 Thread Morten Olav Hansen
includeChildren/includeDescendants should now be available in rev 15619. -- Morten On Wed, Jun 11, 2014 at 12:15 PM, Morten Olav Hansen wrote: > On Wed, Jun 11, 2014 at 12:03 PM, Kiran Prakash > wrote: > >> Is it possible to keep backward compatibility intact while making API >> changes? >> >

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15619: support includeChildren/includeDescendants in /api/organisationUnits/uid API

2014-06-11 Thread noreply
revno: 15619 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Wed 2014-06-11 13:03:34 +0200 message: support includeChildren/includeDescendants in /api/organisationUnits/uid API modified: dhis-2/dhis-web/dhis-web-api/src/

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15620: minor fixes to orgUnit controller

2014-06-11 Thread noreply
revno: 15620 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Wed 2014-06-11 13:13:54 +0200 message: minor fixes to orgUnit controller modified: dhis-2/dhis-api/src/main/java/org/hisp/dhis/organisationunit/OrganisationUni

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15621: allow filter on /api/type/uid endpoint, only really useful in cases where the endpoint returns mo...

2014-06-11 Thread noreply
revno: 15621 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Wed 2014-06-11 13:18:03 +0200 message: allow filter on /api/type/uid endpoint, only really useful in cases where the endpoint returns more than one result, and y

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15622: minor fixes

2014-06-11 Thread noreply
revno: 15622 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Wed 2014-06-11 14:04:45 +0200 message: minor fixes modified: dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/organisationunit/Organi

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

2014-06-11 Thread noreply
revno: 15624 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Wed 2014-06-11 14:43:52 +0200 message: minor indent fix modified: dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/trackedentity/

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15623: minor fix to Relationship class

2014-06-11 Thread noreply
revno: 15623 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Wed 2014-06-11 14:43:09 +0200 message: minor fix to Relationship class modified: dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15625: bugfix for relationships when you add a new TEI

2014-06-11 Thread noreply
revno: 15625 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Wed 2014-06-11 14:57:50 +0200 message: bugfix for relationships when you add a new TEI modified: dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15626: Add a field which supports search TEI by attribute quickly on the Find/Add Instance form.

2014-06-11 Thread noreply
revno: 15626 committer: Tran Chau branch nick: dhis2 timestamp: Wed 2014-06-11 21:14:42 +0800 message: Add a field which supports search TEI by attribute quickly on the Find/Add Instance form. added: dhis-2/dhis-web/dhis-web-caseen

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15627: Fixed bug - The orgunit name in Advanced search is displayed wrong.

2014-06-11 Thread noreply
revno: 15627 committer: Tran Chau branch nick: dhis2 timestamp: Wed 2014-06-11 21:19:09 +0800 message: Fixed bug - The orgunit name in Advanced search is displayed wrong. modified: dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15628: fixes for updating coordinates

2014-06-11 Thread noreply
revno: 15628 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Wed 2014-06-11 15:32:50 +0200 message: fixes for updating coordinates modified: dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/events/

Re: [Dhis2-devs] Unapproved data showing up in Analytics Reports

2014-06-11 Thread Ismail Yusuf
Hello Mansi, If you are using and User account with all access (Super users) or account with both "Approve Data" and "Approve data at Lower level", then unapproved data will still show up in reports/analysis. The design is, if user has access to approve data (at his level, or at lower levels) the

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15629: Fixed bug - The TEI result after searching by a attribute value is dumplicated.

2014-06-11 Thread noreply
revno: 15629 committer: Tran Chau branch nick: dhis2 timestamp: Wed 2014-06-11 22:32:45 +0800 message: Fixed bug - The TEI result after searching by a attribute value is dumplicated. modified: dhis-2/dhis-services/dhis-service-trac

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15630: minor bugfix for relationship, correctly set pointer in export

2014-06-11 Thread noreply
revno: 15630 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Wed 2014-06-11 17:01:05 +0200 message: minor bugfix for relationship, correctly set pointer in export modified: dhis-2/dhis-services/dhis-service-dxf2/src/main

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15631: Minor fix.

2014-06-11 Thread noreply
revno: 15631 committer: Tran Chau branch nick: dhis2 timestamp: Wed 2014-06-11 23:36:16 +0800 message: Minor fix. modified: dhis-2/dhis-services/dhis-service-tracker/src/main/java/org/hisp/dhis/trackedentity/hibernate/HibernateTrack

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15633: removed unused exception

2014-06-11 Thread noreply
revno: 15633 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Wed 2014-06-11 21:13:57 +0200 message: removed unused exception removed: dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/exception/N

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

2014-06-11 Thread noreply
revno: 15632 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Wed 2014-06-11 21:10:58 +0200 message: minor indent fix modified: dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/dataelement/Genera

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15634: minor indent

2014-06-11 Thread noreply
revno: 15634 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Wed 2014-06-11 21:26:43 +0200 message: minor indent modified: dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/mapping/GeoFeatureCont

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15635: indent fix in EventAnalyticsController

2014-06-11 Thread noreply
revno: 15635 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Wed 2014-06-11 21:35:22 +0200 message: indent fix in EventAnalyticsController modified: dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/control

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15636: add new generic endpoint, /api/type/id/property, allows to get property directly, works as a alia...

2014-06-11 Thread noreply
revno: 15636 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Wed 2014-06-11 21:54:06 +0200 message: add new generic endpoint, /api/type/id/property, allows to get property directly, works as a alias for ?fields=property mo

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15637: remove unused services in ReportTableController

2014-06-11 Thread noreply
revno: 15637 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Wed 2014-06-11 22:00:39 +0200 message: remove unused services in ReportTableController modified: dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webap

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15638: remove unused import in SchemaController

2014-06-11 Thread noreply
revno: 15638 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Wed 2014-06-11 22:01:15 +0200 message: remove unused import in SchemaController modified: dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/contr

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15639: indent fixes

2014-06-11 Thread noreply
revno: 15639 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Wed 2014-06-11 22:02:58 +0200 message: indent fixes modified: dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/SystemSettingControlle

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15640: moved WebMetaData and WebOptions classes to webdomain package

2014-06-11 Thread noreply
revno: 15640 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Wed 2014-06-11 22:27:54 +0200 message: moved WebMetaData and WebOptions classes to webdomain package removed: dhis-2/dhis-web/dhis-web-api/src/main/java/org/hi

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15641: removed Model from getObject/getObjectList in AbstractCrudController, not in use anymore

2014-06-11 Thread noreply
revno: 15641 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Wed 2014-06-11 22:34:56 +0200 message: removed Model from getObject/getObjectList in AbstractCrudController, not in use anymore modified: dhis-2/dhis-web/dhis

[Dhis2-devs] Exporting and Importing Individual Records program Meta data

2014-06-11 Thread Prosper BT
Hi Team, I have designed a multiple stage program with registration but seems I can only export and import data elements only not attributes and the program itself. Is this right or am missing something. Regards -- Prosper Behumbiize, MPH Phone:+256 414 320076 Cell: +256 77

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15642: Minor fix

2014-06-11 Thread noreply
revno: 15642 committer: Tran Chau branch nick: dhis2 timestamp: Thu 2014-06-12 14:06:25 +0800 message: Minor fix modified: dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/trackedEntityInstance.js