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

2014-06-10 Thread Knut Staring
Great, thanks. Sorry for the newbie question, but could you please also tell me how to deal with this? I am trying something like this, but not sure how to access the ID that comes back: var url = dhis_api_base +'organisationUnits.json?userDataViewFallback=true'; console.log(url); $.getJSON(

[Dhis2-devs] [Branch ~dhis2-documenters/dhis2/dhis2-docbook-docs] Rev 1101: Minor fix

2014-06-10 Thread noreply
revno: 1101 committer: Morten Olav Hansen branch nick: dhis2-docbook-docs timestamp: Wed 2014-06-11 08:44:51 +0200 message: Minor fix modified: src/docbkx/en/dhis2_user_man_web_api.xml -- lp:~dhis2-documenters/dhis2/dhis2-docbook-d

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

2014-06-10 Thread Jan Henrik Øverland
If you want to get the data view root(s) for the logged in user instead of hard coding level:eq:1 you can use http://apps.dhis2.org/demo/api/organisationUnits.json?userDataViewFallback=true which falls back to level 1 if no data view orgunits are specified. On Wed, Jun 11, 2014 at 8:25 AM, Jan

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

2014-06-10 Thread Knut Staring
Right And therefore it seems not to be possible to do this: parent:null:false Just gives the same as parent:null On Wed, Jun 11, 2014 at 8:25 AM, Jan Henrik Øverland < janhenrik.overl...@gmail.com> wrote: > It points to the "parent" field in the object, not to the db directly. > > filter=pa

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

2014-06-10 Thread Jan Henrik Øverland
It points to the "parent" field in the object, not to the db directly. filter=parent:null seems to be sufficient. On Wed, Jun 11, 2014 at 8:13 AM, Knut Staring wrote: > This is the other way (I had forgotten to put "true" at the end) - though > I dont understand why it is parent and not parent

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

2014-06-10 Thread Knut Staring
This is the other way (I had forgotten to put "true" at the end) - though I dont understand why it is parent and not parentid... http://apps.dhis2.org/demo/api/organisationUnits.json?filter=parent:null:true On Wed, Jun 11, 2014 at 8:08 AM, Knut Staring wrote: > Thanks to Jason, I see this is

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

2014-06-10 Thread Knut Staring
Thanks to Jason, I see this is working: http://apps.dhis2.org/demo/api/organisationUnits.json?filter=level:eq:1 http://apps.dhis2.org/dev/api/organisationUnits.json?filter=level:eq:1

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

2014-06-10 Thread Knut Staring
I am trying to use the filtering as described in the manual: http://www.dhis2.org/doc/snapshot/en/user/html/ch30s06.html My goal is to do something like this (in order to find the Root OU), but the filter seems to have no effect? http://apps.dhis2.org/demo/api/organisationUnits?filter=parentid:nul

Re: [Dhis2-devs] Can I get the User Orgunit through the Web API?

2014-06-10 Thread Knut Staring
Great, thanks. Please also see my other question about getting the Root (or Roots, of course...) On Wed, Jun 11, 2014 at 8:02 AM, Jan Henrik Øverland < janhenrik.overl...@gmail.com> wrote: > organisationUnits.json?userOnly=true > On Jun 11, 2014 7:50 AM, "Knut Staring" wrote: > >> I can access

Re: [Dhis2-devs] Can I get the User Orgunit through the Web API?

2014-06-10 Thread Jan Henrik Øverland
organisationUnits.json?userOnly=true On Jun 11, 2014 7:50 AM, "Knut Staring" wrote: > I can access usersettings here: > http://www.dhis2.org/doc/snapshot/en/user/html/ch30s28.html > > But can I also access the usermembership table? > > -- > Knut Staring > Dept. of Informatics, University of Oslo

[Dhis2-devs] Can I get the User Orgunit through the Web API?

2014-06-10 Thread Knut Staring
I can access usersettings here: http://www.dhis2.org/doc/snapshot/en/user/html/ch30s28.html But can I also access the usermembership table? -- Knut Staring Dept. of Informatics, University of Oslo +4791880522 http://dhis2.org ___ Mailing list: https://

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15614: Remove tracker-associate attributes from Add/Update program validation criteria.

2014-06-10 Thread noreply
revno: 15614 committer: Tran Chau branch nick: dhis2 timestamp: Wed 2014-06-11 12:53:54 +0800 message: Remove tracker-associate attributes from Add/Update program validation criteria. modified: dhis-2/dhis-web/dhis-web-maintenance/

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15611: ER, sorting bug fixed + EV, layout.

2014-06-10 Thread noreply
Merge authors: Jan Henrik Øverland (janhenrik-overland) revno: 15611 [merge] committer: Jan Henrik Overland branch nick: dhis2 timestamp: Tue 2014-06-10 18:32:58 +0200 message: ER, sorting bug fixed + EV, layout. modified: dhis-2/

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15612: fix for UserCredentials

2014-06-10 Thread noreply
revno: 15612 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Tue 2014-06-10 18:59:51 +0200 message: fix for UserCredentials added: dhis-2/dhis-api/src/main/java/org/hisp/dhis/schema/descriptors/UserCredentialsSchemaDescr

Re: [Dhis2-devs] Debugging some JSON in the GIS module

2014-06-10 Thread Jan Henrik Øverland
We decided back in the day that we only wanted to deal with points and multipolygons, so the GML importer accepts both polygon and MP coordinates but converts polygon coordinates to MP coordinates before inserting it in the db. The GIS app is relying on this and supports points and MP coordinates o

Re: [Dhis2-devs] Debugging some JSON in the GIS module

2014-06-10 Thread Jason Pickering
Yeah, well, I did not use the GML importer, because my geodata has non-unique names, and there is currently no way (which I know of) to get around this. So, I created SQL and imported this directly into the system. Postgresql claims the FeatureType is already "Polygon", so it seems a bit strange th

Re: [Dhis2-devs] Debugging some JSON in the GIS module

2014-06-10 Thread Jan Henrik Øverland
The GML importer inserts "Polygon" into the "featuretype" field though, so it is not obvious. Should ideally be changed. The GIS app accepts both "Polygon" and "MultiPolygon". On Tue, Jun 10, 2014 at 5:39 PM, Jason Pickering < jason.p.picker...@gmail.com> wrote: > Thanks Jan. That worked perfect

Re: [Dhis2-devs] Debugging some JSON in the GIS module

2014-06-10 Thread Jason Pickering
Thanks Jan. That worked perfectly. I should have remembered this from before, as I think you have answered the same question before. :) Regards, Jason On Tue, Jun 10, 2014 at 5:20 PM, Jan Henrik Øverland < janhenrik.overl...@gmail.com> wrote: > These are polygons. Just add another "[" and "]"

