Re: [Dhis2-devs] Bugs in DHIS new importer.

2016-07-28 Thread Sergio Valenzuela
Great! Thanks Morten. *Sergio Valenzuela* Fundación EHAS Telemedicina para países en desarrollo -* www.ehas.org * E.T.S.I. de Telecomunicación A.101-9L. Ciudad Universitaria 30, 28040 Madrid - España Tlfno. (+34) 91 488 87 41: (+34) 687 67 17 62 2016-07-28 10:44

[Dhis2-devs] Issue with custom attributes in data set api

2016-07-28 Thread Aamer Mohammed
Hi Morten, We have created an attribute called "isPrintable" with a value type - "Yes Only" and assigned it to data set and program. We have few clarifications on the below api * /api/dataSets.json?fields=id,name,attributeValues[:all,value,name,attribute[id,name,code]]* - Immediately after

Re: [Dhis2-devs] Issue with custom attributes in data set api

2016-07-28 Thread Aamer Mohammed
Also in the second test case mentioned below. - Now we marked that attribute is 'checked' in one of the data set page of maintenance app. The api is returning the attribute value as 'true' which is fine. But when the attribute is 'unchecked' in the app, the api is returning the value

Re: [Dhis2-devs] Issue with custom attributes in data set api

2016-07-28 Thread Morten Olav Hansen
Hi There is no cleanup done when you un-assign an attribute, so the values will still be there. @Mark: I guess you need to send in null, and not false for yes-only attributes, we should probably fix on the backend also -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo

Re: [Dhis2-devs] Data import through API in zip format

2016-07-28 Thread Morten Olav Hansen
Hi Did you try and simply send the data as a zipped file? I think we support both gzip and zip, you don't need to do anything else than zip it down before. I'm not 100% sure it will work, but this is how our metadata endpoints work. -- Morten Olav Hansen Senior Engineer, DHIS 2 University of

Re: [Dhis2-devs] Bugs in DHIS new importer.

2016-07-28 Thread Morten Olav Hansen
Hi Sergio I could reproduce your error, will try and have a fix ready today and backport to 2.24. -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Wed, Jul 27, 2016 at 4:30 PM, Sergio Valenzuela < sergio.valenzu...@ehas.org> wrote: > Thanks Morten. Keep

[Dhis2-devs] Data import through API in zip format

2016-07-28 Thread Victor Garcia
Hi all, searching in the documentation I couldn't find a way to import a data file in zip format through the API. I know it is possible to do it using the user interface (import/export module), but we need to use the API. Is it supported? This problem arises in contexts with a poor connection,

Re: [Dhis2-devs] Bugs in DHIS new importer.

2016-07-28 Thread Sergio Valenzuela
Ok. Thanks a lot. *Sergio Valenzuela* Fundación EHAS Telemedicina para países en desarrollo -* www.ehas.org * E.T.S.I. de Telecomunicación A.101-9L. Ciudad Universitaria 30, 28040 Madrid - España Tlfno. (+34) 91 488 87 41: (+34) 687 67 17 62 2016-07-28 16:19 GMT+02:00

[Dhis2-devs] Tracker Capture Report Issues - Reg

2016-07-28 Thread Chandrasekar Ravi
Dear Team, We are entering the data in Tracker Capture through *web based* as well as *mobile app.* Both application showing result data saved successfully, but in the report showing* "No Data Found"* and sometimes report shows the data. We don't understand this fluctuation data showing in the

Re: [Dhis2-devs] Data import through API in zip format

2016-07-28 Thread Morten Olav Hansen
New 2.21 should be ready now for testing -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Thu, Jul 28, 2016 at 3:07 PM, Victor Garcia wrote: > I tried Bob's suggestion, but no success... I will wait until next built > of 2.21 and

Re: [Dhis2-devs] Data import through API in zip format

2016-07-28 Thread Victor Garcia
I tried Bob's suggestion, but no success... I will wait until next built of 2.21 and let you know the results. Thanks you all On 28 July 2016 at 14:48, Morten Olav Hansen wrote: > Wait about 1 hour, and try again with latest 2.21 > > -- > Morten Olav Hansen > Senior Engineer,

Re: [Dhis2-devs] Data import through API in zip format

