Re: [Dhis2-devs] API not showing 401 Unauthorized error

2018-04-21 Thread Rangarirai Matavire
Thanks Jason,

In addition, if you add the '-L' option to the 2.28 and 2.29 queries as
follows:

curl -I -L -u admin:distric -H 'Accept: application/json'
https://play.dhis2.org/2.29/api/me

You get a redirect loop which seems infinite until it terminates in error
as follows:

HTTP/1.1 302

Server: nginx/1.4.6 (Ubuntu)

Date: Sat, 21 Apr 2018 13:13:18 GMT

Content-Length: 0

Connection: keep-alive

X-XSS-Protection: 1; mode=block

X-Frame-Options: SAMEORIGIN

X-Content-Type-Options: nosniff

Location: https://play.dhis2.org/2.29/dhis-web-commons/security/login.action


HTTP/1.1 302

Server: nginx/1.4.6 (Ubuntu)

Date: Sat, 21 Apr 2018 13:13:18 GMT

Content-Length: 0

Connection: keep-alive

X-XSS-Protection: 1; mode=block

X-Frame-Options: SAMEORIGIN

X-Content-Type-Options: nosniff

Location: https://play.dhis2.org/2.29/dhis-web-commons/security/login.action


HTTP/1.1 302

Server: nginx/1.4.6 (Ubuntu)

Date: Sat, 21 Apr 2018 13:13:18 GMT

Content-Length: 0

Connection: keep-alive

X-XSS-Protection: 1; mode=block

X-Frame-Options: SAMEORIGIN

X-Content-Type-Options: nosniff

Location: https://play.dhis2.org/2.29/dhis-web-commons/security/login.action


HTTP/1.1 302

Server: nginx/1.4.6 (Ubuntu)

Date: Sat, 21 Apr 2018 13:13:19 GMT

Content-Length: 0

Connection: keep-alive

X-XSS-Protection: 1; mode=block

X-Frame-Options: SAMEORIGIN

X-Content-Type-Options: nosniff

Location: https://play.dhis2.org/2.29/dhis-web-commons/security/login.action


HTTP/1.1 302

Server: nginx/1.4.6 (Ubuntu)

Date: Sat, 21 Apr 2018 13:13:19 GMT

Content-Length: 0

Connection: keep-alive

X-XSS-Protection: 1; mode=block

X-Frame-Options: SAMEORIGIN

X-Content-Type-Options: nosniff

Location: https://play.dhis2.org/2.29/dhis-web-commons/security/login.action


curl: (47) SSLRead() return error -9806

This causes bug in applications that access the api for authentication and
I can also see how this can be used to diminish system performance in
general.

Regards,

Ranga

On Sat, Apr 21, 2018 at 8:51 AM, Jason Pickering <
jason.p.picker...@gmail.com> wrote:

