[Dhis2-devs] Fwd: couple questions about dataValueSets API

2016-12-06 Thread Vladimer Shioshvili
-- Forwarded message - From: Vladimer Shioshvili Date: Tue, Dec 6, 2016 at 6:04 AM Subject: couple questions about dataValueSets API To: 1) just to confirm, web api only accets uncompressed file, right? and it's the import/export app that is capable of handling zip fil

[Dhis2-devs] approval level in pivot

2016-12-20 Thread Vladimer Shioshvili
In earlier versions of DHIS2 (e.g. 2.21) approval level was a selectable option in the table options, but it does not seem to be there any more. Am I missing something? Thanks, Vlad ___ Mailing list: https://launchpad.net/~dhis2-devs Post to : dhis2-

[Dhis2-devs] getting 502 in analytics web api call in 2.24

2016-12-22 Thread Vladimer Shioshvili
After updating 2.24 from revision 02e7467 to acdc17b I started getting 502 Bad Gateway error back when sending a number of small analytics calls in sequence. It used to work in revision 02e7467. Any ideas? ___ Mailing list: https://launchpad.net/~dhis2-de

Re: [Dhis2-devs] API for the DataValueImportSummary

2017-06-08 Thread Vladimer Shioshvili
Once tasks says that import is complete, you can use: api/system/taskSummaries/DATAVALUE_IMPORT to get the summary. Best, Vlad On Thu, Jun 8, 2017 at 8:35 AM Pooben Dass wrote: > Hi Devs > > Please can you assist me is finding the api endpoint to check the import > summary once an async import

[Dhis2-devs] uploading file via API

2017-06-14 Thread Vladimer Shioshvili
Hi Everyone, I am trying to figure out if it is possible to upload a file to analytics reporting (document) via API, rather than via UI (reports app). I can query and download via api/documents ( https://docs.dhis2.org/2.27/en/developer/html/dhis2_developer_manual_full.html#webapi_viewing_analyti

[Dhis2-devs] async metadata import in 2.27

2017-08-03 Thread Vladimer Shioshvili
Hi everyone, I am trying to import xml metadata (org units) into 2.27, and async=true query parameter does not seem to make a difference - and it still goes in synchronously. It is in the documentation for 2.27 (and 2.26 and 2.25 - https://docs.dhis2.org/2.26/en/developer/html/dhis2_developer_manu

Re: [Dhis2-devs] async metadata import in 2.27

2017-08-22 Thread Vladimer Shioshvili
rns immediately with a *Location* header pointing to the location of the *importReport*. And there is no location returned with the 204 (which is not the right HTTP code anyway). I am also concerned about the time - when doing this with some PEPFAR countries, hierarchy with 14 thousand OUs took 8 hours to import

[Dhis2-devs] metadata import in 2.27 much slower than in 2.26

2017-08-24 Thread Vladimer Shioshvili
I am getting really large import time discrepancies between 2.26 and 2.27. I stand up a blank DHIS2 locally with postgres 9.5. Import one very small file (attribute definition used in org units, and one level 1 and one level 2 org units). That takes under one second in both. Then I try to import

[Dhis2-devs] metadata mergeMode=MERGE issues

2017-09-29 Thread Vladimer Shioshvili
I noticed that when doing mergeMode=MERGE on organisationUnit couple attributes get "reset" if they are not provided: created gets set to the date of import, and featureType gets reset to NONE. If they are provided, they get set to the provided value. Is this expected behavior? Best, Vlad

Re: [Dhis2-devs] DHIS2- API

2017-10-10 Thread Vladimer Shioshvili
Hi Omer, api/metadata endpoint is used for creating new data elements. You can read more about it in the developer's manual: https://docs.dhis2.org/2.27/en/developer/html/dhis2_developer_manual_full.html#webapi_metadata_crud Same section, specifically 1.9.4 - https://docs.dhis2.org/2.27/en/develo

Re: [Dhis2-devs] Question about api, org unit relationships

2017-10-17 Thread Vladimer Shioshvili
Benjamin, It looks like your goal is to change the parent. In that case this is the PATCH format to use: PATCH http://localhost:8080/api/organisationUnits/uwxbuyaEU2j/parent {"parent":"hyAZBROiSX5"} https://docs.dhis2.org/2.24/en/developer/html/dhis2_developer_manual_full.html#d7652e1702 Best

Re: [Dhis2-devs] How to upload data values for data elements generated in custom forms

2018-07-09 Thread Vladimer Shioshvili
Leke, Have a look at the documentation, it gives the example of the csv import file format: https://docs.dhis2.org/2.27/en/developer/html/dhis2_developer_manual_full.html#webapi_data_values_csv You need to specify data element and category option combo in separate columns. Vlad On Mon, Jul 9, 2

Re: [Dhis2-devs] Error when installing dhis2 on tomcat 9 and postgres 10.4

2018-07-24 Thread Vladimer Shioshvili
Are you using Java 9 or higher? because, starting with Java 9, xml components are now modules that you need to specify to be included. You can either add "--add-modules java.xml.bind" to JAVA_OPTS environment variable or edit catalina.bat/catalina.sh to hard code it. But keep in mind that --add-mo

Re: [Dhis2-devs] User PUT issue

2018-08-14 Thread Vladimer Shioshvili
Greg, When you send the more complete user object, do you include the userCredential object's id? Vlad On Tue, Aug 14, 2018 at 5:16 AM Greg Wilson wrote: > Can someone tell me what I am doing wrong here? According to the docs ( > https://docs.dhis2.org/2.29/en/developer/html/dhis2_developer_ma

Re: [Dhis2-devs] User PUT issue

2018-08-14 Thread Vladimer Shioshvili
Hey Greg, The section of the documentation you included has a reference to the user object schema, which specifies that for the user object only firstName and surname are required (/api/schemas/user). I've just tried in 2.27 (not sure if things changed in 2.29) and this is the minimal package i wa

Re: [Dhis2-devs] Posting ADX file as a zip

2018-08-24 Thread Vladimer Shioshvili
It is possible. Just do post with a zip file as binary content, but keep the content type Application/add+xml It works both for synchronous and async imports. Note, that at some point in earlier revisions of 2.27 and prior versions, content type was application/xml+adx On Fri, Aug 24, 2018, 14:4

[Dhis2-devs] filtering sqlview result using value with a colon

2018-10-18 Thread Vladimer Shioshvili
We have a sql view that includes a timestamp in it (dhis2 version 2.29), and we are trying to filter the output, but get invalid filter error (409). { "httpStatus": "Conflict", "httpStatusCode": 409, "status": "ERROR", "message": "Invalid filter => approvaltime:eq:2018-10-17 14:56:36.243"

Re: [Dhis2-devs] Use of square brackets [] in metadata field filter

2018-10-30 Thread Vladimer Shioshvili
We faced the same issue, and I have brought it to Lars' attention, and he is aware of the issue. According to him, DHIS2 will be addressing this by changing square brackets in the long term, but in the short term solution you can make square brackets be exempted on the tomcat side by using relaxedQ