2016-07-28 Thread Bob Jolliffe
Yes you are right :-( I was thinking of apache reverse proxy with mod_deflate. Nginx won't do this out of the box, but there is a module (http://nginx.org/en/docs/http/ngx_http_gunzip_module.html) which is not built as standard which probably would. Meanwhile looks like Morten has fixed anyway.

Re: [Dhis2-devs] Bugs in DHIS new importer.

2016-07-28 Thread Morten Olav Hansen
Hm ok, seems to be a different error (ProgramIndicator this time), I will have a look tomorrow and fix it -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Thu, Jul 28, 2016 at 4:07 PM, Sergio Valenzuela < sergio.valenzu...@ehas.org> wrote: > Hello again,

Re: [Dhis2-devs] sql error in analytics table name

2016-07-28 Thread Anthony Danso
Thanks Bob. I am currently running dhis 2.22 version 22086 and upgraded the Postgres from version 9.3 to version 9.5. The analytics was successful in the previous Postgres versions 9.3 and the dhis version 2.21. Strange enough, the tracker instance is having no issue with running analytics.It

[Dhis2-devs] [Bug 1607293] [NEW] Cant update Data element attribute using PATCH Web Api command in 2.22

2016-07-28 Thread Dapo Adejumo
Public bug reported: Hi Devs, I am trying to update one Data element attribute (name) using a patch update command , example below "curl -X PATCH -d "{\"name\":\"New Data Element Name\"}" -H "Content-Type: application/json" -u xx:xx

Re: [Dhis2-devs] Data import through API in zip format

2016-07-28 Thread Halvdan Hoem Grelland
Right. I am actually not sure if this is supported on 2.21. On more recent versions we support a content-type of 'application/json+zip', which you could have tried, but I do not think this is available on 2.21 (it should work on the demo server). Do you have any insight Morten? On Thu, Jul 28,

Re: [Dhis2-devs] Data import through API in zip format

2016-07-28 Thread Victor Garcia
Hello Morten, first of all I forgot to mention that we are using version 2.21. Yes, we tried sending the zip file, but no success. The server response was: { "responseType": "ImportSummary", "status": "ERROR", "description": "The import process failed: Unrecognized token 'PK\u0003\u0004':

[Dhis2-devs] sql error in analytics table name

2016-07-28 Thread Bob Jolliffe
Hi The folk in ghana are hitting a problem running analytics where an invalid table name is being generated. Specifically the sql which fails is: create table analytics_event_temp_-1_r8cbfnorkzf ( ... instead of something like ... create table analytics_event_temp_2015_r8cbfnorkzf (

Re: [Dhis2-devs] GIS Google Maps Error

2016-07-28 Thread Bjørn Sandvik
Hi Sourabh, If you're experiencing the same issue for 2.24, is it only happening for your local installation, or do you get the same error for our demo version? https://play.dhis2.org/demo/dhis-web-mapping/ Bjørn On Thu, Jul 28, 2016 at 12:42 PM, Sourabh Bhardwaj

Re: [Dhis2-devs] Data import through API in zip format

2016-07-28 Thread Morten Olav Hansen
Wait about 1 hour, and try again with latest 2.21 -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Thu, Jul 28, 2016 at 2:33 PM, Bob Jolliffe wrote: > Hi Victor > > I had a quick look at source code and I am not sure that we do

Re: [Dhis2-devs] Data import through API in zip format

2016-07-28 Thread Morten Olav Hansen
Hm, yeah.. seems our data endpoint don't wrap it using StreamUtils.wrapAndCheckCompressionFormat(), so that means it must be manually applied.. should be an easy fix though -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Thu, Jul 28, 2016 at 12:00 PM,

Re: [Dhis2-devs] Data import through API in zip format

2016-07-28 Thread Halvdan Hoem Grelland
Quickly glancing over the source code for this stuff: it seems to discern formats using extensions. For example, one would use a POST to api/metaData.json.zip or api/metaData.xml.gz. Could you give that a try, Victor? On Thu, Jul 28, 2016 at 11:23 AM, Morten Olav Hansen wrote:

Re: [Dhis2-devs] Data import through API in zip format

2016-07-28 Thread Victor Garcia
This is the cURL command I try: curl -H "Content-Type: application/json" -u admin:district -d @datavalues.zip "https://play.dhis2.org/demo/api/dataValueSets.json.zip; -X POST The POST against DEMO server gives the same response that before. I tried with ".json", ".zip" and ".json.zip"

Re: [Dhis2-devs] Data import through API in zip format

2016-07-28 Thread Bob Jolliffe
Hi Victor I had a quick look at source code and I am not sure that we do support zip encoded payloads for datavalueset import at all :-( The way that it works auto-magically through the web ui is that we actually peek into the stream header to deduce whether the stream is zipped or gzipped.

Re: [Dhis2-devs] Bugs in DHIS new importer.

2016-07-28 Thread Morten Olav Hansen
Hi Sergio Please try again with latest 2.24 -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Thu, Jul 28, 2016 at 10:56 AM, Sergio Valenzuela < sergio.valenzu...@ehas.org> wrote: > Great! Thanks Morten. > > > *Sergio Valenzuela* > Fundación EHAS >

Re: [Dhis2-devs] Data import through API in zip format

2016-07-28 Thread Morten Olav Hansen
I don't think we support compressed streams at all, I'm looking into it now -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Thu, Jul 28, 2016 at 2:16 PM, Halvdan Hoem Grelland wrote: > Right. I am actually not sure if this is

Re: [Dhis2-devs] Data import through API in zip format

2016-07-28 Thread Victor Garcia
Thanks, Just to clarify, I have tried using extensions, but it does not seem to work for "/api/dataValueSets" endpoint. On 28 July 2016 at 12:04, Morten Olav Hansen wrote: > Hm, yeah.. seems our data endpoint don't wrap it > using StreamUtils.wrapAndCheckCompressionFormat(),

Re: [Dhis2-devs] GIS Google Maps Error

2016-07-28 Thread Sourabh Bhardwaj
Hi all, I am also getting some errors while using GIS Plugin. Following is the console and screenshot of generated map. [image: Inline image 2] [image: Inline image 1] I have test it on 2.24 as well , same error is coming there! If I setup the browser key for *Missingkeymap *using

Re: [Dhis2-devs] Data import through API in zip format

2016-07-28 Thread Halvdan Hoem Grelland
Ah, my bad. I misread 'data' as 'meta data'. What is the exact request (including headers) you are using? Do you have a reproducible cURL we could try? Also, what is the format of the zipped data file? (The error you are seeing is the importer encountering a ZIP file header byte whilst expecting

Re: [Dhis2-devs] Bugs in DHIS new importer.

2016-07-28 Thread Sergio Valenzuela
Hi, I have just tested it again with Build revision: 23527 and now it works perfectly. Thanks Morten. Regards! *Sergio Valenzuela* Fundación EHAS Telemedicina para países en desarrollo -* www.ehas.org * E.T.S.I. de Telecomunicación A.101-9L. Ciudad Universitaria 30,

Re: [Dhis2-devs] [Dhis2-users] Embedding chart in portal is blank chart

2016-07-28 Thread Knut Staring
Any errors in your Chrome web console? Knut On Fri, Jul 29, 2016 at 10:48 AM, Michael Mwebaze wrote: > Hi, > > I am trying to include a chart externally onto a web portal but with > partial success. A blank chart appears but not the bars and whovering over > the

[Dhis2-devs] Customizing legend set in visualizer

2016-07-28 Thread Bridget Magoba
Dear all, Could it be possible to customize legend sets while using Data visualizer? Thanks Magoba Bridget Database Manager MIFUMI Mobile: +256 774659892 Tel: +256 414666946/392174242 P.O Box 274, Tororo Plot 13, Martyrs' Drive, Ntinda Kampala www.mifumi.org --- This email

[Dhis2-devs] Embedding chart in portal is blank chart

2016-07-28 Thread Michael Mwebaze
Hi, I am trying to include a chart externally onto a web portal but with partial success. A blank chart appears but not the bars and whovering over the blank chart, I can see the different values. I am not have any issues with the pivot. Has anyone come across this problem before? I am using

[Dhis2-devs] Cannot edit or create new orgunits

2016-07-28 Thread Knut Staring
Whenever I try to save an orgunit in the online demo at the link below, I get this error, which I think is only supposed to have to do with six-monthly periods (and thus seems like a strange error to get when I am working with orgunit startdates): Month not valid [1,7]

Re: [Dhis2-devs] [Dhis2-users] Embedding chart in portal is blank chart

2016-07-28 Thread Michael Mwebaze
Hi Knut, No I don't have any errors in the Chrome web console. Regards, Michael On 29 July 2016 at 00:24, Knut Staring wrote: > Any errors in your Chrome web console? > > Knut > > On Fri, Jul 29, 2016 at 10:48 AM, Michael Mwebaze < > michael.mweb...@gmail.com> wrote: > >>