> Just to try and make it a bit more clear Morten, I think this is the issue
> Rangarai is asking about is  below:
>
> In 2.29 and 2.28, an unauthorized username/password returns a 302.
>
> curl -I -u admin:distric -H 'Accept: application/json'
> https://play.dhis2.org/2.29/api/me
> HTTP/1.1 302
> Server: nginx/1.4.6 (Ubuntu)
> Date: Sat, 21 Apr 2018 06:44:10 GMT
> Content-Length: 0
> Connection: keep-alive
> X-XSS-Protection: 1; mode=block
> X-Frame-Options: SAMEORIGIN
> X-Content-Type-Options: nosniff
> Location: https://play.dhis2.org/2.29/dhis-web-commons/security/
> login.action
>
>
> In 2.27, this same request returns a 401.
>
> curl -I -u admin:distric -H 'Accept: application/json'
> https://play.dhis2.org/2.27/api/me
> HTTP/1.1 401
> Server: nginx/1.4.6 (Ubuntu)
> Date: Sat, 21 Apr 2018 06:44:27 GMT
> Content-Type: text/html;charset=utf-8
> Content-Length: 1071
> Connection: keep-alive
> X-XSS-Protection: 1; mode=block
> X-Frame-Options: SAMEORIGIN
> X-Content-Type-Options: nosniff
> Set-Cookie: JSESSIONID=05596EBFC26A7C1843D298E98619C7FB; Path=/2.27;
> HttpOnly
> WWW-Authenticate: Basic realm="DHIS2"
> Content-Language: en
>
>
> On Fri, Apr 20, 2018 at 1:40 PM, Rangarirai Matavire <matavi...@gmail.com>
> wrote:
>
>> Hi Morten,
>>
>> The password is set wrong deliberately so as to get a 401 or other
>> response. The problem is when you set the wrong password or username you
>> get endless redirects from the API.
>>
>> Regards,
>>
>>
>> On Fri, Apr 20, 2018 at 1:24 PM, Morten Olav Hansen <mor...@dhis2.org>
>> wrote:
>>
>>> It should be district, not distric... but also people keep changing our
>>> internal passwords (our database resets every 24 hour)
>>>
>>> --
>>> Morten Olav Hansen
>>> Senior Engineer, DHIS 2
>>> University of Oslo
>>> http://www.dhis2.org
>>>
>>> On Fri, Apr 20, 2018 at 12:09 PM, Rangarirai Matavire <
>>> matavi...@gmail.com> wrote:
>>>
>>>> By the way, its not just the error response code that is worrying, but
>>>> also the loop of redirects that starts, this makes it difficult to handle
>>>> the response for an http client. To see this loop of redirects, you can add
>>>> -L to curl as below.
>>>>
>>>> curl -I -L -u admin:distric -H 'Accept: application/json'
>>>> https://play.dhis2.org/2.28/api/me
>>>>
>>>> I think this behaviour should be corrected as it may lead to unexpected
>>>> behaviour of apps.
>>>>
>>>> Regards
>>>>
>>>> On Wed, Apr 18, 20

Re: [Dhis2-devs] API not showing 401 Unauthorized error

2018-04-20 Thread Rangarirai Matavire
Hi Morten,

The password is set wrong deliberately so as to get a 401 or other
response. The problem is when you set the wrong password or username you
get endless redirects from the API.

Regards,


On Fri, Apr 20, 2018 at 1:24 PM, Morten Olav Hansen <mor...@dhis2.org>
wrote:

> It should be district, not distric... but also people keep changing our
> internal passwords (our database resets every 24 hour)
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
> On Fri, Apr 20, 2018 at 12:09 PM, Rangarirai Matavire <matavi...@gmail.com
> > wrote:
>
>> By the way, its not just the error response code that is worrying, but
>> also the loop of redirects that starts, this makes it difficult to handle
>> the response for an http client. To see this loop of redirects, you can add
>> -L to curl as below.
>>
>> curl -I -L -u admin:distric -H 'Accept: application/json'
>> https://play.dhis2.org/2.28/api/me
>>
>> I think this behaviour should be corrected as it may lead to unexpected
>> behaviour of apps.
>>
>> Regards
>>
>> On Wed, Apr 18, 2018 at 11:10 PM, Rangarirai Matavire <
>> matavi...@gmail.com> wrote:
>>
>>> Hi Devs,
>>>
>>> I am wondering whether the behaviour I am seeing is a bug or something
>>> to be expected due to some change.
>>>
>>> When I run the following curl command:
>>>
>>> curl -I -u admin:distric -H 'Accept: application/json'
>>> https://play.dhis2.org/2.29/api/me
>>>
>>> I get an HTTP 302 response. Note that I have deliberately set the
>>> password wrong so I can mock a 401 unauthorized response. I get the same
>>> response when I run the command on version 2.28. However, as expected, when
>>> I run it on 2.27, 2.26 etc I get a 401 HTTP response.
>>>
>>> I hope someone can assist.
>>>
>>> Regards,
>>>
>>> Ranga
>>>
>>
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : dhis2-devs@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] API not showing 401 Unauthorized error

2018-04-19 Thread Rangarirai Matavire
By the way, its not just the error response code that is worrying, but also
the loop of redirects that starts, this makes it difficult to handle the
response for an http client. To see this loop of redirects, you can add -L
to curl as below.