Re: [Dhis2-devs] Debugging some JSON in the GIS module

2014-06-10 Thread Jan Henrik Øverland
These are polygons. Just add another "[" and "]" to the coordinates to make them multi-polygons and it will work. On Tue, Jun 10, 2014 at 5:11 PM, Jason Pickering < jason.p.picker...@gmail.com> wrote: > We have for various reasons, needed to import coordinate data directly > into the database, b

[Dhis2-devs] Debugging some JSON in the GIS module

2014-06-10 Thread Jason Pickering
We have for various reasons, needed to import coordinate data directly into the database, but are having some issues displaying it in the GIS client. Here is the response, which is giving issues. See below. Here is the response. http://pastebin.com/03qxrTEs Any help would be appreciated. Best

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

2014-06-10 Thread Morten Olav Hansen
Hi All our endpoint have now been switched our to using the new field filtering (similar to the old inclusion/exclusion), so the data you want is probably there, but you have to tell the system you want to have it. I do see that there is a bug in the UserCredentials class, I will fix that tomorrow

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15610: Minor fix for event list in TEI Dashboard

2014-06-10 Thread noreply
revno: 15610 committer: Tran Chau branch nick: dhis2 timestamp: Tue 2014-06-10 19:21:35 +0800 message: Minor fix for event list in TEI Dashboard modified: dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascr

[Dhis2-devs] Contract changes in User Controller.

2014-06-10 Thread Mahendra Kariya
Hello Morten, We're facing some issues due to some recent changes to UserController. The serialized 'User' json has some issues. The 'usercredentials' field is now being serialized as 'org.hisp.dhis.user.UserCredentials' and also some of the properties of UserCredentials (like userAuthorityGroup

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15609: Hide Create-event-button in TEI Dashboard if no event can be created.

2014-06-10 Thread noreply
revno: 15609 committer: Tran Chau branch nick: dhis2 timestamp: Tue 2014-06-10 18:06:27 +0800 message: Hide Create-event-button in TEI Dashboard if no event can be created. modified: dhis-2/dhis-web/dhis-web-caseentry/src/main/webap

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15608: Fixed bug - The representative created doesn't display on TEI list.

2014-06-10 Thread noreply
revno: 15608 committer: Tran Chau branch nick: dhis2 timestamp: Tue 2014-06-10 16:12:55 +0800 message: Fixed bug - The representative created doesn't display on TEI list. modified: dhis-2/dhis-web/dhis-web-caseentry/src/main/java/or

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15607: Clean up

2014-06-10 Thread noreply
revno: 15607 committer: Tran Chau branch nick: dhis2 timestamp: Tue 2014-06-10 15:56:21 +0800 message: Clean up modified: dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/trackedentity/AddRepresentativ

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 15606: Fixed bug - Adding new representative function doesn't work.

2014-06-10 Thread noreply
revno: 15606 committer: Tran Chau branch nick: dhis2 timestamp: Tue 2014-06-10 15:41:19 +0800 message: Fixed bug - Adding new representative function doesn't work. modified: dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/

[Dhis2-devs] [Bug 1328173] Re: sharing for external access is not saved

2014-06-10 Thread Morten Olav Hansen
I can confirm this, but I don't think this feature was ever implemented. I 'think' it's coming, but I'm not sure if it will be 2.15, 21.16 or even 2.17. ** Changed in: dhis2 Status: New => Confirmed ** Changed in: dhis2 Assignee: (unassigned) => Lars Helge Øverland (larshelge) -- Yo