curl -I -L -u admin:distric -H 'Accept: application/json'
https://play.dhis2.org/2.28/api/me

I think this behaviour should be corrected as it may lead to unexpected
behaviour of apps.

Regards

On Wed, Apr 18, 2018 at 11:10 PM, Rangarirai Matavire <matavi...@gmail.com>
wrote:

> Hi Devs,
>
> I am wondering whether the behaviour I am seeing is a bug or something to
> be expected due to some change.
>
> When I run the following curl command:
>
> curl -I -u admin:distric -H 'Accept: application/json'
> https://play.dhis2.org/2.29/api/me
>
> I get an HTTP 302 response. Note that I have deliberately set the password
> wrong so I can mock a 401 unauthorized response. I get the same response
> when I run the command on version 2.28. However, as expected, when I run it
> on 2.27, 2.26 etc I get a 401 HTTP response.
>
> I hope someone can assist.
>
> Regards,
>
> Ranga
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] API not showing 401 Unauthorized error

2018-04-18 Thread Rangarirai Matavire
Hi Devs,

I am wondering whether the behaviour I am seeing is a bug or something to
be expected due to some change.

When I run the following curl command:

curl -I -u admin:distric -H 'Accept: application/json'
https://play.dhis2.org/2.29/api/me

I get an HTTP 302 response. Note that I have deliberately set the password
wrong so I can mock a 401 unauthorized response. I get the same response
when I run the command on version 2.28. However, as expected, when I run it
on 2.27, 2.26 etc I get a 401 HTTP response.

I hope someone can assist.

Regards,

Ranga
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] Announcing the DHIS2 Academy Level 2: Android Implementation

2017-12-05 Thread Rangarirai Matavire
Dear DHIS2 Community,


The University of Oslo, in partnership with the Ministry of Health and
Child Care in Zimbabwe and ITINordic, are pleased to announce the inaugural
“DHIS2 Academy Level 2: Android Implementation”.


The Academy will take place from February 6-9, 2018 at the scenic Troutbeck
Hotel & Resorts, in Nyanga, Zimbabwe.


This Academy brings together the DHIS2 Android team, implementers and
champions from the public sector, private sector and donor community in
order to guide and support planned and ongoing implementations of this
exciting and evolving technology. The Android apps to be covered in the
Academy include Tracker Capture, Event Capture, Data Capture and Dashboard,
which continue to be revamped for stability and increased functionality.


Topics to be covered in the 4-day academy will include the DHIS2 Android
platform, its scaling, relevant standards, Enterprise Mobility Management
(EMM) (including Mobile Device Management (MDM), Security, lessons from
current use cases, mobile health policy and the DHIS2 Android plan and
roadmap. Practical sessions on planning, setting up, piloting and scaling
enterprise-wide DHIS2 Android applications will also be conducted.

In parallel, we are applying all our efforts to building the next
generation DHIS2 Android solution based on a new SDK and a newly designed
user interface. During the Academy we will update you on the plans and
status of the App. We will show you how far we have come and hope to gather
your feedback towards the final product to be released in August 2018.

The Academy fee is USD750 and is inclusive of training material, lunch and
coffee breaks for 4 days. Please register early as the total number of
places for participation is limited.

You can find more about the learning objectives, practical details and
registration at: https://www.dhis2.org/zimbabwe2018-home#

If you have any questions, do not hesitate to reach out to the organising
committee at zimbabwe2...@dhis2.org.

We look forward to seeing you in Zimbabwe!


Regards,


Ranga (on behalf of the organising committee)
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [Dhis2-users] TRACKER ERROR

2016-11-28 Thread Rangarirai Matavire
Hi,
Usually this means that you entered data or removed data which hides a
field which had data. For example if I enter that a patient is Female and
then given some logic it then displays the "is the patient pregnant option"
which I then enter yes or no. After this I then realise I mistakenly enter
the sex as female when the patient is male. So I correct, it then hides the
pregnant options but only after warning me that its going to blank out the
pregant option data which you entered before as it does for you. So its a
warning not an error unless there is another problem.

You have not provided enough info for the completion problem to get a good
answer.

Regards,

Ranga

On 28 Nov 2016 16:25, "Stanley Kalyati"  wrote:

> I am getting an error whenever i want to enter data in a form developed in
> tracker capture.I am using DHIS2 2.24 Build version 037a39f.
>
> The error is "Name of DIC was blanked out and hidden by your last action".
> Wjat is this error saying.
>
> Secondly after entering data i cant complete the form.
>
> Kindly help.
>
> Regards
>
> Stanley
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Program rule - selected field to hide changes to None

2016-09-27 Thread Rangarirai Matavire
get the latest trunk. It was not working yesterday but is fine today.
Markus added a fix.

On Tue, Sep 27, 2016 at 12:16 PM, Calle Hedberg 
wrote:

> Hi
>
> This increasingly looks like a significant bug - Elmarie just added a
> similar program rule (i.e. using a 'MALE' value in the Gender attribute to
> hide the Pregnant attribute) in another instance, and the result is the
> same: the action field value is replaced by "None" and there are no
> drop-down values.
>
> Regards
> Calle
>
> On 27 September 2016 at 11:06, Calle Hedberg 
> wrote:
>
>> Hi
>>
>> I'm having an issue that baffles me: when adding a program rule to a
>> tracker program that checks one attribute in order to hide another
>> attribute, I can initially select and save - everything seems normal.
>>
>> But when I open the program rule again, the field to be hidden is showing
>> "None" and there are no values in the drop-down for that selection.
>>
>> I have tried to replicate this on the demo, but on the demo the new
>> program rule does not save at all. No error message - it just don't save.
>>
>> I then tried to modify an existing program rule ("WHO RMNCH tracker",
>> verify street address) by changing the action from warning to hide field -
>> again I only get "None" in the field drop-down.
>>
>> Is this a bug, or am I doing something dumb?
>>
>> regards
>> Calle
>>
>> ***
>>
>> Calle Hedberg
>>
>> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
>>
>> Tel/fax (home): +27-21-685-6472
>>
>> Cell: +27-82-853-5352
>>
>> Iridium SatPhone: +8816-315-19119
>>
>> Email: calle.hedb...@gmail.com
>>
>> Skype: calle_hedberg
>>
>> ***
>>
>>
>
>
> --
>
> ***
>
> Calle Hedberg
>
> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
>
> Tel/fax (home): +27-21-685-6472
>
> Cell: +27-82-853-5352
>
> Iridium SatPhone: +8816-315-19119
>
> Email: calle.hedb...@gmail.com
>
> Skype: calle_hedberg
>
> ***
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [DHIS2 - devs] [DHIS2 - users] DHIS2 repository for F-Droid (as application distribution channel).

2016-09-21 Thread Rangarirai Matavire
Hi Jean Fabius,

---Does DHIS2 have a signed repository for F-Droid?

DHIS2 Android does not have a signed F-droid repository.

You can get new versions of dhis2 android apps from google play.

 Is there anyone in the community that has ever used F-Droid?

To control your version and deployments you have to get the apks that you
wish to distribute to your users and create your own F-droid repositories.
This is recommended and we have tested this in a number of use cases and it
works fine.

--- And what repository that was used or installed (how)?

We use F-Droid to deploy. To install you can find the instructions here:

https://f-droid.org/wiki/page/Setup_an_FDroid_App_Repo

also https://f-droid.org/wiki/page/Installing_the_Server_and_Repo_Tools (no
need to install the code through git so you can skip that step)

Regards,

Ranga


On Tue, Sep 20, 2016 at 7:55 PM, Mugisha, Jean F. 
wrote:

> Dear Community,
>
> I am trying to use F-Droid as the main application distribution channel 
> (*Event
> Capture app., etc.*). But it appears that DHIS2 apps are not available
> from the general F-Droid repository.
>
> I attempted to add a repository by following the listed guidelines
> http://ccm.net/faq/40543-f-droid-how-to-add-new-software-repositories.
> But it does not seem to work.
>
> Here are few questions that I have:
>
>  - Does DHIS2 have a signed repository for F-Droid?
>
>  - Is there anyone in the community that has ever used F-Droid?
>
>  - And what repository that was used or installed (how)?
>
> Please let me know if you have any questions.
>
> Regards,
> Jean Fabius
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [Dhis2-users] Searching a person in all organization units and update he/she program stage

2016-06-15 Thread Rangarirai Matavire
Hello Adolphe,

Such a scenario is currently working and being tested for the Android
Tracker capture app. Perhaps you can try the app, that is if you haven't
already. It has a feature to search from another facility.

Regards,

Ranga
On 14 Jun 2016 13:03, "Kamugunga Adolphe"  wrote:

Hi,
We are running a TB patient  tracker on dhis2.21 version and we would like
the system to support continuum of care and data capturing  wherever the
patient go and also help to control movement of patients and lost to follow
up.

we have set the user role of the data managers with the following
authorities:
[image: Inline images 1]

But while testing it, the user can't search beyond the assigned
organization unit.

Has anyone used this feature to give as hint or advise us on other
alternatives?

Can the similar scenario work with the upper versions?

Regards,


*Adolphe Kamugunga*
*MIS Technical Advisor*
*Knowledge Management, Data Use and Research*
Rwanda Health System Strengthening Activity
Management Sciences for Health
Rwanda-Kigali
Mobile: +250 788 740 578
Email:kaa...@gmail.com
Skype: ka.adolphe

Stronger health systems. Greater health impact.


On 13 June 2016 at 07:10, Prosper BT  wrote:

> Dear Mohammad,
>
> Its the "event date", when you line list it will appear and when you
> aggregate event its what is used for aggregation for a given period.
>
> Regards
>
> On Wed, Jun 1, 2016 at 10:40 AM, Sultanahamar Mohammad <
> sult...@thoughtworks.com> wrote:
>
>> adding dhis2 users in the loop.
>>
>> Regards,
>> Sultan Ahamar.
>>
>> On Tue, May 31, 2016 at 3:39 PM, Sultanahamar Mohammad <
>> sult...@thoughtworks.com> wrote:
>>
>>> Hi All,
>>>
>>> Reporting date in every stage of tracker is not visible while creating
>>> program indicators and also in event visualizer. Is there anything that we
>>> are missing.
>>>
>>> We have created a program with two stages
>>> 1. Admission (Reporting date -> admission date)
>>> 2. Discharge  (Reporting date -> discharge date)
>>>
>>> Now, to understand on number of people admitted in a month, I want to
>>> use reporting date of admission stage. But, I am not able to create this
>>> indicator as reporting date is not present in the list of data elements or
>>> variables. Could you please help us in this.
>>>
>>> Regards,
>>> Sultan Ahamar.
>>>
>>>
>>>
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to : dhis2-us...@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> Prosper Behumbiize, MPH
> Global DHIS2 Implementation| HISP Uganda/University Of Oslo
> +256 752 751 776 | +256 776 139 139
> pros...@hispuganda.org  | pros...@dhis2.org | Skype:
> prospertb
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>

___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-us...@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [Dhis2-users] thomas lindsjørn joins as android developer

2016-05-25 Thread Rangarirai Matavire
Welcome!

On Wed, May 25, 2016 at 9:11 AM, Mark Polak  wrote:

> Welcome to the team Thomas! :)
>
> On Wed, May 25, 2016 at 7:05 AM, Stian Sandvold 
> wrote:
>
>> Welcome!
>>
>> On 25 May 2016 at 06:11, Hannan Khan  wrote:
>>
>>> Welcome Thomas!!
>>>
>>> On Wed, May 25, 2016 at 1:09 AM, Lars Helge Øverland 
>>> wrote:
>>>
 Hi all,

 Thomas Lindsjørn has joined the DHIS 2 team as Android developer.
 Thomas has 4 years of experience developing Android applications within
 public transport, sports and finance. He has been involved with
 architecture, UX design, programming and testing.

 We with him a warm welcome to the team.


 best regards,

 Lars


 --
 Lars Helge Øverland
 Lead developer, DHIS 2
 University of Oslo
 Skype: larshelgeoverland
 l...@dhis2.org
 http://www.dhis2.org 


 ___
 Mailing list: https://launchpad.net/~dhis2-users
 Post to : dhis2-us...@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-users
 More help   : https://help.launchpad.net/ListHelp


>>>
>>>
>>> --
>>> Muhammad Abdul Hannan Khan
>>> Secretary
>>> HISP Bangladesh
>>>
>>> T +880-2- 8816459, 8816412 ext 118
>>> F +88 02 8813 875
>>> M+88 01819 239 241
>>> M+88 01534 312 066
>>> E hann...@gmail.com
>>> S hannan.khan.dhaka
>>> B hannan-tech.blogspot.com
>>>
>>>
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-users
>>> Post to : dhis2-us...@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to : dhis2-us...@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> Regards,
>
>
> Mark Polak
> Software developer, DHIS 2
> University of Oslo
> http://www.dhis2.org 
> m...@dhis2.org
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Introduction to Community

2016-05-01 Thread Rangarirai Matavire
Congrats and good luck.
Ranga
On 1 May 2016 15:29, "Saptarshi Purkayastha"  wrote:

> Congratulations Laavanye... Looking forward to the enhancements to
> Dashboard app
>
> ---
> Regards,
> Saptarshi PURKAYASTHA, Ph.D.
> Assistant Professor of Health Informatics, IUPUI
>
> On 1 May 2016 at 00:55, LAAVANYE BAHL  wrote:
>
>> Thank you everyone :)
>> On 30 Apr 2016 23:01, "Araz Abishov"  wrote:
>>
>>> Welcome Laavanye!
>>>
>>> We are happy to have you in team during this summer.
>>>
>>> Best regards,
>>>
>>> —
>>> Araz Abishov,
>>> Android developer, DHIS 2
>>> University of Oslo
>>> https://www.dhis2.org/
>>>
>>> On April 30, 2016 at 10:42:15 AM, LAAVANYE BAHL (laavanye.b...@gmail.com)
>>> wrote:
>>>
>>> Hi everyone,
>>>
>>> I am Laavanye Bahl studying Software Engineering at Delhi Technological
>>> University, India. I have a lot of experience in software development,
>>> especially mobile and desktop applications.
>>>
>>> I have been selected as a GSoC participant for the project - "Enhancing
>>> Dashboard Android App
>>> " by
>>> generating the analytical objects dynamically and making the app work in
>>> the offline mode.
>>>
>>> It feels great to be a part of a community of active developers and
>>> members working on development and implementation of health information
>>> systems across the world,
>>>
>>> I'm looking forward to an amazing summer working on the project, with
>>> the HIS community, under the mentor ship of Araz Abishov.
>>>
>>> Regards,
>>> Laavanye Bahl
>>>
>>>
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-devs
>>> Post to : dhis2-devs@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>> More help : https://help.launchpad.net/ListHelp
>>>
>>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : dhis2-devs@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] [Dhis2-users] Major performance improvement on the DHIS2 Android Tracker Capture & Event Capture

2016-04-28 Thread Rangarirai Matavire
Thank you Erling. Well done to the team as well. Already testing the app.

On Thu, Apr 28, 2016 at 11:25 AM, Elmarie Claasen  wrote:

> Hi Erling,
>
>
>
> Thanks for assisting to make these improvements – it will definitely have
> a major impact on efficiency of the android apps going forward. It has been
> a pleasure for the team to work with you from HISP-SA side in improving
> this – thanks for your responsiveness to the issues encountered. J
>
>
>
> Regards,
>
>
>
> *Elmarie Claasen*
>
> [image: Hisp logo]
>
> Project Manager
>
> Health Information Systems Program
>
> Tel:  041-367 1027
>
> Cell: 082 374 2209
>
> E-mail: elma...@hisp.org
>
> Skype:  elmarie.claasen52
>
>
>
>
>
> This message and any attachments are subject to a disclaimer published at 
> http://www.hisp.org/policies.html#comms_disclaimer
> .   Please read the disclaimer before opening any attachment or taking any
> other action in terms of this electronic transmission.
> If you cannot access the disclaimer, kindly send an email to 
> disclai...@hisp.org
> and a copy will be provided to you. By replying to this e-mail or opening
> any attachment you agree to be bound by the provisions of the disclaimer.
>
>
>
> *From:* Dhis2-users [mailto:dhis2-users-bounces+elmarie=
> hisp@lists.launchpad.net] *On Behalf Of *Erling Fjelstad
> *Sent:* 28 April 2016 10:04 AM
> *To:* DHIS 2 Developers list; DHIS 2 Users list
> *Subject:* [Dhis2-users] Major performance improvement on the DHIS2
> Android Tracker Capture & Event Capture
>
>
>
> Hi all,
>
> The Android team has been working closely with our colleagues at HISP
> South Africa and together we have manged to cut down the amount of data
> used and the amount of requestes when logging in, doing the first
> synchronising of meta data and sending data back to the server.
>
>
> - We have implemented bulk sending of tracker data (tracked entity
> instances, enrollments and events) to the server.
>
> - We have removed a lot of unnecessary calls to the web API and optimized
> them.
>
> - In Event Capture we have reduced the amount of Events that is auto
> downloaded on the device. Before it was 200, now we have reduced it to 50.
> If this is a problem for anyone, please contact me.
>
>
>
>
> For the perfomance improvements, we found n the South African test server
> that:
>
> - First login with synchronising meta data, data usage was reduced from
> 4.2 MB to 40 KB.
>
> - Sending of data: 1 Tracked entity instance with 1 Enrollment and 4
> events was reduced from 25 KB to 5 KB. Amount of requests dropped by almost
> 50%
>
>
> Both Tracker Capture and Event Capture should be available on Google Play
> today and works for DHIS 2.22 and 2.23. For older versions of DHIS2 (2.20
> and 2.21), the new Android apps will be available on our Github page soon.
> Old versions will not have bulk sending of all tracker data, only events.
>
> Regards,
>
> Erling - DHIS2 Android Team
>
> *This message and any attachments are subject to a disclaimer published at
> http://www.hisp.org/policies.html#comms_disclaimer
> .  Please read the
> disclaimer before opening any attachment or taking any other action in
> terms of this electronic transmission.  If you cannot access the
> disclaimer, kindly send an email to disclai...@hisp.org
>  and a copy will be provided to you. By replying to
> this e-mail or opening any attachment you agree to be bound by the
> provisions of the disclaimer.*
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs-core] Read only access to orgunits

2015-10-16 Thread Rangarirai Matavire
Thanks,
Is it possible to create a user with no privileges?

On Thu, Apr 2, 2015 at 6:58 PM, Lars Helge Øverland 
wrote:

> Hi Bob,
>
> yes that is correct.
>
> You can read but of course not create org units without explicit authority.
>
> For most objects we now have "sharing" applied, which means you could make
> that meta-data private (hidden). We do not have sharing for org units due
> to the nature of the hierarchy (would be problematic if some higher-level
> org units were private/hidden).
>
> regards,
>
> Lars
>
>
> On Thu, Apr 2, 2015 at 6:36 PM, Bob Jolliffe 
> wrote:
>
>> Hi
>>
>> I am struggling to find an required authority to create a user which
>> has readonly access to the orgunits.
>>
>> Specifically I want to create an account for a facility registry type
>> client who can read orgunits (+groups, levels, attributes) from the
>> api - and no acces to anything else.  Am I missing something silly?
>> The default seems to be If I create a user with no privileges
>> whatsoever that user has access to the api metadata and resource
>> endpoints.  Is that the way it is?
>>
>> Cheers
>> Bob
>>
>> --
>> Mailing list: https://launchpad.net/~dhis2-devs-core
>> Post to : dhis2-devs-core@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-devs-core
>> More help   : https://help.launchpad.net/ListHelp
>>
>
>
-- 
Mailing list: https://launchpad.net/~dhis2-devs-core
Post to : dhis2-devs-core@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs-core
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs-core] Read only access to orgunits

2015-10-16 Thread Rangarirai Matavire
Thanks for the feedback. Will try the solution in our case.
On 23 Apr 2015 1:00 PM, "Bob Jolliffe" <bobjolli...@gmail.com> wrote:

> Agree.  As in the documentation link you referred earlier.
>
> On 23 April 2015 at 11:24, Jason Pickering <jason.p.picker...@gmail.com>
> wrote:
> > And I would probably limit the request type to GET.
> >
> >
> >
> > On Thu, Apr 23, 2015 at 12:22 PM, Bob Jolliffe <bobjolli...@gmail.com>
> > wrote:
> >>
> >> Right.  So in combination with that minimal privilege user account,
> >> you would have something like the following:
> >>
> >> location ~  api/(organisationUnits
> >>
> |organisationUnitGroups|organisationUnitGroupSets|organisationUnitLevels)
> >> { 
> >>
> >>
> >>
> >> On 23 April 2015 at 11:01, Jason Pickering <jason.p.picker...@gmail.com
> >
> >> wrote:
> >> >
> >> >
> https://www.dhis2.org/doc/snapshot/en/implementer/html/ch08s03.html#d5e623
> >> >
> >> > will show you how to make resources available.
> >> >
> >> > Use with caution.
> >> >
> >> > Regards,
> >> > Jason
> >> >
> >> >
> >> > On Thu, Apr 23, 2015 at 11:03 AM, Bob Jolliffe <bobjolli...@gmail.com
> >
> >> > wrote:
> >> >>
> >> >> You could also facade it at the reverse web proxy ie. have a publicly
> >> >> accessable location which is a proxy for an upstream request to
> >> >> /api/organisationUnits etc which provides the required basic
> >> >> authentication hidden in the proxy configuration.
> >> >>
> >> >> On 23 April 2015 at 09:58, Bob Jolliffe <bobjolli...@gmail.com>
> wrote:
> >> >> > On 23 April 2015 at 09:35, Rangarirai Matavire <
> matavi...@gmail.com>
> >> >> > wrote:
> >> >> >> Thanks,
> >> >> >> Is it possible to create a user with no privileges?
> >> >> >
> >> >> > Well as little as possible ...
> >> >> >
> >> >> > Please check demo.dhis2.org.
> >> >> >
> >> >> > I just created a role called "metadata client" and assigned no
> >> >> > authorities to it.
> >> >> >
> >> >> > Then created a user called facility (password Facility1) with role
> >> >> > "metadata client".
> >> >> >
> >> >> > You can see that with these credentials you can't do much with the
> >> >> > application, but you *can* browse the api at
> >> >> > https://apps.dhis2.org/demo/api/ including the orgunits at
> >> >> > https://apps.dhis2.org/demo/api/organisationUnits.
> >> >> >
> >> >> > AFAIK that is the minimum level of access you can give an account,
> >> >> > and
> >> >> > is sufficient to be able to export orgunits which is what you need.
> >> >> >
> >> >> > Unfortunately the user also has access to all sorts of other
> metadata
> >> >> > like charts, reports, user details which is really not ideal if all
> >> >> > we
> >> >> > want to expose is an interface for an orgunit synchronisation..
> >> >> > Would
> >> >> > be preferable to be able to tie it down to just orgunits,
> >> >> > orgunitgroups (and sets) and levels.
> >> >> >
> >> >> > There are also other "standard" api like CSD and FRED, but for
> dhis2
> >> >> > synching you are best working with the native api.
> >> >> >
> >> >> > Cheers
> >> >> > Bob
> >> >> >
> >> >> >>
> >> >> >> On Thu, Apr 2, 2015 at 6:58 PM, Lars Helge Øverland
> >> >> >> <larshe...@gmail.com>
> >> >> >> wrote:
> >> >> >>>
> >> >> >>> Hi Bob,
> >> >> >>>
> >> >> >>> yes that is correct.
> >> >> >>>
> >> >> >>> You can read but of course not create org units without explicit
> >> >> >>> authority.
> >> >> >>>
> >> >> >>> For most objects we now have "sharing" applied, which