Re: [Dhis2-devs] Pivot on Demo/Snapshot still doesn't look right

2016-04-26 Thread Jason Pickering
Hi Uwe,
Seems to work for me. Could you provide a screenshot or more detailed
information on how to actually reproduce your problem?
Regards,
Jason


On Wed, Apr 27, 2016 at 7:25 AM, Uwe Wahser  wrote:

> Dear Devs,
>
> although you tried to fix something on the Demo-Site, there still seems to
> be a
> problem when listing dataelements, options etc.: instead of a list of
> choices
> there's only the word value.
>
> Regards,
>
> Uwe
>
> ___
> 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
>



-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] sub menu - merge organisationUnit

2016-04-27 Thread Jason Pickering
Hi Riddy,

This function has been removed and yet to be re-implemented.

Please have a look at this mail thread for some SQL functions which will
perform this operation for you.

https://lists.launchpad.net/dhis2-devs/msg40666.html

Regards,
Jason


On Wed, Apr 27, 2016, 14:30 riddy ndoma  wrote:

> Hello,
>
> I don't see Merge Organisation Unit menu in DHIS 2.22.
>
> Some one knows where is it?
>
> --
> Riddy NDOMA
> Software Developer
> *Skype:* riddyndoma, *G+:* riddyndoma, *FB:* riddy ndoma
> *Twitter:* riddyndoma, *LinkedIn:* riddy ndoma
> *Blog:* http://riddyndoma.blogspot.com/
> *Vous servir est mon désire (Serving you is my desire)*
> ___
> 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] Aggregate indicators

2016-04-29 Thread Jason Pickering
Hi JM,

Sounds like a bug, but quite crazy to attempt as well!

Another way to do this, though perhaps not ideal, would be to perform this
calculation through SQL and inject it back into the system as a data
element. We have followed this approach for indicators which cannot be
calculated with relatively simple formulas provided by indicators, such as
those requiring "IF...THEN" types of calculations.

Not ideal, but it might be an approach you wish to consider.

Regards,
Jason


On Fri, Apr 29, 2016 at 3:24 PM, Juan Manuel Alcantara Acosta <
jmalcanta...@gmail.com> wrote:

> Hi Lars
> Thank you, I looked at the database and the interface and I didn’t see a
> limit imposed by either one. I have a formula that sums 410 data elements,
> I know that sounds impractical but that’s just the way it’s required.
> When I build the formula, with ~300 data elements I get error #1, with the
> 400 I get error #2
>
> Best regards,
> JM
>
>
> Error #1
> jquery.min.js?_rev=20997:2 GET
> https://test-data.ippf.org/api/expressions/description?expression=%23%7BcIm…cZiZ%7D%0A%2B%23%7BAV0dSekxPXl%7D%0A%2B%23%7BINM6uMXWoeK%7D%0A%0A%0A%0A%0A
> net::ERR_SPDY_PROTOCOL_ERRORsend @ jquery.min.js?_rev=20997:2p.extend.ajax
> @ jquery.min.js?_rev=20997:2getExpressionText @
> expressionBuilder.js?_rev=20997:82cleanExpression @
> expressionBuilder.js?_rev=20997:111onchange @
> showUpdateIndicatorForm.action?id=65566:584
>
>
> Error #2
> jquery.min.js?_rev=20997:2 GET
> https://test-data.ippf.org/api/expressions/description?expression=%23%7BcIm…eFqW%7D%0A%2B%23%7BePqg2GN87Ng%7D%0A%2B%23%7BFTrvVVBrdry%7D%0A%0A%0A%0A%0A
> 400 ()send @ jquery.min.js?_rev=20997:2p.extend.ajax @
> jquery.min.js?_rev=20997:2getExpressionText @
> expressionBuilder.js?_rev=20997:82cleanExpression @
> expressionBuilder.js?_rev=20997:111onchange @
> showUpdateIndicatorForm.action?id=65566:584
>
>
>
> El 28/04/2016, a las 1:40 a.m., Lars Helge Øverland 
> escribió:
>
> Hi JM,
>
> there is no hard limit (beyond 2gb expression length;).
>
> However data analytics performance (and entry forms if you have indicators
> there) will of course suffer with extremely large indicators.
>
> regards,
>
> Lars
>
>
> On Wed, Apr 27, 2016 at 11:44 PM, Juan Manuel Alcantara Acosta <
> jmalcanta...@gmail.com> wrote:
>
>> Hi Devs
>> Is there a limit on the number of data elements that can be added in an
>> indicator formula?
>> Regards,
>> JM
>> ___
>> 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
>>
>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> http://www.dhis2.org 
>
>
>
> ___
> 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
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] DHIS 2 translation server Error

2016-05-02 Thread Jason Pickering
Hi Anil,
Sorry about that.  What is the error and which language are you interested
in translating to?

Regards,
Jason

On Mon, May 2, 2016, 16:20 Anilkumar Kodi  wrote:

> Hi,
>
> I am trying to register for *DHIS 2 translation server *(
> http://translate.dhis2.net/accounts/register) but i am unable to create
> an account, Getting Server error
> Could you help me to create an account.
>
>
>
> [image: Inline image 1]
>
>
> Thanks,
> Anil Kumar Kodi.
> +917660010617
> ___
> 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] DHIS 2 translation server Error

2016-05-02 Thread Jason Pickering
Hi Anil,
I will take a look at the error, but in general, you should translate the
languages which you can actually translate. We can support in principle any
language, thus it would be best to know which locale you are actually
targeting, so that I can ensure everything is set up properly.

Regards,
Jason

On Mon, May 2, 2016, 17:27 Anilkumar Kodi  wrote:

> Hi Jason,
>
> Getting below error when trying to register to translation server
>
> Server Error
>
> *An error has occurred. Thank you for your patience.*
>
> *(435, '4.7.8 Error: authentication failed:')*
>
>
> We would like to translate to all the languages that what dhis2 supports.
> Could you help us to know how to translate.
>
>
> Thanks,
> Anil Kumar
>
>
> On Mon, May 2, 2016 at 7:53 PM, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
>> Hi Anil,
>> Sorry about that.  What is the error and which language are you
>> interested in translating to?
>>
>> Regards,
>> Jason
>>
>> On Mon, May 2, 2016, 16:20 Anilkumar Kodi 
>> wrote:
>>
>>> Hi,
>>>
>>> I am trying to register for *DHIS 2 translation server *(
>>> http://translate.dhis2.net/accounts/register) but i am unable to create
>>> an account, Getting Server error
>>> Could you help me to create an account.
>>>
>>>
>>>
>>> [image: Inline image 1]
>>>
>>>
>>> Thanks,
>>> Anil Kumar Kodi.
>>> +917660010617
>>> ___
>>> 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] DHIS 2 translation server Error

2016-05-03 Thread Jason Pickering
Hi Anil,
I think I have fixed that error now. Could you please try to register again
on the translation server?

Also, if you can let me know which language you will be targeting, I can be
sure everything is setup properly.

Regards,
Jason


On Mon, May 2, 2016 at 6:04 PM, Jason Pickering  wrote:

> Hi Anil,
> I will take a look at the error, but in general, you should translate the
> languages which you can actually translate. We can support in principle any
> language, thus it would be best to know which locale you are actually
> targeting, so that I can ensure everything is set up properly.
>
> Regards,
> Jason
>
>
> On Mon, May 2, 2016, 17:27 Anilkumar Kodi 
> wrote:
>
>> Hi Jason,
>>
>> Getting below error when trying to register to translation server
>>
>> Server Error
>>
>> *An error has occurred. Thank you for your patience.*
>>
>> *(435, '4.7.8 Error: authentication failed:')*
>>
>>
>> We would like to translate to all the languages that what dhis2 supports.
>> Could you help us to know how to translate.
>>
>>
>> Thanks,
>> Anil Kumar
>>
>>
>> On Mon, May 2, 2016 at 7:53 PM, Jason Pickering <
>> jason.p.picker...@gmail.com> wrote:
>>
>>> Hi Anil,
>>> Sorry about that.  What is the error and which language are you
>>> interested in translating to?
>>>
>>> Regards,
>>> Jason
>>>
>>> On Mon, May 2, 2016, 16:20 Anilkumar Kodi 
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> I am trying to register for *DHIS 2 translation server *(
>>>> http://translate.dhis2.net/accounts/register) but i am unable to
>>>> create an account, Getting Server error
>>>> Could you help me to create an account.
>>>>
>>>>
>>>>
>>>> [image: Inline image 1]
>>>>
>>>>
>>>> Thanks,
>>>> Anil Kumar Kodi.
>>>> +917660010617
>>>> ___
>>>> 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
>>>>
>>>
>>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] DHIS 2 translation server Error

2016-05-04 Thread Jason Pickering
Hi Anil,
Please send me your user name directly (not on this list) and I will
activate you. I am working on getting that server back up and running
properly, but in the meantime, I can activate your account manually.

In terms of supporting the fork, this is not something really which is
currently in the workflow for this translation server. There is a
reasonably complex workflow to produce the PO files which the server uses,
sync all of these and then round-trip them back to Java properties files.
We have been supporting translation of the user-interface of trunk, but not
of forks.

I think it would be a lot easier for you to manage the translations
manually in your own branch, using tools such as PO Edit (
https://poedit.net/download) or Virtaal (http://virtaal.translatehouse.org/).
Alternatively, you may be able to use the DHIS2 resource editor (
https://www.dhis2.org/download/resources/dhis-i18n-resourceeditor.zip) This
tool is quite old and abandoned I think in terms of development, but it may
still work.

Alternatively, you could setup your own Pootle server, since it is also a
FOSS product (http://pootle.translatehouse.org/download.html).

So, if you would be interested in translating the trunk software, then I
think that is something we can help with, but given the complexity of our
current setup, I do not think we could support the translation of a branch
of trunk.

Regards,
Jason


On Wed, May 4, 2016 at 9:24 AM, Anilkumar Kodi 
wrote:

> Hi Jason,
>
> Sorry for the late reply,
>
> Thanks for the fix. I am able to register now. But i did not get any
> activation link and hence still unable to login.
>
> We are developing one of the features which is metadata sync (which will
> eventually land in DHIS main release branch).
> It is currently in one of our branches forked from DHIS 2.23 (
> https://code.launchpad.net/~twoca-devs/dhis2/twoca_sync_2.23
> ).
> This piece has backend as well as front end additions. The front end part
> of it has changes to the 'Settings' and 'Data Administration' apps. So, we
> would like to know if it would  be possible to leverage the DHIS
> translation server to do translations ?
>
> Regards
> Anil and Vanya pairing.
>
>
> On Tue, May 3, 2016 at 1:36 PM, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
>> Hi Anil,
>> I think I have fixed that error now. Could you please try to register
>> again on the translation server?
>>
>> Also, if you can let me know which language you will be targeting, I can
>> be sure everything is setup properly.
>>
>> Regards,
>> Jason
>>
>>
>> On Mon, May 2, 2016 at 6:04 PM, Jason Pickering <
>> jason.p.picker...@gmail.com> wrote:
>>
>>> Hi Anil,
>>> I will take a look at the error, but in general, you should translate
>>> the languages which you can actually translate. We can support in principle
>>> any language, thus it would be best to know which locale you are actually
>>> targeting, so that I can ensure everything is set up properly.
>>>
>>> Regards,
>>> Jason
>>>
>>>
>>> On Mon, May 2, 2016, 17:27 Anilkumar Kodi 
>>> wrote:
>>>
>>>> Hi Jason,
>>>>
>>>> Getting below error when trying to register to translation server
>>>>
>>>> Server Error
>>>>
>>>> *An error has occurred. Thank you for your patience.*
>>>>
>>>> *(435, '4.7.8 Error: authentication failed:')*
>>>>
>>>>
>>>> We would like to translate to all the languages that what dhis2
>>>> supports.
>>>> Could you help us to know how to translate.
>>>>
>>>>
>>>> Thanks,
>>>> Anil Kumar
>>>>
>>>>
>>>> On Mon, May 2, 2016 at 7:53 PM, Jason Pickering <
>>>> jason.p.picker...@gmail.com> wrote:
>>>>
>>>>> Hi Anil,
>>>>> Sorry about that.  What is the error and which language are you
>>>>> interested in translating to?
>>>>>
>>>>> Regards,
>>>>> Jason
>>>>>
>>>>> On Mon, May 2, 2016, 16:20 Anilkumar Kodi 
>>>>> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I am trying to register for *DHIS 2 translation server *(
>>>>>> http://translate.dhis2.net/accounts/register) but i am unable to
>>>>>> create an account, Getting Server error
>>>>>> Could you help me to create an account.
>>>>>>
>>>>>>
>>>>>>
>>>>>> [image: Inline image 1]
>>>>>>
>>>>>>
>>>>>> Thanks,
>>>>>> Anil Kumar Kodi.
>>>>>> +917660010617
>>>>>> ___
>>>>>> 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
>>>>>>
>>>>>
>>>>
>>
>>
>> --
>> Jason P. Pickering
>> email: jason.p.picker...@gmail.com
>> tel:+46764147049
>>
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] WebAPI: Calculating indicator SUM/AVG for Quarters in a previous year

2016-05-09 Thread Jason Pickering
Hi Greg,
I do not think this particular period exists.

You have six-monthly periods, but they are defined as Jan-Jun (Q1 + Q2)
 and July-December (Q3 + Q4)


which is not what you want.

I do not think this is currently possible.

Regards,
Jason



​

On Mon, May 9, 2016 at 2:02 PM, Greg Rowles  wrote:

> Sorry, I should have been clearer. I mean to collapse the period dimension
> and calculate the average or sum depending on the indicator type...
>
> On Mon, May 9, 2016 at 1:49 PM, Greg Rowles  wrote:
>
>> Dear Devs
>>
>> Is there a way to call the analytics API so that it calculates an
>> indicator value for 2 quarters in a previous year? E.g. I want the average
>> indicator score for an indicator but from Q2 + Q3 of 2015 and not the
>> individual quarterly values but the combined average for that period
>> range...
>>
>> Kind Regards,
>> Greg
>>
>> --
>> *Health Information Systems Program - South Africa*
>> *- - - - - - - **- - - - - - - **- - - - - - - **- - - - - - - **- - - -
>> - *
>> Mobile  :073 246 2992
>> Landline:   021 851 2216
>> Skype:  gregory_rowles
>>
>
>
>
> --
> *Health Information Systems Program - South Africa*
> *- - - - - - - **- - - - - - - **- - - - - - - **- - - - - - - **- - - -
> - *
> Mobile  :073 246 2992
> Landline:   021 851 2216
> Skype:  gregory_rowles
>
> ___
> 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
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] WebAPI: Calculating indicator SUM/AVG for Quarters in a previous year

2016-05-12 Thread Jason Pickering
Hi Lars,

I have been thinking about this a bit more. Isn't this already possible
actually by specifying the two quarters and then using the period dimension
as a filter?

Like below:

https://play.dhis2.org/demo/api/analytics.json?dimension=dx:fbfJHSPpUQD;Uvn6LCg7dVU&dimension=ou:ImspTQPwCqd&filter=pe:2015Q2;2015Q3&displayProperty=NAME&skipMeta=true

[image: Inline image 1]

The ANC1 data element does what its supposed to I think, but the indicator
does not.

I would expect from this
[image: Inline image 2]

That we would get 138,518/((487,902/2)/12*6)=113.6%,

The population should be averaged and then annualized, while the numerator
should be summed.

Is this a bug then? It seems like something which should be supported
actually, as it is a fairly common use case to be able to filter over the
last X number of weeks, days, or months and calculate a coverage rate.

Regards,
Jason



On Mon, May 9, 2016 at 8:53 PM, Lars Helge Øverland  wrote:

> Hi Greg,
>
> no - not possible at the moment, sorry. You will have to do the final
> calculation client-side.
>
> regards,
>
> Lars
>
>
> On Mon, May 9, 2016 at 2:13 PM, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
>> Hi Greg,
>> I do not think this particular period exists.
>>
>> You have six-monthly periods, but they are defined as Jan-Jun (Q1 + Q2)
>>  and July-December (Q3 + Q4)
>>
>>
>> which is not what you want.
>>
>> I do not think this is currently possible.
>>
>> Regards,
>> Jason
>>
>>
>>
>> ​
>>
>> On Mon, May 9, 2016 at 2:02 PM, Greg Rowles 
>> wrote:
>>
>>> Sorry, I should have been clearer. I mean to collapse the period
>>> dimension and calculate the average or sum depending on the indicator
>>> type...
>>>
>>> On Mon, May 9, 2016 at 1:49 PM, Greg Rowles 
>>> wrote:
>>>
>>>> Dear Devs
>>>>
>>>> Is there a way to call the analytics API so that it calculates an
>>>> indicator value for 2 quarters in a previous year? E.g. I want the average
>>>> indicator score for an indicator but from Q2 + Q3 of 2015 and not the
>>>> individual quarterly values but the combined average for that period
>>>> range...
>>>>
>>>> Kind Regards,
>>>> Greg
>>>>
>>>> --
>>>> *Health Information Systems Program - South Africa*
>>>> *- - - - - - - **- - - - - - - **- - - - - - - **- - - - - - - **- - -
>>>> - - *
>>>> Mobile  :073 246 2992
>>>> Landline:   021 851 2216
>>>> Skype:  gregory_rowles
>>>>
>>>
>>>
>>>
>>> --
>>> *Health Information Systems Program - South Africa*
>>> *- - - - - - - **- - - - - - - **- - - - - - - **- - - - - - - **- - -
>>> - - *
>>> Mobile  :073 246 2992
>>> Landline:   021 851 2216
>>> Skype:  gregory_rowles
>>>
>>> ___
>>> 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
>>>
>>>
>>
>>
>> --
>> Jason P. Pickering
>> email: jason.p.picker...@gmail.com
>> tel:+46764147049
>>
>> ___
>> 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
>>
>>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> l...@dhis2.org
> http://www.dhis2.org <https://www.dhis2.org/>
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] [Bug 1579300] Re: validation rule left side update

2016-05-12 Thread Jason Pickering
Hi Ken,
I just backported this one to 2.23 as well.

Regards,
Jason


On Thu, May 12, 2016 at 10:30 AM, Ken Haase  wrote:

> Fixed on the trunk with revision 23045
> (http://bazaar.launchpad.net/~dhis2-devs-
> core/dhis2/trunk/revision/23045).  Apologies.  Should probably be
> applied to 2.23.
>
> --
> You received this bug notification because you are a member of DHIS 2
> developers, which is subscribed to DHIS.
> https://bugs.launchpad.net/bugs/1579300
>
> Title:
>   validation rule left side update
>
> Status in DHIS:
>   New
>
> Bug description:
>   When update the left side element of validation rule to 'never skip'
>   and save it. The left side element automatically equal to right side
>   element, and after that none of elements' expression can be changed
>   any more.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/dhis2/+bug/1579300/+subscriptions
>
> ___
> 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
>



-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Unable to see French translation for 'Program' and 'Options' under Event Capture

2016-05-12 Thread Jason Pickering
Hi Dipali,
Can you reproduce in the demo site. It seems to work for me.

Regards,
Jason


​

On Thu, May 12, 2016, 17:21 Dipali Sahu  wrote:

> Hi
>
> I translated the Program and Options (for option sets) in French and I can
> see the translation saved.
> However, when I go to Event Capture, and try to enter data, the Program
> name shows in English and not French. Similar issue for Option sets.
>
> How do I get the translated program names and options on the UI.
>
> Thank you
> Deepali Sahu
>
> ___
> 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] Unable to see French translation for 'Program' and 'Options' under Event Capture

2016-05-12 Thread Jason Pickering
Sorry, maybe I did not understand. Do you mean the UI translations are not
showing, or the translations which you have made to the other metadata
elements like "Program" and "Option sets"?

Regards,
Jason


On Thu, May 12, 2016 at 5:16 PM, Dipali Sahu  wrote:

> Hi
>
> I translated the Program and Options (for option sets) in French and I can
> see the translation saved.
> However, when I go to Event Capture, and try to enter data, the Program
> name shows in English and not French. Similar issue for Option sets.
>
> How do I get the translated program names and options on the UI.
>
> Thank you
> Deepali Sahu
>
>
> ___
> 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
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Unable to see French translation for 'Program' and 'Options' under Event Capture

2016-05-12 Thread Jason Pickering
This looks like a bug/unimplemented feature in the app.  I think the devs
will need to comment on this.

Regards,
Jason

On Thu, May 12, 2016, 18:51 Dipali Sahu  wrote:

> Hi, here is screenshot, So I have translated the name of the Program that
> I am using to enter data in French. I have both UI and DB languages turned
> to French. While entering data under Event Capture, the name of the
>  program and all options (under option sets)shows in English and not
> french. Whereas, under Programs app, the name of the program can be seen in
> French. Is there something I am missing. I am using DHIS 2.21
>
> [image: Inline image 1]
>
> On Thu, May 12, 2016 at 3:58 PM, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
>> Sorry, maybe I did not understand. Do you mean the UI translations are
>> not showing, or the translations which you have made to the other metadata
>> elements like "Program" and "Option sets"?
>>
>> Regards,
>> Jason
>>
>>
>> On Thu, May 12, 2016 at 5:16 PM, Dipali Sahu 
>> wrote:
>>
>>> Hi
>>>
>>> I translated the Program and Options (for option sets) in French and I
>>> can see the translation saved.
>>> However, when I go to Event Capture, and try to enter data, the Program
>>> name shows in English and not French. Similar issue for Option sets.
>>>
>>> How do I get the translated program names and options on the UI.
>>>
>>> Thank you
>>> Deepali Sahu
>>>
>>>
>>> ___
>>> 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
>>>
>>>
>>
>>
>> --
>> Jason P. Pickering
>> email: jason.p.picker...@gmail.com
>> tel:+46764147049
>>
>
>
___
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] Unable to see French translation for 'Program' and 'Options' under Event Capture

2016-05-12 Thread Jason Pickering
Hi Dipali,

I think the translation part itself works. What does not work is actually
displaying the translations in the Event Capture app itself.

Could you file a bug report at https://bugs.launchpad.net/dhis2?

Regards,
Jason


On Thu, May 12, 2016 at 7:03 PM, Dipali Sahu  wrote:

> Thanks , and how about Options (option sets). Do they work with
> translation?
>
> On Thu, May 12, 2016 at 4:55 PM, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
>> This looks like a bug/unimplemented feature in the app.  I think the devs
>> will need to comment on this.
>>
>> Regards,
>> Jason
>>
>> On Thu, May 12, 2016, 18:51 Dipali Sahu  wrote:
>>
>>> Hi, here is screenshot, So I have translated the name of the Program
>>> that I am using to enter data in French. I have both UI and DB languages
>>> turned to French. While entering data under Event Capture, the name of the
>>>  program and all options (under option sets)shows in English and not
>>> french. Whereas, under Programs app, the name of the program can be seen in
>>> French. Is there something I am missing. I am using DHIS 2.21
>>>
>>> [image: Inline image 1]
>>>
>>> On Thu, May 12, 2016 at 3:58 PM, Jason Pickering <
>>> jason.p.picker...@gmail.com> wrote:
>>>
>>>> Sorry, maybe I did not understand. Do you mean the UI translations are
>>>> not showing, or the translations which you have made to the other metadata
>>>> elements like "Program" and "Option sets"?
>>>>
>>>> Regards,
>>>> Jason
>>>>
>>>>
>>>> On Thu, May 12, 2016 at 5:16 PM, Dipali Sahu 
>>>> wrote:
>>>>
>>>>> Hi
>>>>>
>>>>> I translated the Program and Options (for option sets) in French and I
>>>>> can see the translation saved.
>>>>> However, when I go to Event Capture, and try to enter data, the
>>>>> Program name shows in English and not French. Similar issue for Option 
>>>>> sets.
>>>>>
>>>>> How do I get the translated program names and options on the UI.
>>>>>
>>>>> Thank you
>>>>> Deepali Sahu
>>>>>
>>>>>
>>>>> ___
>>>>> 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
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Jason P. Pickering
>>>> email: jason.p.picker...@gmail.com
>>>> tel:+46764147049
>>>>
>>>
>>>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Facility layer icons not appearing on the org unit group edit interface

2016-05-16 Thread Jason Pickering
Hi Sergio,

This looks like a bug to me or possibly a configuration issue with the
server itself.

[image: Inline image 1]

Those are the images it cannot find.

Regards,
Jason


On Mon, May 16, 2016 at 1:57 PM, Sergio Valenzuela <
sergio.valenzu...@ehas.org> wrote:

> Hello devs,
>
> I attached a screen I made related with the problem of the Facility layer
> icons. Please, tell me if I should create a bug on the "Report a bug"
> section in the Launchpad.
>
> Thanks.
>
> 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, 28040
> Madrid - España
> Tlfno. (+34) 91 488 87 41: (+34) 687 67 17 62
>
>
>
> 2016-05-09 10:20 GMT+02:00 Sergio Valenzuela :
>
>> Hello all devs,
>>
>> We are trying to configure the facility layer on GIS app, but when we
>> want to choose an icon on the *org unit group edit interface*, we
>> realized the icons are not loading.
>> We saw the same behaviour on demo server. but in this case at least the
>> icon is loading on the map when you configure the facility layer on the GIS
>> app (on our instance icons don't load in any case).
>> We are using DHIS2 version 2.23 and Build 22882.
>>
>> Please, check this out.
>>
>> Best 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, 28040
>> Madrid - España
>> Tlfno. (+34) 91 488 87 41: (+34) 687 67 17 62
>>
>>
>>
>
> ___
> 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
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Facility layer icons not appearing on the org unit group edit interface

2016-05-16 Thread Jason Pickering
Would you mind to file an issue here?

https://github.com/dhis2/maintenance-app/issues

Regards,
Jason


On Mon, May 16, 2016 at 2:14 PM, Sergio Valenzuela <
sergio.valenzu...@ehas.org> wrote:

> So confirmed by Knut then.
>
>
>
> *Sergio Valenzuela*
> Fundación EHAS
> Telemedicina para países en desarrollo -* www.ehas.org
> <http://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-05-16 14:14 GMT+02:00 Sergio Valenzuela :
>
>> It happens not only with demo/dev servers but with every DHIS2 instance
>> we've tried.
>>
>> So I guess this is a bug.
>>
>> I'll report it like this.
>>
>> Thanks for your reply Jason.
>>
>>
>> *Sergio Valenzuela*
>> Fundación EHAS
>> Telemedicina para países en desarrollo -* www.ehas.org
>> <http://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-05-16 14:08 GMT+02:00 Jason Pickering :
>>
>>> Hi Sergio,
>>>
>>> This looks like a bug to me or possibly a configuration issue with the
>>> server itself.
>>>
>>> [image: Inline image 1]
>>>
>>> Those are the images it cannot find.
>>>
>>> Regards,
>>> Jason
>>>
>>>
>>> On Mon, May 16, 2016 at 1:57 PM, Sergio Valenzuela <
>>> sergio.valenzu...@ehas.org> wrote:
>>>
>>>> Hello devs,
>>>>
>>>> I attached a screen I made related with the problem of the Facility
>>>> layer icons. Please, tell me if I should create a bug on the "Report a bug"
>>>> section in the Launchpad.
>>>>
>>>> Thanks.
>>>>
>>>> Regards.
>>>>
>>>>
>>>> *Sergio Valenzuela*
>>>> Fundación EHAS
>>>> Telemedicina para países en desarrollo -* www.ehas.org
>>>> <http://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-05-09 10:20 GMT+02:00 Sergio Valenzuela <
>>>> sergio.valenzu...@ehas.org>:
>>>>
>>>>> Hello all devs,
>>>>>
>>>>> We are trying to configure the facility layer on GIS app, but when we
>>>>> want to choose an icon on the *org unit group edit interface*, we
>>>>> realized the icons are not loading.
>>>>> We saw the same behaviour on demo server. but in this case at least
>>>>> the icon is loading on the map when you configure the facility layer on 
>>>>> the
>>>>> GIS app (on our instance icons don't load in any case).
>>>>> We are using DHIS2 version 2.23 and Build 22882.
>>>>>
>>>>> Please, check this out.
>>>>>
>>>>> Best Regards.
>>>>>
>>>>>
>>>>> *Sergio Valenzuela*
>>>>> Fundación EHAS
>>>>> Telemedicina para países en desarrollo -* www.ehas.org
>>>>> <http://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
>>>>>
>>>>>
>>>>>
>>>>
>>>> ___
>>>> 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
>>>>
>>>>
>>>
>>>
>>> --
>>> Jason P. Pickering
>>> email: jason.p.picker...@gmail.com
>>> tel:+46764147049
>>>
>>
>>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Facility layer icons not appearing on the org unit group edit interface

2016-05-16 Thread Jason Pickering
Its better if you can put it in the app's issue pages instead, as that is
the main repo for this app.

Regards,
Jason


On Mon, May 16, 2016 at 2:22 PM, Sergio Valenzuela <
sergio.valenzu...@ehas.org> wrote:

> No problem. I'll do it.
> Should I create a bug report here
> https://bugs.launchpad.net/dhis2/+filebug besides the issue you told me?
>
>
> *Sergio Valenzuela*
> Fundación EHAS
> Telemedicina para países en desarrollo -* www.ehas.org
> <http://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-05-16 14:20 GMT+02:00 Jason Pickering :
>
>> Would you mind to file an issue here?
>>
>> https://github.com/dhis2/maintenance-app/issues
>>
>> Regards,
>> Jason
>>
>>
>> On Mon, May 16, 2016 at 2:14 PM, Sergio Valenzuela <
>> sergio.valenzu...@ehas.org> wrote:
>>
>>> So confirmed by Knut then.
>>>
>>>
>>>
>>> *Sergio Valenzuela*
>>> Fundación EHAS
>>> Telemedicina para países en desarrollo -* www.ehas.org
>>> <http://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-05-16 14:14 GMT+02:00 Sergio Valenzuela >> >:
>>>
>>>> It happens not only with demo/dev servers but with every DHIS2 instance
>>>> we've tried.
>>>>
>>>> So I guess this is a bug.
>>>>
>>>> I'll report it like this.
>>>>
>>>> Thanks for your reply Jason.
>>>>
>>>>
>>>> *Sergio Valenzuela*
>>>> Fundación EHAS
>>>> Telemedicina para países en desarrollo -* www.ehas.org
>>>> <http://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-05-16 14:08 GMT+02:00 Jason Pickering >>> >:
>>>>
>>>>> Hi Sergio,
>>>>>
>>>>> This looks like a bug to me or possibly a configuration issue with the
>>>>> server itself.
>>>>>
>>>>> [image: Inline image 1]
>>>>>
>>>>> Those are the images it cannot find.
>>>>>
>>>>> Regards,
>>>>> Jason
>>>>>
>>>>>
>>>>> On Mon, May 16, 2016 at 1:57 PM, Sergio Valenzuela <
>>>>> sergio.valenzu...@ehas.org> wrote:
>>>>>
>>>>>> Hello devs,
>>>>>>
>>>>>> I attached a screen I made related with the problem of the Facility
>>>>>> layer icons. Please, tell me if I should create a bug on the "Report a 
>>>>>> bug"
>>>>>> section in the Launchpad.
>>>>>>
>>>>>> Thanks.
>>>>>>
>>>>>> Regards.
>>>>>>
>>>>>>
>>>>>> *Sergio Valenzuela*
>>>>>> Fundación EHAS
>>>>>> Telemedicina para países en desarrollo -* www.ehas.org
>>>>>> <http://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-05-09 10:20 GMT+02:00 Sergio Valenzuela <
>>>>>> sergio.valenzu...@ehas.org>:
>>>>>>
>>>>>>> Hello all devs,
>>>>>>>
>>>>>>> We are trying to configure the facility layer on GIS app, but when
>>>>>>> we want to choose an icon on the *org unit group edit interface*,
>>>>>>> we realized the icons are not loading.
>>>>>>> We saw the same behaviour on demo server. but in this case at least
>>>>>>> the icon is loading on the map when you configure the facility layer on 
>>>>>>> the
>>>>>>> GIS app (on our instance icons don't load in any case).
>>>>>>> We are using DHIS2 version 2.23 and Build 22882.
>>>>>>>
>>>>>>> Please, check this out.
>>>>>>>
>>>>>>> Best Regards.
>>>>>>>
>>>>>>>
>>>>>>> *Sergio Valenzuela*
>>>>>>> Fundación EHAS
>>>>>>> Telemedicina para países en desarrollo -* www.ehas.org
>>>>>>> <http://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
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> ___
>>>>>> 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
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Jason P. Pickering
>>>>> email: jason.p.picker...@gmail.com
>>>>> tel:+46764147049
>>>>>
>>>>
>>>>
>>>
>>
>>
>> --
>> Jason P. Pickering
>> email: jason.p.picker...@gmail.com
>> tel:+46764147049
>>
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] [Bug 1582637] [NEW] DHIS NOT DISPLAYED ON BROWSER WHEN DATA IS RESTORED TO POSTGRESQL

2016-05-17 Thread Jason Pickering
Maybe you need to run analytics?

http://dhis2.github.io/dhis2-docs/master/en/user/html/ch34.html

On Tue, May 17, 2016 at 12:07 PM, Mohamed Bangura 
wrote:

> Public bug reported:
>
> Hello all,
>
> I have tried to install DHIS in both ubuntu and windows on a local
> server,but as soon as i restore the database from our remote server to
> postgresql,the browser stops displaying the DHIS homepage.Everything
> works fine except the DHIS  which is not displayed and this only happens
> when the database is restored.
>
> Waiting for your help.
>
> ** Affects: dhis2
>  Importance: Undecided
>  Status: New
>
> --
> You received this bug notification because you are a member of DHIS 2
> developers, which is subscribed to DHIS.
> https://bugs.launchpad.net/bugs/1582637
>
> Title:
>   DHIS NOT DISPLAYED ON BROWSER WHEN DATA IS RESTORED TO POSTGRESQL
>
> Status in DHIS:
>   New
>
> Bug description:
>   Hello all,
>
>   I have tried to install DHIS in both ubuntu and windows on a local
>   server,but as soon as i restore the database from our remote server to
>   postgresql,the browser stops displaying the DHIS homepage.Everything
>   works fine except the DHIS  which is not displayed and this only
>   happens when the database is restored.
>
>   Waiting for your help.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/dhis2/+bug/1582637/+subscriptions
>
> ___
> 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
>



-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Translation Server down

2016-05-23 Thread Jason Pickering
Hi there,
Sorry about that. I did not put in the correct redirect. I will fix it, but
please use

https://translate.dhis2.org/

Best regards,
Jason


On Mon, May 23, 2016 at 11:05 AM, Sergio Valenzuela <
sergio.valenzu...@ehas.org> wrote:

> Hello devs,
>
> I am trying to access to the translation server:
> http://translate.dhis2.net/,but apparently is down (I attached an image
> captured from my browser), just in case you didn't know about it.
>
> 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, 28040
> Madrid - España
> Tlfno. (+34) 91 488 87 41: (+34) 687 67 17 62
>
>
>
> ___
> 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
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Capture coordinates

2016-05-23 Thread Jason Pickering
Hi there,
We have added a new data value type called "Coordinates". This will allow
you to record coordinates just a normal data value. Is this what you are
looking for?

Regards,
Jason


On Mon, May 23, 2016 at 10:43 AM, Sergio Valenzuela <
sergio.valenzu...@ehas.org> wrote:

> Hello all,
>
> Just to be sure and related to this topic, is there any way to capture *event
> coordinates* in a default way? I mean, is it possible to assign
> coordinates from an org unit to the events which are being captured in this
> org unit in an automatic way? For the moment, we have to introduce them
> manually with each event we register on one of our programs in order to
> make these events visible on GIS app.
>
> I think this is not offtopic, but tell me if it is.
>
> Thanks!!
>
>
> *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-05-21 18:12 GMT+02:00 Calle Hedberg :
>
>> Hi,
>>
>> Easiest method if you are talking about POINT co-ordinates (e.g. health
>> facilities):
>>
>> 1. Create a comma-delimited list with facility name (exactly as in the
>> DHIS), Latitude and Longitude. Coordinates must be ISO standard using datum
>> WGS-84 (the same datum used by all Global Navigation Systems like GPS, and
>> used by all modern maps).
>>
>> 2. For point co-ordinates, DHIS supports six decimals (equivalent to
>> around 10cm precision) - that is the standard number of decimal for point
>> data in most systems.
>>
>> 3. Whether you create the comma-delimited file in Excel, a text editor
>> etc does not matter - use what's convenient for you. Make sure the facility
>> name column is called "NAME"
>>
>> 4. There is no need to generalise point coordinates the same way you
>> might do it for high-precision line or polygon (area) features, so when you
>> are ready with the file either convert it to GML format using the
>> (cumbersome) method described in the DHIS2 manual, OR import it into a GIS
>> package like QGIS.
>>
>> 5. After creating the GML file, import it. Any mis-spelled name will show
>> up during the import as having failed.
>>
>> regards
>> Calle
>>
>>
>>
>> 2016-05-20 15:35 GMT+02:00 papa alioune Sokhna :
>>
>>> Hi everybody,
>>> how to captures coordinate in DHIS2.
>>> --
>>> Papa Alioune SOKHNA
>>> *Informaticien *
>>> Spécialité: développement d'application web, mobile et logiciels surs
>>> Tel: +221 77 442 16 22
>>>
>>> ___
>>> 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
>>>
>>>
>>
>>
>> --
>>
>> ***
>>
>> 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-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Capture coordinates

2016-05-23 Thread Jason Pickering
Hi Sergio,

I think this is configurable.

[image: Inline image 1]

If you do not want to capture the coordinates of each event, you do not
need to.

So for events which always have the same coordinates as the facility, it
would seem that you would not need this. In certain use cases (others can
describe more I think), the event may be registered at the facility, but
actually took place some place different, such as in the community.

Regards,
Jason


On Mon, May 23, 2016 at 11:32 AM, Sergio Valenzuela <
sergio.valenzu...@ehas.org> wrote:

> Hi Jason,
>
> What I am asking for is a little bit different (I don't know if this is
> possible), I'll try to explain myself:
>
> Let's say we are in Sierra Leone at the Ngelehun CHC. We are capturing
> data in the "Inpatient morbidity and mortality program".
> Currently, every new event registration requires us to introduce the
> coordinates of Ngelehun CHC manually, so my question is: Is there any way
> to automatize this? (The event coordinates we have to introduce every time
> for each event are the same as Ngelehun CHC coordinates)
>
> I hope my question is more clear now.
>
> Regards.
>
>
> *Sergio Valenzuela*
> Fundación EHAS
> Telemedicina para países en desarrollo -* www.ehas.org
> <http://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-05-23 11:14 GMT+02:00 Jason Pickering :
>
>> Hi there,
>> We have added a new data value type called "Coordinates". This will allow
>> you to record coordinates just a normal data value. Is this what you are
>> looking for?
>>
>> Regards,
>> Jason
>>
>>
>> On Mon, May 23, 2016 at 10:43 AM, Sergio Valenzuela <
>> sergio.valenzu...@ehas.org> wrote:
>>
>>> Hello all,
>>>
>>> Just to be sure and related to this topic, is there any way to capture 
>>> *event
>>> coordinates* in a default way? I mean, is it possible to assign
>>> coordinates from an org unit to the events which are being captured in this
>>> org unit in an automatic way? For the moment, we have to introduce them
>>> manually with each event we register on one of our programs in order to
>>> make these events visible on GIS app.
>>>
>>> I think this is not offtopic, but tell me if it is.
>>>
>>> Thanks!!
>>>
>>>
>>> *Sergio Valenzuela*
>>> Fundación EHAS
>>> Telemedicina para países en desarrollo -* www.ehas.org
>>> <http://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-05-21 18:12 GMT+02:00 Calle Hedberg :
>>>
>>>> Hi,
>>>>
>>>> Easiest method if you are talking about POINT co-ordinates (e.g. health
>>>> facilities):
>>>>
>>>> 1. Create a comma-delimited list with facility name (exactly as in the
>>>> DHIS), Latitude and Longitude. Coordinates must be ISO standard using datum
>>>> WGS-84 (the same datum used by all Global Navigation Systems like GPS, and
>>>> used by all modern maps).
>>>>
>>>> 2. For point co-ordinates, DHIS supports six decimals (equivalent to
>>>> around 10cm precision) - that is the standard number of decimal for point
>>>> data in most systems.
>>>>
>>>> 3. Whether you create the comma-delimited file in Excel, a text editor
>>>> etc does not matter - use what's convenient for you. Make sure the facility
>>>> name column is called "NAME"
>>>>
>>>> 4. There is no need to generalise point coordinates the same way you
>>>> might do it for high-precision line or polygon (area) features, so when you
>>>> are ready with the file either convert it to GML format using the
>>>> (cumbersome) method described in the DHIS2 manual, OR import it into a GIS
>>>> package like QGIS.
>>>>
>>>> 5. After creating the GML file, import it. Any mis-spelled name will
>>>> show up during the import as having failed.
>>>>
>>>> regards
>>>> Calle
>>>>
>>>>
>>>>
>>>> 2016-05-20 15:35 GMT+02:00 papa alioune Sokhna :
>>>>
>>>>> Hi everybody,
>>>>> how to captures coordinate in DHIS2.
>>>>> --
>>>>>

Re: [Dhis2-devs] Facility coordinates as default for event coordinates

2016-05-23 Thread Jason Pickering
Hi Sergio (again),
I guess I am missing the point of registering the coordinates at all. If
they all occur at the same place, why do you even ask the clerks to record
them? They all are considered to be at the same location, and you already
have that location from the organisation unit's coordinates.

The event layer is supposed to be used for events which occur at undefined
locations really. Using the new features of clustering, you can then
cluster these events together, but in your case, they seem to all be
considered to be occurring at the same place. You should thus be able to
achieve the same simply by using the facility's coordinates.

Maybe give a bit more information of why you chose to collect the
coordinates in the first place and how you are planning on actually using
them for analysis?

Regards,
Jason


On Mon, May 23, 2016 at 12:18 PM, Sergio Valenzuela <
sergio.valenzu...@ehas.org> wrote:

> Hi devs,
>
> Using *GIS app* you need to have coordinates on each event most of the
> time in order to use* Thematic Layer and/or Event Layer* on maps and in
> the case we consider all the events take place at the facility where the
> events get registered, It would be helpful for the clerks who introduce the
> events data into the system to not have to introduce the same coordinates
> over and over for each patient they register. So my question is, is there
> any way (maybe using custom forms??) to make the facility coordinates as a
> default value for the event coordinates?
>
> Any suggestion to achieve this will be appreciated.
>
> 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, 28040
> Madrid - España
> Tlfno. (+34) 91 488 87 41: (+34) 687 67 17 62
>
>
>
> ___
> 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
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] No new OrganisationUnitGroupSets are being rendered in the "new Org. Unit" screen

2016-05-23 Thread Jason Pickering
Pretty sure you need to enable this in the applications settings to allow
this to happen.

[image: Inline image 1]



On Mon, May 23, 2016 at 7:11 PM, Jose Garcia Muñoz 
wrote:

>
> Hi devs,
>
> it seems that, at least in 2.22, new org. unit group sets created are not
> being rendered during the creation of org. units, even if they are
> Compulsory and has the DataDimenstion field = 'Yes'. I'm not sure, but I
> think that in the previous version, this behaviuor was also configured
> under the 'General Settings' menu. But, in 2.22, I can not see where that
> option is anymore.
>
> Any help on this?
>
> Many thanks
> Jose
>
> ___
> 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
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Problem creating the parent org unit through the API

2016-05-25 Thread Jason Pickering
Hi Sergio,
The easier way to do this is to generate the UID prior to importing
everything. You can do this pretty easily with the system with the
following command

https://play.dhis2.org/demo/api/system/uid?limit=3

Or they can be generated externally pretty easily. Here is some R code ,
but I am sure there are ways to do this in other languages as well.

generateUID<-function(codeSize=11){
  #Generate a random seed
  runif(1)
  allowedLetters<-c(LETTERS,letters)
  allowedChars<-c(LETTERS,letters,0:9)
  #First character must be a letter according to the DHIS2 spec
  firstChar<-sample(allowedLetters,1)
  otherChars<-sample(allowedChars,codeSize-1)

uid<-paste(c(firstChar,paste(otherChars,sep="",collapse="")),sep="",collapse="")
  return(uid)}

The last option is to post these level by level and get the UID which was
generated for the orgunit. The tricky part may be to get the first parent
ID, but once you have that, it should be pretty easy.

>From my experience however, generating these prior to importing them is
much easier and will allow you to edit things for instance, in your GIS
software and then import them into DHIS2.

Regards,
Jason


On Wed, May 25, 2016 at 1:54 PM, Sergio Valenzuela <
sergio.valenzu...@ehas.org> wrote:

> Thanks Morten, yes, we were trying to create a new root and we were
> missing that step.
>
> My question now is: In the "parent" object included in
> "organisationUnits", is it possible to swap the attribute "id" to "name"
> (or something you know when you are creating the parents)? Otherwise, how
> can be done the import of a whole org unit hierarchy (in a single json)
> when you don't know the "id" of the "parents"?
>
> I attached an image pointing the part of the json I'm talking about.
>
>
>
> *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-05-25 13:13 GMT+02:00 Morten Olav Hansen :
>
>> Hi Sergio
>>
>> So you are creating a new root? Could it be that your user is attached to
>> a different org unit, and so the problem is that you can't see them?
>>
>> Maybe you could verify in the database, or using the web-api?
>> /api/organisationUnits.json?filter=name:like:abc
>>
>> --
>> Morten Olav Hansen
>> Senior Engineer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org
>>
>> On Wed, May 25, 2016 at 6:06 PM, Sergio Valenzuela <
>> sergio.valenzu...@ehas.org> wrote:
>>
>>> Hello devs,
>>>
>>> We are trying to create a whole org unit hierarchy through the new API
>>> resource /api/23/metadata .
>>> During the process, we realized there should be some kind of problem
>>> when we tried to create the parent org unit (the parent of the whole
>>> hierarchy), because even If the answer from the server is 200 OK once we
>>> sent the POST and with a GET we can verify that the org units are created
>>> successfully, no org units are appearing on Maintenance App. We are using
>>> the same version and build as in demo server (version 2.23 and build
>>> 22969).
>>> We tried the same in demo server with the same result.
>>>
>>> I attached our JSON and the url we were doing the POST request:
>>>
>>>- https://play.dhis2.org/demo/api/23/metadata
>>>
>>> 
>>>
>>> Besides, we tried to create the parent org unit of the whole hierarchy
>>> through the Maintenance interface with the same result. Apparently, it is
>>> created but not shown after on Maintenance App. (We made a GET to
>>> http://localhost:8080/api/metadata?assumeTrue=false&organisationUnits=true
>>> and we verified that the org unit was created)
>>>
>>> Tell me If I'm doing something wrong here or If this issue was already
>>> reported.
>>>
>>> Best 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, 28040
>>> Madrid - España
>>> Tlfno. (+34) 91 488 87 41: (+34) 687 67 17 62
>>>
>>>
>>>
>>> ___
>>> 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
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Un

[Dhis2-devs] Error when sending emails

2016-05-26 Thread Jason Pickering
Hi there.

We recently upgraded an instance to 2.22 and enabled encryption. Things
seem to start up correctly, but when attempting to send an email, we get
the following error.

Is this a configuration issue?

Regards,
Jason


* ERROR 2016-05-26 04:07:35,858 Unexpected error occurred invoking async
method 'public java.lang.String
org.hisp.dhis.message.EmailMessageSender.sendMessage(java.lang.String,java.lang.String,java.lang.String,org.hisp.dhis.user.User,java.
util.Set,boolean)'. (SimpleAsyncUncaughtExceptionHandler.java
[SimpleAsyncTaskExecutor-9611])
com.google.common.util.concurrent.UncheckedExecutionException:
org.jasypt.exceptions.EncryptionOperationNotPossibleException
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2207)
at com.google.common.cache.LocalCache.get(LocalCache.java:3953)
at
com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4790)
at
org.hisp.dhis.setting.DefaultSystemSettingManager.getSystemSetting(DefaultSystemSettingManager.java:187)
at sun.reflect.GeneratedMethodAccessor298.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201)
at com.sun.proxy.$Proxy91.getSystemSetting(Unknown Source)
at
org.hisp.dhis.message.EmailMessageSender.sendMessage(EmailMessageSender.java:106)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at
org.springframework.aop.interceptor.AsyncExecutionInterceptor$1.call(AsyncExecutionInterceptor.java:110)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.jasypt.exceptions.EncryptionOperationNotPossibleException
at
org.jasypt.encryption.pbe.StandardPBEByteEncryptor.decrypt(StandardPBEByteEncryptor.java:1055)
at
org.jasypt.encryption.pbe.StandardPBEStringEncryptor.decrypt(StandardPBEStringEncryptor.java:725)
at
org.jasypt.encryption.pbe.PooledPBEStringEncryptor.decrypt(PooledPBEStringEncryptor.java:498)
at
org.hisp.dhis.setting.DefaultSystemSettingManager.getSystemSettingOptional(DefaultSystemSettingManager.java:229)
at
org.hisp.dhis.setting.DefaultSystemSettingManager.lambda$getSystemSetting$1(DefaultSystemSettingManager.java:188)
at
com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4793)
at
com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3542)
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2323)
at
com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2286)
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2201)
... 20 more

-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] SQL View Doesn't work for comma seperated variables

2016-05-26 Thread Jason Pickering
Hi there.

This syntax is not supported as you can see from the documentation


*The variable parameter must contain alphanumeric characters only. The
variables must contain alphanumeric, dash, underscore and whitespace
characters only.*

This might be something which can added, but there could be an increased
risk of SQL injection attacks, which these restrictions are meant to try
and prevent to some extent.  Maybe the developers can say more about this.

Regards,
Jason


On Fri, May 27, 2016 at 8:14 AM, Priyanka Bawa 
wrote:

> This error comes in version 2.20.
>
> Regards
> Priyanka
>
> On Fri, May 27, 2016 at 11:36 AM, Priyanka Bawa  > wrote:
>
>> Hi
>> I am trying to create an SQLView where i am using a variable (
>> *populationFormSOU1).* The result of this variable is comma separated as
>> :-  shvnNIx,1biz5LW,BZuwzHr5,RP4CW,lYFre,n5z2VKrv,5Ut1oxMO,FJETOdBp,h7sbFDA
>>
>> SELECT COUNT(*) FROM completedatasetregistration WHERE sourceid IN
>> (populationFormSOU1='${*populationFormSOU1*}') AND datasetid = 52 AND
>> periodid = '${periodid}';
>>
>>
>> The result of above SQLView says that the variables are invalid [image:
>> Inline image 1]
>> Seems that the query doesn't take variables having any special character.
>> Any help will be appreciated.
>>
>> Regards
>> Priyanka
>>
>
>
> ___
> 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
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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 Documentation for Metadata Sync and Versioning

2016-06-06 Thread Jason Pickering
Hi Vanya,

Please have a look here

http://dhis2.github.io/dhis2-docs/2.22/en/implementer/html/apa.html

which describes in a fair amount of detail how to get started with the
documentation.

You can just submit a pull request through the GitHub repo.

Let us know if you need further information.

Regards,
Jason


On Mon, Jun 6, 2016 at 2:44 PM, Vanya Seth  wrote:

> Hi Devs
>
> We are now beginning to write documentation for the Metadata Sync and
> Versioning core features.
>
> What are the guidelines for doing this documentation? What tools/wiki are
> being used for documentation at DHIS. It would be good if you could point
> us to it.
>
> As we understand that there are 3 manuals
>
> - Developer guide
> - User guide
> - Implementor guide
>
> When we do the documentation are we targeting all these guides?
>
> Some key aspects that we believe are documentation worthy are:
>
> - The new API 's (versioning and sync).
> - The new task (Metadata sync task)
> - Metadata Versioning and Metadata Sync as a concept.
> - Best practices around the Metadata versioning setup.
> - Optimization of the initial setup of new field instances given the
> central-field deployment strategy
> - The changes to the existing "Settings" app [which is pretty much part of
> setting up the Synchronization settings and the ability to create new
> versions by enabling versioning ]
> - The changes to the "Data Administration" app where we can now also
> schedule the metadata sync at the time of choice.
>
> It would be good if you could help us get started.
>
> --
> With Regards
> Vanya
> ThoughtWorks Technologies
> Hyderabad
>
> --Stay Hungry Stay Foolish!!
>



-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Creation of CategoryOptionCombinations

2016-06-07 Thread Jason Pickering
Hi Uwe,

Are you importing this as aggregate data or as events?

Regards,
Jason


On Wed, Jun 8, 2016 at 2:27 AM, Morten Olav Hansen  wrote:

> Just to make sure, we are talking about the same thing: the problem does
>> not
>> appear during import, but when generating of all possible combinations
>> (when
>> saving the CategoryCombination or when manually evoking the update of
>> categoryOptionCombinations)
>>
>
> Ah, sorry.. I was thinking it was the import that was slow.. so that part
> is ok?
>
>
>> so I can still use /api/metadata without version to call the current
>> api-version?
>>
>
> That will give you the legacy importer, so going forward you would need to
> use /api/{version}/{endpoint}, we will have more
> info about it in the release notes.
>
> And no, the UI is not switched to new importer yet (in 2.24), not 100% it
> will...
>
>
>>
>> Thanks for your replies at this time of the day :-)
>>
>> Regards, Uwe
>>
>> ---
>>
>>
>> > Morten Olav Hansen  hat am 7. Juni 2016 um 19:28
>> > geschrieben:
>> >
>> >
>> > Hi Uwe
>> >
>> > The improvements are mainly for speed and validation. Yes, we are now
>> (in
>> > 2.24) introducing versioned web-api, so that endpoint importer will be
>> > available until 2.26 (we will support 3 versions). In 2.24, the same
>> > endpoint is available at /api/24/metadata.
>> >
>> > If you are using cURL, or another utility.. the import part would be the
>> > same, but the UI in 2.23 can not be used, as it's hardcoded to legacy
>> > importer.
>> >
>> > --
>> > Morten Olav Hansen
>> > Senior Engineer, DHIS 2
>> > University of Oslo
>> > http://www.dhis2.org
>> >
>> > On Tue, Jun 7, 2016 at 11:25 PM, Uwe Wahser  wrote:
>> >
>> > > Hi Morten,
>> > >
>> > > no, i didn't. What would be the procedure for that? Importing
>> Categories,
>> > > Options and CategoryCombinations via api and having DHIS2 generate the
>> > > CategoryOptionCombinations? Would that bring about any change at all
>> or
>> > > does the
>> > > importer use different libs for generating the COCs?
>> > >
>> > > btw. is the 23 in the api link valid for future dhis2 versions? I
>> noticed
>> > > it in
>> > > a few api descriptions recently ...
>> > >
>> > > Regards, Uwe
>> > >
>> > > > Morten Olav Hansen  hat am 7. Juni 2016 um 18:50
>> > > > geschrieben:
>> > > >
>> > > >
>> > > > Hi Uwe
>> > > >
>> > > > Did you try out new importer? Available as /api/23/metadata in 2.23
>> > > >
>> > > > On Tuesday, 7 June 2016, Uwe Wahser  wrote:
>> > > >
>> > > > > Dear devs,
>> > > > >
>> > > > > I am experiencing problems when handling category combinations.
>> Our
>> > > > > protoype
>> > > > > with 5 dimensions went through the process of generating
>> > > > > categoryOptionCombinations (~20.000 records) quite well. 7
>> dimensions
>> > > > > (~400.000)
>> > > > > worked as well, although it took a very long time.
>> > > > >
>> > > > > Now we defined the next datamodel with 10 dimensions (expecting
>> ~5Mio
>> > > > > categoryOptionCombinations) and the process dies without further
>> > > notice.
>> > > > > Last
>> > > > > words in catalina.out:
>> > > > > * INFO  2016-06-07 13:29:33,783 Building object-bridge maps
>> > > (preheatCache:
>> > > > > true,
>> > > > > 3 classes). (DefaultObjectBridge.java [http-bio-8180-exec-15])
>> > > > > * INFO  2016-06-07 13:29:36,779 Building object-bridge maps took
>> 2.99
>> > > > > seconds.
>> > > > > (DefaultObjectBridge.java [http-bio-8180-exec-15])
>> > > > > * INFO  2016-06-07 13:29:36,896 'admin' update
>> > > > > org.hisp.dhis.dataelement.DataElementCategoryCombo, name:
>> Membership,
>> > > uid:
>> > > > > SCgLXYHqVzz (AuditLogUtil.java [http-bio-8180-exec-15])
>> > > > >
>> > > > > Ten dimensions with not extraordinarily big option sets is
>> actually not
>> > > > > unusual
>> > > > > and rather slim for multi-dimensional data-models in data
>> warehouses,
>> > > so
>> > > > > I'd
>> > > > > expect DHIS2 to be able to handle this easily.
>> > > > >
>> > > > > Could of course be a memory problem (tried up to 14g for tomcat
>> on a
>> > > 4-core
>> > > > > Ubuntu 14.04 server, DHIS 2.23) Before I'll start experimenting
>> with
>> > > other
>> > > > > parameters, I am hoping to get some hints on known limitations or
>> > > > > workarounds
>> > > > > from you (not allowed: reducing the number of options or
>> categories,
>> > > > > sql-hacks
>> > > > > :-) ). Is there any info on whether optimizations on this process
>> are
>> > > being
>> > > > > planned in the kernel?
>> > > > >
>> > > > > Some observations on the process:
>> > > > >
>> > > > > * during generation (either when saving the categoryCombination
>> or in
>> > > the
>> > > > > data
>> > > > > maintenance menu):
>> > > > > - long names - cOCs are generated with generated names that are
>> getting
>> > > > > extremely long as they are mere concats of the involved
>> > > categoryOptions.
>> > > > > Could
>> > > > > there be an option to just use the codes as basis or to leave
>> away the
>> > > > > names
>> > > > > com

Re: [Dhis2-devs] [Dhis2-users] Creation of CategoryOptionCombinations

2016-06-08 Thread Jason Pickering
It just seems like if you have five million cat combos, you would need many
more orders of magnitudes of data to support them. If the data was imported
as events, instead of aggregate, you would not need to explicitly create
all of those dimensions, but could still create aggregate figures from
them.

It just feels like there is no way all of those cat combos are going to be
filled, unless you really have a TON of data.

Regards,
Jason



On Wed, Jun 8, 2016 at 2:36 PM, Uwe Wahser  wrote:

> Hi Jason,
>
> importing aggregate date into data-sets (see my reply to Lars yesterday
> evening:
> https://lists.launchpad.net/dhis2-users/msg10452.html)
>
> Again: the problem is not the import, but the combination of category
> options.
> Maybe it would already help a lot, if those bombastic strings for the names
> wouldn't be created for categoryOptionCombinations.
>
> Thanks for good ideas,
>
> Uwe
>
> ---
> > Jason Pickering  hat am 8. Juni 2016 um
> 09:09
> > geschrieben:
> >
> >
> > Hi Uwe,
> >
> > Are you importing this as aggregate data or as events?
> >
> > Regards,
> > Jason
> >
> >
> > On Wed, Jun 8, 2016 at 2:27 AM, Morten Olav Hansen 
> wrote:
> >
> > > Just to make sure, we are talking about the same thing: the problem
> does
> > >> not
> > >> appear during import, but when generating of all possible combinations
> > >> (when
> > >> saving the CategoryCombination or when manually evoking the update of
> > >> categoryOptionCombinations)
> > >>
> > >
> > > Ah, sorry.. I was thinking it was the import that was slow.. so that
> part
> > > is ok?
> > >
> > >
> > >> so I can still use /api/metadata without version to call the current
> > >> api-version?
> > >>
> > >
> > > That will give you the legacy importer, so going forward you would
> need to
> > > use /api/{version}/{endpoint}, we will have more
> > > info about it in the release notes.
> > >
> > > And no, the UI is not switched to new importer yet (in 2.24), not 100%
> it
> > > will...
> > >
> > >
> > >>
> > >> Thanks for your replies at this time of the day :-)
> > >>
> > >> Regards, Uwe
> > >>
> > >> ---
> > >>
> > >>
> > >> > Morten Olav Hansen  hat am 7. Juni 2016 um 19:28
> > >> > geschrieben:
> > >> >
> > >> >
> > >> > Hi Uwe
> > >> >
> > >> > The improvements are mainly for speed and validation. Yes, we are
> now
> > >> (in
> > >> > 2.24) introducing versioned web-api, so that endpoint importer will
> be
> > >> > available until 2.26 (we will support 3 versions). In 2.24, the same
> > >> > endpoint is available at /api/24/metadata.
> > >> >
> > >> > If you are using cURL, or another utility.. the import part would
> be the
> > >> > same, but the UI in 2.23 can not be used, as it's hardcoded to
> legacy
> > >> > importer.
> > >> >
> > >> > --
> > >> > Morten Olav Hansen
> > >> > Senior Engineer, DHIS 2
> > >> > University of Oslo
> > >> > http://www.dhis2.org
> > >> >
> > >> > On Tue, Jun 7, 2016 at 11:25 PM, Uwe Wahser  wrote:
> > >> >
> > >> > > Hi Morten,
> > >> > >
> > >> > > no, i didn't. What would be the procedure for that? Importing
> > >> Categories,
> > >> > > Options and CategoryCombinations via api and having DHIS2
> generate the
> > >> > > CategoryOptionCombinations? Would that bring about any change at
> all
> > >> or
> > >> > > does the
> > >> > > importer use different libs for generating the COCs?
> > >> > >
> > >> > > btw. is the 23 in the api link valid for future dhis2 versions? I
> > >> noticed
> > >> > > it in
> > >> > > a few api descriptions recently ...
> > >> > >
> > >> > > Regards, Uwe
> > >> > >
> > >> > > > Morten Olav Hansen  hat am 7. Juni 2016 um
> 18:50
> > >> > > > geschrieben:
> > >> > > >
> > >> > > >
> > >> > > > Hi Uwe
> > >> > > &

Re: [Dhis2-devs] User privileges

2016-06-08 Thread Jason Pickering
Hi Eric,

I tried to reproduce what you have reported on the demo site, but got this
error.

Organisation unit is not in the hierarchy of the current user: O6uvpzGd5pu

 I created a user called "test" with password "Password1" on
https://play.dhis2.org/demo/ and assigned their data capture unit to
Bombali. I was able to search for "Bo" and got the tree to appear, as you
stated, but ONLY after having logged in as the admin user, which will cache
this OU tree.  I suspect thus, it is a caching problem. When I tried with
an incognito mode browser, I was unable to see "Bo" at all.

For aggregate data, the "Data capture" orgunit should control the hierarchy
which is seen in the data entry screen. Tracker orgunits must be assigned
explicitly.

Could you provide a more detailed step-by-step of how you were able to
enter data, while using incognito mode to exclude caching effects?

Regards,
Jason


On Wed, Jun 8, 2016 at 12:39 PM, eric mourin  wrote:

> Hello devs,
>
>
> We have recently seen that the API endpoints do not limit the information
> that any user can
>
> access right now. Even if an user would not normally have access to
> certain programs on certain orgUnits
>
> right now this data can be accessed if the user knows about the API. This
> effect can also be seen through
>
> the interface on the filter function of the "Data Entry" or "Event
> Capture":
>
>
> -Click on the green search icon
>
> -Type a orgUnit for which the current user does not have access
>
> -Click on the "Find" button
>
>
> Now the restricted orgUnit will now appear on the tree and the user will
> be able to
>
> use it normally. On the other side, if the user knows DHIS and knows how
> the API works he will be able
>
> to access all the information without any kind of restriction since the
> endpoints give all the information.
>
> To sum up, the only security filter DHIS now applies is at interface level.
>
>
> Is this the intended behaviour of DHIS? Will the access to the information
> be restricted in the future somehow?
>
>
> Eric
>
>
>
> ___
> 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
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Creation of CategoryOptionCombinations

2016-06-08 Thread Jason Pickering
I am not talking about tracker, but rather anonymous events. So, again, I
have no idea what your data looks like, but I will take a stab.

Age: As an integer or  if you have it, the date of birth
Gender: As an option set (Male/Female)
JobGroup: As an option set
Insurance scheme: As an option set
Weight: As an integer, I guess...
Size: ??
FeesPaid: As numeric

The advantage as representing this as events is that Age, Gender, Job
Group, Insurance scheme can be used to aggregate "FeesPaid" in the event
reports, but without explicitly defining the dimensions. Thus you only
create the dimensions (and database index size) you actually need, and
don't end up with  many empty cat option combos, but rather can simply
count the events across those dimensions in the event reports.

Again, no idea what you data looks like, it just seems that maybe you are
choosing a difficult way to represent the data, especially, if you are
going to end up with a lot of cat option combos which don't have any data.

Regards,
jason


On Wed, Jun 8, 2016 at 4:31 PM, Uwe Wahser  wrote:

> Hi Jason,
>
> just to clarify: it's 1 CategoryCombo with ten Categories resulting in 50
> Mio
>  CategoryOptionCombos (I misspelled this before). Theoretically this must
> be
> multiplied by the number of dataelements in the dataset, the number of
> orgunits
> and the number of periods (daily over 50 Years) to get the number of
> expected
> dataValues.
>
> In reality this number of dataValues will not be reached as there are
> functional
> dependencies between options, thus leaving lots of combinations empty.
> Actually
> I cannot predict just how many combinations (aka records) will pop up from
> the
> group by SQL on the Source-System. In our current prototype with 5
> Categories in
> the CatCombo we are getting 4 Mio values in total, from which only 10.000
> have
> to be updated every day - which is a very reasonable number. I am actually
> hoping for similar numbers with the extended 10-dim version because of
> those
> functional dependencies.
>
> The idea of using the tracker is interesting, although I'd have to get
> used to
> the idea of using a granular level to upload aggregated data and rethink
> the
> whole model. I think, I'd rather try to reduce the number of categories
> first (I
> am currently down to 10Mio COCs and it seems to work).
>
> How do you estimate the chances to get rid of some of the heavy things from
> DHIS2 core when generating categoryOptionCombinations? I am especially
> thinking
> of the extraordinary long names and the huge log-entires for every new
> categoryOptionCombination (currently over 3000 characters log for each).
> This
> would already take a lot of data-volume out of the generation process.
>
> Regards, Uwe
>
>
> > Jason Pickering  hat am 8. Juni 2016 um
> 15:44
> > geschrieben:
> >
> >
> > It just seems like if you have five million cat combos, you would need
> many
> > more orders of magnitudes of data to support them. If the data was
> imported
> > as events, instead of aggregate, you would not need to explicitly create
> > all of those dimensions, but could still create aggregate figures from
> > them.
> >
> > It just feels like there is no way all of those cat combos are going to
> be
> > filled, unless you really have a TON of data.
> >
> > Regards,
> > Jason
> >
> >
> >
> > On Wed, Jun 8, 2016 at 2:36 PM, Uwe Wahser  wrote:
> >
> > > Hi Jason,
> > >
> > > importing aggregate date into data-sets (see my reply to Lars yesterday
> > > evening:
> > > https://lists.launchpad.net/dhis2-users/msg10452.html)
> > >
> > > Again: the problem is not the import, but the combination of category
> > > options.
> > > Maybe it would already help a lot, if those bombastic strings for the
> names
> > > wouldn't be created for categoryOptionCombinations.
> > >
> > > Thanks for good ideas,
> > >
> > > Uwe
> > >
> > > ---
> > > > Jason Pickering  hat am 8. Juni 2016 um
> > > 09:09
> > > > geschrieben:
> > > >
> > > >
> > > > Hi Uwe,
> > > >
> > > > Are you importing this as aggregate data or as events?
> > > >
> > > > Regards,
> > > > Jason
> > > >
> > > >
> > > > On Wed, Jun 8, 2016 at 2:27 AM, Morten Olav Hansen  >
> > > wrote:
> > > >
> > > > > Just to make sure, we are talking about the same thing: the problem
> > > does
> > > > >> not
> &

Re: [Dhis2-devs] Export Metadata - Error with Content-Type header

2016-06-13 Thread Jason Pickering
Hi Morten,
I am a bit confused by this. Will we have to provide the explicit api
version of the current version? So if we are on 2.24,will all API calls to
the default API require the current version of the server?

Regards,
Jason

On Mon, Jun 13, 2016, 18:58 Paulo Grácio  wrote:

> Ok, will create the tests based on /api/23/metadata.
>
> Thanks,
> Paulo
>
> On Mon, Jun 13, 2016 at 11:17 AM Morten Olav Hansen 
> wrote:
>
>> No, that won't work right now, that endpoint is anyways getting
>> deprecated (replaced by /api/23/metadata and /api/24/metadata)
>>
>> --
>> Morten Olav Hansen
>> Senior Engineer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org
>>
>> On Mon, Jun 13, 2016 at 4:11 PM, Paulo Grácio 
>> wrote:
>>
>>> Hi Morten,
>>>
>>> yes removing Content type header makes it work but shouldn't it work
>>> with that header also? It works fine for other GET API calls.
>>>
>>> /Paulo
>>>
>>>
>>> On Mon, Jun 13, 2016 at 10:11 AM Morten Olav Hansen 
>>> wrote:
>>>
 Hi Paulo

 Is there any reason you are doing this request? I assume you want XML
 back? you dont need to set input content-type as you are not sending
 anything, and some of our internal gets a bit confused because of this...
 removing content-type makes it work

 --
 Morten Olav Hansen
 Senior Engineer, DHIS 2
 University of Oslo
 http://www.dhis2.org

 On Sun, Jun 12, 2016 at 10:47 PM, Paulo Grácio 
 wrote:

> Hi all,
>
> when calling the metadata API with Content-Type header it returns a
> 500.
>
> curl -H "Accept: application/xml" -H "Content-Type: application/xml"
> -u admin:district "
> https://play.dhis2.org/demo/api/metadata?lastUpdated=2014-02";
>
> Best regards,
> Paulo
>
>
> ___
> 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] Export Metadata - Error with Content-Type header

2016-06-14 Thread Jason Pickering
Hi Paulo,
See Morten's note..

*All works on latest trunk*

Regards,
Jason


On Tue, Jun 14, 2016 at 10:29 AM, Paulo Grácio 
wrote:

> Version:
> 2.23
> Build revision:
> 22991
> Build date:
> 2016-06-10 17:48
>
> On Tue, Jun 14, 2016 at 10:20 AM Morten Olav Hansen 
> wrote:
>
>> - In DHIS 2.24 will you keep the API version 23?
>>>
>>
>> Yes, the plan is to keep 3 versions available, for 2.24 /api/23 and
>> /api/24 is available, for 2.25 we will add /api/25, and for 2.26 we will
>> add /api/26 and remove /api/23
>>
>>
>>> - Are all endpoints versioned? I'm trying to use
>>> http://localhost:8085/api/23/dataElements and it returns 404.
>>> http://localhost:8085/api/dataElements works fine.
>>>
>>
>> Yes, what version are you on?
>>
>> https://play.dhis2.org/dev/api/dataElements.json
>> https://play.dhis2.org/dev/api/23/dataElements.json
>> https://play.dhis2.org/dev/api/24/dataElements.json
>>
>> All works on latest trunk
>>
>> --
>> Morten
>>
>>
>>> Thanks,
>>> Paulo
>>>
>>> On Tue, Jun 14, 2016 at 4:35 AM Morten Olav Hansen 
>>> wrote:
>>>
>>>> Hi Jason
>>>>
>>>> Yes, the idea is that your app should target a specific API version. We
>>>> are discussing letting /api/ always be the latest, -but- one of the reasons
>>>> for adding versioning at all, was that we wanted to make more breaking
>>>> changes... so if you app only targets /api/ and not /api/{version} there is
>>>> a bigger risk that your app will break going forward.
>>>>
>>>> --
>>>> Morten Olav Hansen
>>>> Senior Engineer, DHIS 2
>>>> University of Oslo
>>>> http://www.dhis2.org
>>>>
>>>> On Tue, Jun 14, 2016 at 12:18 AM, Jason Pickering <
>>>> jason.p.picker...@gmail.com> wrote:
>>>>
>>>>> Hi Morten,
>>>>> I am a bit confused by this. Will we have to provide the explicit api
>>>>> version of the current version? So if we are on 2.24,will all API calls to
>>>>> the default API require the current version of the server?
>>>>>
>>>>> Regards,
>>>>> Jason
>>>>>
>>>>> On Mon, Jun 13, 2016, 18:58 Paulo Grácio 
>>>>> wrote:
>>>>>
>>>>>> Ok, will create the tests based on /api/23/metadata.
>>>>>>
>>>>>> Thanks,
>>>>>> Paulo
>>>>>>
>>>>>> On Mon, Jun 13, 2016 at 11:17 AM Morten Olav Hansen 
>>>>>> wrote:
>>>>>>
>>>>>>> No, that won't work right now, that endpoint is anyways getting
>>>>>>> deprecated (replaced by /api/23/metadata and /api/24/metadata)
>>>>>>>
>>>>>>> --
>>>>>>> Morten Olav Hansen
>>>>>>> Senior Engineer, DHIS 2
>>>>>>> University of Oslo
>>>>>>> http://www.dhis2.org
>>>>>>>
>>>>>>> On Mon, Jun 13, 2016 at 4:11 PM, Paulo Grácio >>>>>> > wrote:
>>>>>>>
>>>>>>>> Hi Morten,
>>>>>>>>
>>>>>>>> yes removing Content type header makes it work but shouldn't it
>>>>>>>> work with that header also? It works fine for other GET API calls.
>>>>>>>>
>>>>>>>> /Paulo
>>>>>>>>
>>>>>>>>
>>>>>>>> On Mon, Jun 13, 2016 at 10:11 AM Morten Olav Hansen <
>>>>>>>> mor...@dhis2.org> wrote:
>>>>>>>>
>>>>>>>>> Hi Paulo
>>>>>>>>>
>>>>>>>>> Is there any reason you are doing this request? I assume you want
>>>>>>>>> XML back? you dont need to set input content-type as you are not 
>>>>>>>>> sending
>>>>>>>>> anything, and some of our internal gets a bit confused because of 
>>>>>>>>> this...
>>>>>>>>> removing content-type makes it work
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Morten Olav Hansen
>>>>>>>>> Senior Engineer, DHIS 2
>>>>>>>>> University of Oslo
>>>>>>>>> http://www.dhis2.org
>>>>>>>>>
>>>>>>>>> On Sun, Jun 12, 2016 at 10:47 PM, Paulo Grácio <
>>>>>>>>> paulogra...@gmail.com> wrote:
>>>>>>>>>
>>>>>>>>>> Hi all,
>>>>>>>>>>
>>>>>>>>>> when calling the metadata API with Content-Type header it returns
>>>>>>>>>> a 500.
>>>>>>>>>>
>>>>>>>>>> curl -H "Accept: application/xml" -H "Content-Type:
>>>>>>>>>> application/xml" -u admin:district "
>>>>>>>>>> https://play.dhis2.org/demo/api/metadata?lastUpdated=2014-02";
>>>>>>>>>>
>>>>>>>>>> Best regards,
>>>>>>>>>> Paulo
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ___
>>>>>>>>>> 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
>>>>>>
>>>>>
>>>>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] User Module - Error deleting user

2016-06-14 Thread Jason Pickering
Hi Morten,

As we continue with the development of the integration tetss, part of it
will be to determine what is the expected response to certain operations.
Maybe the fixes will not lead to a 500, or maybe that would be the expected
response. Maybe a 403 or something would be better than a 500, if you are
not allowed to delete a user for some reason?

Regards,
Jason


On Tue, Jun 14, 2016 at 11:35 AM, Morten Olav Hansen 
wrote:

> Hi Paulo
>
> I have made a few changes to trunk and 2.23 which might help you. That
> said, there are still a few cases where deletion will not be allowed.
>
> You could also try to simple disable the user, so they are not allowed to
> login.
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
> On Mon, Jun 13, 2016 at 11:32 PM, Paulo Grácio 
> wrote:
>
>> Hi Lars,
>>
>> you can find the server.log in attach. The test case is also available
>> here
>>
>> https://github.com/pgracio/dhis2-api-system-test/blob/master/modules/users.js
>>
>> BR,
>> Paulo
>>
>> On Mon, Jun 13, 2016 at 10:01 AM Lars Helge Øverland 
>> wrote:
>>
>>> Hi Paulo,
>>>
>>> can you check the tomcat log on the server side?
>>>
>>> What likely is going on here is the user being associated with multiple
>>> objects through sharing (e.g. data elements), or as owner (e.g. favorites).
>>> The deletion handling of users is not fully in place, simply because almost
>>> all of our tables potentially can be linked to the user table.
>>>
>>> regards,
>>>
>>> Lars
>>>
>>>
>>>
>>>
>>> On Sat, Jun 11, 2016 at 6:54 PM, Paulo Grácio 
>>> wrote:
>>>
 Hi all,

 when trying to delete an user using API, DELETE -
 http://localhost:8085/api/users/zTsuPZnHqaO I'm getting a 500 -
 Internal Error with

 Request processing failed; nested exception is
 org.springframework.dao.DataIntegrityViolationException: could not execute
 statement; SQL [n/a]; constraint [fk6a68e08f19893da]; nested exception is
 org.hibernate.exception.ConstraintViolationException: could not execute
 statement

 is this expected? Should I make a different call before delete the
 User? It works fine when deleting in Web UI.

 Best regards,
 Paulo

 ___
 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


>>>
>>>
>>> --
>>> 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-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
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] User Module - Error deleting user

2016-06-14 Thread Jason Pickering
Hi Morten,

We discussed by chat, but just for the benefit of others and to be sure
that the test seems reasonable. The scenario is that when users which
cannot be deleted for various reasons (like associated with this object or
that object) cannot be deleted, the server returns something like

500: could not reassociate uninitialized transient collection

or

* ERROR 2016-06-14 12:45:35,311 Error while executing action
(ExceptionInterceptor.java [http-bio-8080-exec-8])
org.springframework.dao.DataIntegrityViolationException: could not execute
statement; SQL [n/a]; constraint [fk_document_userid]; nested exception is
org.hibernate.exception.ConstraintViolationException: could not execute
statement

from the server side.

What happens from the UI  is you get a "Deleting..." message which spins
forever. I think it might be better to catch the error and return this to
the client  and inform them that the user could not be deleted due to
associations/constraints/ etc similar to when you attempt to delete an
organisation unit or data element, which cannot be deleted.

A 500 seems to be an unexpected error, but in this case, we should know
that the user cannot be deleted due to constraints. Hope this makes sense.

Regards,
Jason





On Tue, Jun 14, 2016 at 12:07 PM, Morten Olav Hansen 
wrote:

> Hm, a 403 (Forbidden) makes it seem like the user is trying to do
> something he should not be allowed. I think 500 is fine in this case, as it
> signals an internal server error.
>
> Probably we should be better at catching these exception, and returning
> some kind of message to the user (not just 500 internal error which doesn't
> really mean anything to the end user).
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
> On Tue, Jun 14, 2016 at 4:42 PM, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
>> Hi Morten,
>>
>> As we continue with the development of the integration tetss, part of it
>> will be to determine what is the expected response to certain operations.
>> Maybe the fixes will not lead to a 500, or maybe that would be the expected
>> response. Maybe a 403 or something would be better than a 500, if you are
>> not allowed to delete a user for some reason?
>>
>> Regards,
>> Jason
>>
>>
>> On Tue, Jun 14, 2016 at 11:35 AM, Morten Olav Hansen 
>> wrote:
>>
>>> Hi Paulo
>>>
>>> I have made a few changes to trunk and 2.23 which might help you. That
>>> said, there are still a few cases where deletion will not be allowed.
>>>
>>> You could also try to simple disable the user, so they are not allowed
>>> to login.
>>>
>>> --
>>> Morten Olav Hansen
>>> Senior Engineer, DHIS 2
>>> University of Oslo
>>> http://www.dhis2.org
>>>
>>> On Mon, Jun 13, 2016 at 11:32 PM, Paulo Grácio 
>>> wrote:
>>>
>>>> Hi Lars,
>>>>
>>>> you can find the server.log in attach. The test case is also available
>>>> here
>>>>
>>>> https://github.com/pgracio/dhis2-api-system-test/blob/master/modules/users.js
>>>>
>>>> BR,
>>>> Paulo
>>>>
>>>> On Mon, Jun 13, 2016 at 10:01 AM Lars Helge Øverland 
>>>> wrote:
>>>>
>>>>> Hi Paulo,
>>>>>
>>>>> can you check the tomcat log on the server side?
>>>>>
>>>>> What likely is going on here is the user being associated with
>>>>> multiple objects through sharing (e.g. data elements), or as owner (e.g.
>>>>> favorites). The deletion handling of users is not fully in place, simply
>>>>> because almost all of our tables potentially can be linked to the user
>>>>> table.
>>>>>
>>>>> regards,
>>>>>
>>>>> Lars
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Sat, Jun 11, 2016 at 6:54 PM, Paulo Grácio 
>>>>> wrote:
>>>>>
>>>>>> Hi all,
>>>>>>
>>>>>> when trying to delete an user using API, DELETE -
>>>>>> http://localhost:8085/api/users/zTsuPZnHqaO I'm getting a 500 -
>>>>>> Internal Error with
>>>>>>
>>>>>> Request processing failed; nested exception is
>>>>>> org.springframework.dao.DataIntegrityViolationException: could not 
>>>>>> execute
>>>>>> statement; SQL [n/a]; constraint [fk6a68e08f19893da]; nested exception i

Re: [Dhis2-devs] User Module - Error deleting user

2016-06-16 Thread Jason Pickering
I guess the scenario we need to test is for users which CANNOT be deleted
for whatever reason. This is a bit more difficult to test, but should be
able to be done with the "system" user .There are a whole slew of objects
which are attached with FK references to userinfo, so it should be pretty
easy to create a user, create a dependent object, and then attempt to
delete the user. I think your fix Morten would in this case return a
different error (or at least a different response) than when the user
actually could be deleted?


On Thu, Jun 16, 2016 at 9:56 AM, Morten Olav Hansen 
wrote:

> Right, so the user was deleted? 204 is expected for that. It's only for
> server errors I have changed
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
> On Thu, Jun 16, 2016 at 2:26 PM, Paulo Grácio 
> wrote:
>
>> http://localhost:8085/api/users/URq9lLcM8ID
>>
>> 204 NO CONTENT
>> The server has successfully fulfilled the request and that there is no
>> additional content to send in the response payload body.
>>
>> On Thu, Jun 16, 2016 at 9:24 AM Morten Olav Hansen 
>> wrote:
>>
>>> 204? for which endpoint? that doesn't sound right :)
>>>
>>> --
>>> Morten Olav Hansen
>>> Senior Engineer, DHIS 2
>>> University of Oslo
>>> http://www.dhis2.org
>>>
>>> On Thu, Jun 16, 2016 at 2:22 PM, Paulo Grácio 
>>> wrote:
>>>
>>>> Great, getting a 204.
>>>>
>>>> On Thu, Jun 16, 2016 at 8:39 AM Morten Olav Hansen 
>>>> wrote:
>>>>
>>>>> Hibernate exception should now be caught, and a web message sent back,
>>>>> please try it out. Also added a new default exception handler, which
>>>>> unwraps the message and sends back to the user (full stack trace is still
>>>>> available on the server).
>>>>>
>>>>> @Paulo: deletions -should- be allowed... but I don't think it will be
>>>>> fixed in time for 2.24, at least now our error message should be a bit 
>>>>> more
>>>>> clear
>>>>>
>>>>> --
>>>>> Morten Olav Hansen
>>>>> Senior Engineer, DHIS 2
>>>>> University of Oslo
>>>>> http://www.dhis2.org
>>>>>
>>>>> On Tue, Jun 14, 2016 at 7:26 PM, Paulo Grácio 
>>>>> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> maybe I'm missing something but,  just one more question, is there
>>>>>> any situation where we can delete a user?
>>>>>>
>>>>>> If not maybe we can return 403 - Method Not Allowed, once DELETE is
>>>>>> not supported by User resource.
>>>>>>
>>>>>> /Paulo
>>>>>>
>>>>>> On Tue, Jun 14, 2016 at 12:56 PM Jason Pickering <
>>>>>> jason.p.picker...@gmail.com> wrote:
>>>>>>
>>>>>>> Hi Morten,
>>>>>>>
>>>>>>> We discussed by chat, but just for the benefit of others and to be
>>>>>>> sure that the test seems reasonable. The scenario is that when users 
>>>>>>> which
>>>>>>> cannot be deleted for various reasons (like associated with this object 
>>>>>>> or
>>>>>>> that object) cannot be deleted, the server returns something like
>>>>>>>
>>>>>>> 500: could not reassociate uninitialized transient collection
>>>>>>>
>>>>>>> or
>>>>>>>
>>>>>>> * ERROR 2016-06-14 12:45:35,311 Error while executing action
>>>>>>> (ExceptionInterceptor.java [http-bio-8080-exec-8])
>>>>>>> org.springframework.dao.DataIntegrityViolationException: could not
>>>>>>> execute statement; SQL [n/a]; constraint [fk_document_userid]; nested
>>>>>>> exception is org.hibernate.exception.ConstraintViolationException: could
>>>>>>> not execute statement
>>>>>>>
>>>>>>> from the server side.
>>>>>>>
>>>>>>> What happens from the UI  is you get a "Deleting..." message which
>>>>>>> spins forever. I think it might be better to catch the error and return
>>>>>>> this to the client  and inform them that the user could not be deleted 

[Dhis2-devs] Deleting a user

2016-06-16 Thread Jason Pickering
When attempting to delete a user (in this case, the user "system" from the
SL demo database)  (revision 23317) through the UI, we get this rather
nasty stack trace and then a "Deleting" message through the UI.

http://pastebin.com/TvJDFEtz

It appears actually the user is deleted, but not 100%, as the user still is
visible in the UI. When clicking on the user, we get another error.

Clearing the server cache seems to remove this from the UI and the user
appears to be deleted.


* ERROR 2016-06-16 11:12:57,127 Error while executing action
(ExceptionInterceptor.java [http-bio-8080-exec-1])
java.lang.NullPointerException
at org.hisp.dhis.user.action.GetUserAction.execute(GetUserAction.java:98)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:870)
at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1293)
at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68)
at
com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethodWithDebugInfo(XWorkMethodAccessor.java:117)
at
com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethod(XWorkMethodAccessor.java:108)
at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:1369)
at ognl.ASTMethod.getValueBody(ASTMethod.java:90)
at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
at ognl.SimpleNode.getValue(SimpleNode.java:258)
at ognl.Ognl.getValue(Ognl.java:494)
at ognl.Ognl.getValue(Ognl.java:458)
at com.opensymphony.xwork2.ognl.OgnlUtil$2.execute(OgnlUtil.java:309)
at
com.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecute(OgnlUtil.java:340)
at com.opensymphony.xwork2.ognl.OgnlUtil.getValue(OgnlUtil.java:307)
at
com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:423)
at
com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:287)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:250)
at
org.hisp.dhis.webportal.interceptor.XWorkPortalUserInterceptor.intercept(XWorkPortalUserInterceptor.java:85)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
at
org.hisp.dhis.webportal.interceptor.XWorkPortalModuleInterceptor.intercept(XWorkPortalModuleInterceptor.java:91)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
at
org.hisp.dhis.webportal.interceptor.XWorkPortalMenuInterceptor.intercept(XWorkPortalMenuInterceptor.java:94)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
at
org.hisp.dhis.webportal.interceptor.XWorkPortalParamsInterceptor.intercept(XWorkPortalParamsInterceptor.java:150)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
at
org.hisp.dhis.interceptor.ContextInterceptor.intercept(ContextInterceptor.java:83)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
at
org.hisp.dhis.interceptor.UserSettingInterceptor.intercept(UserSettingInterceptor.java:81)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
at
org.hisp.dhis.security.intercept.LoginInterceptor.intercept(LoginInterceptor.java:85)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
at
org.hisp.dhis.security.intercept.XWorkSecurityInterceptor.intercept(XWorkSecurityInterceptor.java:116)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
at
org.hisp.dhis.interceptor.SystemSettingInterceptor.intercept(SystemSettingInterceptor.java:115)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
at
org.hisp.dhis.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:139)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229)
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
at
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
at
org.hisp.dhis.interceptor.ExceptionInterceptor.intercept(ExceptionInterceptor.java:113)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
at
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
at
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:564)
at
org.apache.struts2.

Re: [Dhis2-devs] User Module - Error deleting user

2016-06-16 Thread Jason Pickering
Hi Paulo and Morten,
Please see my earlier mail from today where I did a similar case with a
user, but via the UI.

https://lists.launchpad.net/dhis2-devs/msg45471.html

which I think basically does the same thing. Not sure. Maybe you can point
us to the exact test Paulo?

Morten, this is a quite common use case really. Just deleting a user.

Regards,
Jason


On Thu, Jun 16, 2016 at 7:29 PM, Morten Olav Hansen 
wrote:

> Paulo,
>
> I think what you expect is that the user is deleted. That will not happen,
> maybe 2.27.
>
> Pleases make sure Jason is feeling you actual cases we can fix.
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
> On Thu, Jun 16, 2016 at 11:44 PM, Paulo Grácio 
> wrote:
>
>> I have created a test case that tries to delete the default admin user. I
>> get back a 500 with the web message payload, but looks like something is
>> being delete because after that I can't login into the application with
>> that user and also http://localhost:8085/api/users?query=admin returns
>> an empty list
>>
>> {
>>   "pager": {
>> "page": 1,
>> "pageCount": 1,
>> "total": 0,
>> "pageSize": 50
>>   },
>>   "users": []
>> }
>>
>> Do you protect all resources with authentication? For instance if I try
>> to create a new user with admin/district I'm getting 409. Was expecting to
>> get a 401 Unauthorized or 403 Forbidden
>>
>> {
>>   "httpStatus": "Conflict",
>>   "httpStatusCode": 409,
>>   "status": "ERROR",
>>   "message": "You must have permissions to create user, or ability to
>> manage at least one user group for the user."
>> }
>>
>> BR,
>> Paulo
>>
>> On Thu, Jun 16, 2016 at 10:12 AM Morten Olav Hansen 
>> wrote:
>>
>>> It will return same status as before (500) but now it will return a web
>>> message payload with info (from hibernate)
>>>
>>> --
>>> Morten Olav Hansen
>>> Senior Engineer, DHIS 2
>>> University of Oslo
>>> http://www.dhis2.org
>>>
>>> On Thu, Jun 16, 2016 at 3:01 PM, Jason Pickering <
>>> jason.p.picker...@gmail.com> wrote:
>>>
>>>> I guess the scenario we need to test is for users which CANNOT be
>>>> deleted for whatever reason. This is a bit more difficult to test, but
>>>> should be able to be done with the "system" user .There are a whole slew of
>>>> objects which are attached with FK references to userinfo, so it should be
>>>> pretty easy to create a user, create a dependent object, and then attempt
>>>> to delete the user. I think your fix Morten would in this case return a
>>>> different error (or at least a different response) than when the user
>>>> actually could be deleted?
>>>>
>>>>
>>>> On Thu, Jun 16, 2016 at 9:56 AM, Morten Olav Hansen 
>>>> wrote:
>>>>
>>>>> Right, so the user was deleted? 204 is expected for that. It's only
>>>>> for server errors I have changed
>>>>>
>>>>> --
>>>>> Morten Olav Hansen
>>>>> Senior Engineer, DHIS 2
>>>>> University of Oslo
>>>>> http://www.dhis2.org
>>>>>
>>>>> On Thu, Jun 16, 2016 at 2:26 PM, Paulo Grácio 
>>>>> wrote:
>>>>>
>>>>>> http://localhost:8085/api/users/URq9lLcM8ID
>>>>>>
>>>>>> 204 NO CONTENT
>>>>>> The server has successfully fulfilled the request and that there is
>>>>>> no additional content to send in the response payload body.
>>>>>>
>>>>>> On Thu, Jun 16, 2016 at 9:24 AM Morten Olav Hansen 
>>>>>> wrote:
>>>>>>
>>>>>>> 204? for which endpoint? that doesn't sound right :)
>>>>>>>
>>>>>>> --
>>>>>>> Morten Olav Hansen
>>>>>>> Senior Engineer, DHIS 2
>>>>>>> University of Oslo
>>>>>>> http://www.dhis2.org
>>>>>>>
>>>>>>> On Thu, Jun 16, 2016 at 2:22 PM, Paulo Grácio >>>>>> > wrote:
>>>>>>>
>>>>>>>> Great, getting a 204.
>>>>>>>>
>>>>>>>> On Thu, J

Re: [Dhis2-devs] ERROR: Hammertime

2016-06-22 Thread Jason Pickering
Uhh, yeah, sorry about that Paulo.  We have had some issues with people
changing the password on the demo servers, so have put some measures in
place to prevent this.

If you want to be able to change the password, just execute these command
on the database.

DROP TRIGGER IF EXISTS prevent_changing_password ON users;
DROP FUNCTION IF EXISTS cant_touch_this();

Regards,
Jason



On Tue, Jun 21, 2016, 21:00 Paulo Grácio  wrote:

> Is this familiar to anyone? Getting this error using latest trunk and 2.23
>
> dhis2-database | ERROR:  Hammertime!
> dhis2-database | STATEMENT:  update users set uid=$1, code=$2, created=$3,
> lastUpdated=$4, creatoruserid=$5, username=$6, password=$7,
> externalauth=$8, openid=$9, ldapid=$10, passwordLastUpdated=$11,
> lastLogin=$12, restoreToken=$13, restoreCode=$14, restoreExpiry=$15,
> selfRegistered=$16, invitation=$17, disabled=$18 where userid=$19
> dhis2-database | ERROR:  current transaction is aborted, commands ignored
> until end of transaction block
> dhis2-database | STATEMENT:  SELECT NULL AS TABLE_CAT, n.nspname AS
> TABLE_SCHEM, c.relname AS TABLE_NAME,  CASE n.nspname ~ '^pg_' OR n.nspname
> = 'information_schema'  WHEN true THEN CASE  WHEN n.nspname = 'pg_catalog'
> OR n.nspname = 'information_schema' THEN CASE c.relkind   WHEN 'r' THEN
> 'SYSTEM TABLE'   WHEN 'v' THEN 'SYSTEM VIEW'   WHEN 'i' THEN 'SYSTEM INDEX'
>   ELSE NULL   END  WHEN n.nspname = 'pg_toast' THEN CASE c.relkind   WHEN
> 'r' THEN 'SYSTEM TOAST TABLE'   WHEN 'i' THEN 'SYSTEM TOAST INDEX'   ELSE
> NULL   END  ELSE CASE c.relkind   WHEN 'r' THEN 'TEMPORARY TABLE'   WHEN
> 'i' THEN 'TEMPORARY INDEX'   WHEN 'S' THEN 'TEMPORARY SEQUENCE'   WHEN 'v'
> THEN 'TEMPORARY VIEW'   ELSE NULL   END  END  WHEN false THEN CASE
> c.relkind  WHEN 'r' THEN 'TABLE'  WHEN 'i' THEN 'INDEX'  WHEN 'S' THEN
> 'SEQUENCE'  WHEN 'v' THEN 'VIEW'  WHEN 'c' THEN 'TYPE'  WHEN 'f' THEN
> 'FOREIGN TABLE'  WHEN 'm' THEN 'MATERIALIZED VIEW'  ELSE NULL  END  ELSE
> NULL  END  AS TABLE_TYPE, d.description AS REMARKS  FROM
> pg_catalog.pg_namespace n, pg_catalog.pg_class c  LEFT JOIN
> pg_catalog.pg_description d ON (c.oid = d.objoid AND d.objsubid = 0)  LEFT
> JOIN pg_catalog.pg_class dc ON (d.classoid=dc.oid AND
> dc.relname='pg_class')  LEFT JOIN pg_catalog.pg_namespace dn ON
> (dn.oid=dc.relnamespace AND dn.nspname='pg_catalog')  WHERE c.relnamespace
> = n.oid  AND c.relname LIKE 'PROBABLYNOT' AND (false  OR ( c.relkind = 'r'
> AND n.nspname !~ '^pg_' AND n.nspname <> 'information_schema' ) )  ORDER BY
> TABLE_TYPE,TABLE_SCHEM,TABLE_NAME
> dhis2-web   | * WARN  2016-06-21 18:58:22,978 SQL Error: 0, SQLState:
> P0001 (SqlExceptionHelper.java [http-apr-8080-exec-10])
> dhis2-web   | * ERROR 2016-06-21 18:58:22,979 ERROR: Hammertime!
> (SqlExceptionHelper.java [http-apr-8080-exec-10])
>
> ___
> 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


[Dhis2-devs] Error with Usage analytics

2016-07-04 Thread Jason Pickering
On 2.23, revision 23038

Getting this error when attempting to use the usage analytics app.

org.postgresql.util.PSQLException: ERROR: division by zero

org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2284)

org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2003)

org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:200)
org.postgresql.jdbc.PgStatement.execute(PgStatement.java:424)
org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:321)
org.postgresql.jdbc.PgStatement.executeQuery(PgStatement.java:284)

com.mchange.v2.c3p0.impl.NewProxyStatement.executeQuery(NewProxyStatement.java:35)

org.springframework.jdbc.core.JdbcTemplate$1QueryStatementCallback.doInStatement(JdbcTemplate.java:454)

org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:404)
org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:470)
org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:480)

org.hisp.dhis.datastatistics.hibernate.HibernateDataStatisticsStore.getSnapshotsInInterval(HibernateDataStatisticsStore.java:71)

org.hisp.dhis.datastatistics.DefaultDataStatisticsService.getReports(DefaultDataStatisticsService.java:82)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)

org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)

org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)

org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)

org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)

org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)

org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)

org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)

org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
com.sun.proxy.$Proxy170.getReports(Unknown Source)

org.hisp.dhis.webapi.controller.datastatistics.DataStatisticsController.report(DataStatisticsController.java:88)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)

org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)

org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)

org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)

org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:817)

org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:731)

org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)

org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)

org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)

org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:968)

org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:859)
javax.servlet.http.HttpServlet.service(HttpServlet.java:624)

org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:844)
javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)

org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)

org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)

org.springframework.security.

Re: [Dhis2-devs] Error with Usage analytics

2016-07-04 Thread Jason Pickering
Here is the actual URL


On Mon, Jul 4, 2016 at 10:35 AM, Halvdan Hoem Grelland 
wrote:

> Does this happen on loading the app or when running a specific query
> within it? Can you reproduce on the SL or trainingland demo db?
>
> On Mon, Jul 4, 2016 at 2:21 PM, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
>> On 2.23, revision 23038
>>
>> Getting this error when attempting to use the usage analytics app.
>>
>> org.postgresql.util.PSQLException: ERROR: division by zero
>>  
>> org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2284)
>>  
>> org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2003)
>>  
>> org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:200)
>>  org.postgresql.jdbc.PgStatement.execute(PgStatement.java:424)
>>  org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:321)
>>  org.postgresql.jdbc.PgStatement.executeQuery(PgStatement.java:284)
>>  
>> com.mchange.v2.c3p0.impl.NewProxyStatement.executeQuery(NewProxyStatement.java:35)
>>  
>> org.springframework.jdbc.core.JdbcTemplate$1QueryStatementCallback.doInStatement(JdbcTemplate.java:454)
>>  
>> org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:404)
>>  org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:470)
>>  org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:480)
>>  
>> org.hisp.dhis.datastatistics.hibernate.HibernateDataStatisticsStore.getSnapshotsInInterval(HibernateDataStatisticsStore.java:71)
>>  
>> org.hisp.dhis.datastatistics.DefaultDataStatisticsService.getReports(DefaultDataStatisticsService.java:82)
>>  sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>  
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>  
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>  java.lang.reflect.Method.invoke(Method.java:498)
>>  
>> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)
>>  
>> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
>>  
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
>>  
>> org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
>>  
>> org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
>>  
>> org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
>>  
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
>>  
>> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
>>  com.sun.proxy.$Proxy170.getReports(Unknown Source)
>>  
>> org.hisp.dhis.webapi.controller.datastatistics.DataStatisticsController.report(DataStatisticsController.java:88)
>>  sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>  
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>  
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>  java.lang.reflect.Method.invoke(Method.java:498)
>>  
>> org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)
>>  
>> org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)
>>  
>> org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)
>>  
>> org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:817)
>>  
>> org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:731)
>>  
>> org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
>>  
>> org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)
>>  
>> org.springframework.web.servlet.DispatcherServlet.doSer

Re: [Dhis2-devs] Error with Usage analytics

2016-07-04 Thread Jason Pickering
Sorry about that. Let me try again.

This happens when pressing "Update" after the app has loaded.

On the demo site, this looks OK

https://play.dhis2.org/demo/api/dataStatistics?startDate=2016-3-4&endDate=2016-7-4&interval=WEEK&_=1467648739291

but does not work on this specific server.

Regards,
Jason



On Mon, Jul 4, 2016 at 12:11 PM, Jason Pickering <
jason.p.picker...@gmail.com> wrote:

> Here is the actual URL
>
>
> On Mon, Jul 4, 2016 at 10:35 AM, Halvdan Hoem Grelland 
> wrote:
>
>> Does this happen on loading the app or when running a specific query
>> within it? Can you reproduce on the SL or trainingland demo db?
>>
>> On Mon, Jul 4, 2016 at 2:21 PM, Jason Pickering <
>> jason.p.picker...@gmail.com> wrote:
>>
>>> On 2.23, revision 23038
>>>
>>> Getting this error when attempting to use the usage analytics app.
>>>
>>> org.postgresql.util.PSQLException: ERROR: division by zero
>>> 
>>> org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2284)
>>> 
>>> org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2003)
>>> 
>>> org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:200)
>>> org.postgresql.jdbc.PgStatement.execute(PgStatement.java:424)
>>> org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:321)
>>> org.postgresql.jdbc.PgStatement.executeQuery(PgStatement.java:284)
>>> 
>>> com.mchange.v2.c3p0.impl.NewProxyStatement.executeQuery(NewProxyStatement.java:35)
>>> 
>>> org.springframework.jdbc.core.JdbcTemplate$1QueryStatementCallback.doInStatement(JdbcTemplate.java:454)
>>> 
>>> org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:404)
>>> org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:470)
>>> org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:480)
>>> 
>>> org.hisp.dhis.datastatistics.hibernate.HibernateDataStatisticsStore.getSnapshotsInInterval(HibernateDataStatisticsStore.java:71)
>>> 
>>> org.hisp.dhis.datastatistics.DefaultDataStatisticsService.getReports(DefaultDataStatisticsService.java:82)
>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> 
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>> 
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> java.lang.reflect.Method.invoke(Method.java:498)
>>> 
>>> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)
>>> 
>>> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
>>> 
>>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
>>> 
>>> org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
>>> 
>>> org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
>>> 
>>> org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
>>> 
>>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
>>> 
>>> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
>>> com.sun.proxy.$Proxy170.getReports(Unknown Source)
>>> 
>>> org.hisp.dhis.webapi.controller.datastatistics.DataStatisticsController.report(DataStatisticsController.java:88)
>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> 
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>> 
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> java.lang.reflect.Method.invoke(Method.java:498)
>>> 
>>> org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)
>>> 
>>> org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)
>>> 
>>> org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandl

Re: [Dhis2-devs] Error with Usage analytics

2016-07-04 Thread Jason Pickering
I looked at one record and got this

-[ RECORD 1 ]--+
statisticsid   | 1309547
uid| MAopqnaf393
code   |
created| 2016-06-30 02:00:00.034
lastupdated| 2016-06-30 02:00:00.034
chartviews | 127
mapviews   |
reporttableviews   | 680
eventreportviews   |
eventchartviews|
dashboardviews | 29
datasetreportviews | 183
active_users   | 0
totalviews | 1019
charts | 2
maps   | 1
reporttables   | 21
eventreports   | 0
eventcharts| 0
dashboards | 2
indicators | 0
users  | 2366


the field "active_users" is zero, and since
 the expression "sum(eventchartviews)/max(active_users) as
averageEventChartViews" is not safe from division by zero, this error is
resulting I guess.

Not really sure why this number would be zero. Does this really indicate
zero active users, like no one has logged into the system?

Regards,
Jason


On Mon, Jul 4, 2016 at 12:14 PM, Jason Pickering <
jason.p.picker...@gmail.com> wrote:

> Sorry about that. Let me try again.
>
> This happens when pressing "Update" after the app has loaded.
>
> On the demo site, this looks OK
>
>
> https://play.dhis2.org/demo/api/dataStatistics?startDate=2016-3-4&endDate=2016-7-4&interval=WEEK&_=1467648739291
>
> but does not work on this specific server.
>
> Regards,
> Jason
>
>
>
> On Mon, Jul 4, 2016 at 12:11 PM, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
>> Here is the actual URL
>>
>>
>> On Mon, Jul 4, 2016 at 10:35 AM, Halvdan Hoem Grelland > > wrote:
>>
>>> Does this happen on loading the app or when running a specific query
>>> within it? Can you reproduce on the SL or trainingland demo db?
>>>
>>> On Mon, Jul 4, 2016 at 2:21 PM, Jason Pickering <
>>> jason.p.picker...@gmail.com> wrote:
>>>
>>>> On 2.23, revision 23038
>>>>
>>>> Getting this error when attempting to use the usage analytics app.
>>>>
>>>> org.postgresql.util.PSQLException: ERROR: division by zero
>>>>
>>>> org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2284)
>>>>
>>>> org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2003)
>>>>
>>>> org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:200)
>>>>org.postgresql.jdbc.PgStatement.execute(PgStatement.java:424)
>>>>org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:321)
>>>>org.postgresql.jdbc.PgStatement.executeQuery(PgStatement.java:284)
>>>>
>>>> com.mchange.v2.c3p0.impl.NewProxyStatement.executeQuery(NewProxyStatement.java:35)
>>>>
>>>> org.springframework.jdbc.core.JdbcTemplate$1QueryStatementCallback.doInStatement(JdbcTemplate.java:454)
>>>>
>>>> org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:404)
>>>>org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:470)
>>>>org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:480)
>>>>
>>>> org.hisp.dhis.datastatistics.hibernate.HibernateDataStatisticsStore.getSnapshotsInInterval(HibernateDataStatisticsStore.java:71)
>>>>
>>>> org.hisp.dhis.datastatistics.DefaultDataStatisticsService.getReports(DefaultDataStatisticsService.java:82)
>>>>sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>java.lang.reflect.Method.invoke(Method.java:498)
>>>>
>>>> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)
>>>>
>>>> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
>>>>
>>>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
>>>>
>>>> org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
>>>>
>>>> org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
>>>>
>>>> o

Re: [Dhis2-devs] [Dhis2-users] DHIS2 SQL View - practical examples

2016-07-05 Thread Jason Pickering
SELECT uid,code,name from organisationunit
where hierarchylevel <=6;



On Tue, Jul 5, 2016 at 8:35 AM, Michael Mwebaze 
wrote:

> Hi Tantely,
>
> Standard ANSI SQL can be executed easily with-in Sqlviews sub-module in
> DHIS2. The link below should be helpful.
>
> http://dhis2.github.io/dhis2-docs/2.22/en/user/html/ch22s06.html
>
> Regards,
>
> Michael
>
> On 5 July 2016 at 04:45, Raminosoa Rabemanantsoa, Tantely <
> tramino...@mikolo.org> wrote:
>
>> Thank you Knut for your suggestion.
>>
>> Regards,
>>
>> Tantely.
>>
>> On Tue, Jul 5, 2016 at 10:53 AM, Knut Staring  wrote:
>>
>>> Hi Raminosa,
>>>
>>> I think you should try to install Postgres locally on your laptop, which
>>> would allow you to easily query the database using PgAdmin.
>>>
>>> Regards,
>>> Knut
>>>
>>> On Tue, Jul 5, 2016 at 9:13 AM, Raminosoa Rabemanantsoa, Tantely <
>>> tramino...@mikolo.org> wrote:
>>>
 Hi All,


 I am looking for a documentation of the use of the SQL syntax to run in
 SQL View  (table names, field names specific to DHIS2 ). I have seen for
 example to query organization unit, we have to select from “ou” or to use
 “dv” to select the datavalues. I am planning to list all the uid, code and
 names of all organization units at all levels (1 to 6) in one single query
 result.


 Thank you for your support.


 Tantely.

 *This message and its attachments are confidential and solely for the
 intended recipients. If received in error, please delete them and notify
 the sender via reply e-mail immediately.*
 ___
 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


>>>
>>>
>>> --
>>> Knut Staring
>>> Dept. of Informatics, University of Oslo
>>> Norway: +4791880522
>>> Skype: knutstar
>>> http://dhis2.org
>>>
>>
>>
>>
>> --
>> *Tantely Raminosoa*
>> *Data Officer*
>> Management Sciences for Health
>> Antananarivo Madagascar
>> Mobile: 0321180040
>> E-mail: tramino...@mikolo.org
>> Skype: traminosoa
>> 
>> Stronger health systems. Greater health impact.
>> 
>> 
>> 
>> www.msh.org
>>
>> *This message and its attachments are confidential and solely for the
>> intended recipients. If received in error, please delete them and notify
>> the sender via reply e-mail immediately.*
>>
>> ___
>> 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
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Check if existing analytics table update is running

2016-07-19 Thread Jason Pickering
Hi Jasper,
You can issue a GET request to

dhis/api/system/tasks/ANALYTICSTABLE_UPDATE

which will provide something like

[

   -
   {
  - uid: "fUEPDKfXsoE",
  - level: "INFO",
  - category: "ANALYTICSTABLE_UPDATE",
  - time: "2016-07-19T07:35:31.915+",
  - message: "Updating resource tables",
  - completed: false
  },
   -
   {
  - uid: "BkrPBGVPjo6",
  - level: "INFO",
  - category: "ANALYTICSTABLE_UPDATE",
  - time: "2016-07-19T07:35:31.914+",
  - message: "Analytics table update process started",
  - completed: false
  }

]

when analytics is done, "completed" will change to "true".

Regards,
Jason


On Mon, Jul 18, 2016 at 5:04 PM, Jasper Timm  wrote:

> Hi all,
>
> We have a cron job which triggers the analytics tables to be generated and
> we seem to run into issues when the job takes too long and a new request to
> update is sent before the old one completes.
>
> Currently running a PUT every 20 minutes (extended from previously using 5
> minutes due to this issue) against /api/resourceTables/analytics
>
> Is there an endpoint we can hit to check if there is an existing analytics
> update already running?
>
> Thanks,
>
> - Jasper
>
> ___
> 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
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Disable/Enable data editing in DHIS2 dataset

2016-07-20 Thread Jason Pickering
Hi Tantely,

Please have a look at the documentation
http://dhis2.github.io/dhis2-docs/2.23/en/user/html/ch06.html

Expiry days: Controls for how long it should be possible to enter data in
data entry for this data set. Expiry days refer to the number of days after
the end date of the selected data entry period where the data entry form
should be open for entry. After the number of days has expired, the data
set will be locked for further entry. You can set manual exceptions to this
using the lock exception functionality in data administration module.
Regards,
Jason


On Wed, Jul 20, 2016 at 3:03 PM, Raminosoa Rabemanantsoa, Tantely <
tramino...@mikolo.org> wrote:

> Hi All,
>
>
> Does someone have experimented disabling data editing after a certain
> period, let us say 2 weeks after the data entry in a dataset? Then how did
> you do then to allow some users do the editing of certain data values
> (after data quality assessments), once the editing has been disabled?
>
>
> Thank you for your support (DHIS2 2.19)
>
>
> Regards,
>
>
> Tantely.
>
>
>
>
> *This message and its attachments are confidential and solely for the
> intended recipients. If received in error, please delete them and notify
> the sender via reply e-mail immediately.*
> ___
> 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
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Update datavalues / metadata from SQL

2016-07-21 Thread Jason Pickering
Hi Tantely,

I would try encourage you to use the Web API for really everything. If you
start updating directly in the database, you can very easily end up with a
corrupted system. Direct inserts into the data value tables should be OK.
But given the complexity of the model, directly manipulating the database
tables can lead to serious problems, unless you are exceedingly careful.

Regards,
Jason




On Thu, Jul 21, 2016 at 3:58 PM, Raminosoa Rabemanantsoa, Tantely <
tramino...@mikolo.org> wrote:

> Hi All,
>
> I am looking for links or documentations on interacting with DHIS2
> database from the SQL Shell commands. For instance, when I would like to
> UPDATE, DELETE or ADD some records values, do I only run the SQL command on
> the "datavalue" table or also on all linked tables? Same thing when making
> changes on metadata to make some UPDATE, DELETE or ADD some organization
> units.
>
> Thank you for your support.
>
> Tantely.
>
> *This message and its attachments are confidential and solely for the
> intended recipients. If received in error, please delete them and notify
> the sender via reply e-mail immediately.*
> ___
> 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
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Store external spreadheet-like data in DHIS2

2016-07-25 Thread Jason Pickering
Hi Tantely,

Please have a look here
http://dhis2.github.io/dhis2-docs/master/en/developer/html/ch01s12.html

for how DHIS2 can be used to store file resources.

Data stored there however will not be available for visualization or other
analytics.

Regards,
Jason


On Mon, Jul 25, 2016 at 4:43 PM, Raminosoa Rabemanantsoa, Tantely <
tramino...@mikolo.org> wrote:

> Dear Community,
>
> I would like to use DHIS2, in addition to its classic uses (data capture,
> data analysis and reporting,...), to store a tabular data that is sourced
> from MS Excel spreadsheet (or probably from another database) without any
> link to organization unit, period or dataset. Would it be possible to
> integrate this tabular data directly into a dashboard? Or should I still
> prepare all the data elements to receive the spreadsheet cells values? Or
> what would be the best way to use the DHIS2 database to store the
> spreadsheet-like data? I plan to make this spreadsheet to be available in
> DHIS2 for the users to visualize or to download.
>
> Your suggestions are welcome.
>
> Ragards,
>
> Tantely.
>
> *This message and its attachments are confidential and solely for the
> intended recipients. If received in error, please delete them and notify
> the sender via reply e-mail immediately.*
> ___
> 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
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Analytics and disk space

2016-07-26 Thread Jason Pickering
Hi Devs,
I am seeking some advice on how to try and decrease the amount of disk
usage with DHIS2.

Here is a list of the biggest tables in the system.

 public.datavalue   | 2316 MB
 public.datavalue_pkey | 1230 MB
 public.in_datavalue_lastupdated  | 680 MB


There are a lot more tables, and all in all, the database occupies about
5.4 GB without analytics.

This represents about 30 million data rows, so not that big of a database
really. This server is being run off of a Digital Ocean virtual server with
60 GB of disk space. The only thing on the server really is Linux,
Postgresql and Tomcat. Nothing else. With out analytics and everything
installed for the system, we have about 23% of that 60 GB free.

When analytics runs, it maintains a copy of the main analytics tables (
analytics_) and creates temp tables like analytics_temp_2004. When
things are finished and the indexes are built, the tables are swapped. This
ensures that analytics resources are available while analytics are being
built, but the downside of this is that A LOT more disk space is required,
as now we effectively have two copies of the tables along with all their
indexes, which are quite large themselves (up to 60% the size of the table
itself).  Here's what happens when analytics is run

 public.analytics_temp_2015  | 1017 MB
 public.analytics_temp_2014  | 985 MB
 public.analytics_temp_2011  | 952 MB
 public.analytics_temp_2010  | 918 MB
 public.analytics_temp_2013  | 885 MB
 public.analytics_temp_2012  | 835 MB
 public.analytics_temp_2009  | 804 MB

Now each analytics table is taking about 1 GB of space. In the end, it adds
up to more than 60 GB and analytics fails to complete.

So, while I understand the need for this functionality, I am wondering if
we need a system option to allow the analytics tables to be dropped prior
to regenerating them, or to have more control over the order in which they
are generated (for instance to generate specific periods). I realize this
can be done from the API or the scheduler, but only for the past three
relative years.

 The reason I am asking for this is because its a bit of a pain (at the
moment) when using Digital Ocean as a service provider, since their stock
disk storage is 60 GB. With other VPS providers (Amazon, Linode), its a bit
easier, but DigitalOcean only supports block storage in two regions at the
moment. Regardless, it would seem somewhat wasteful to have to have such a
large amount of disk space, for such a relatively small database.

Is this something we just need to plan for and maybe provide better
documentation on, or should we think about trying to offer better
functionality for people running smaller servers?

Regards,
Jason
___
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] Upgrading DHIS2 from version 2.5 to 2.22

2016-07-27 Thread Jason Pickering
Hi Gerald,

I upgraded a system recently from 2.10 to 2.22, and it went pretty well
actually. There are some things you need to look out for along the way,
particular changes in the model, like duplication in orgunit groups, unique
(or non-unique codes) etc. I found it useful to turn on the Postgresql
logging during the process as certain errors may only be clearly visible in
the logs of the database, and not always through DHIS2.

Most versions seem to be availble from

https://www.dhis2.org/download/releases/2.XX/dhis.war

where XX is the version which you need. Otherwise, you may need to build it
from source code.

I do agree with Knut, that attempting an export /import to something like
2.12 might be a good start,but this has lots of limitations, so a
step-by-step upgrade would be the best way.

Regards and good luck,
Jason


On Wed, Jul 27, 2016 at 2:54 PM, gerald thomas 
wrote:

> Thanks Knut, they are currently doing data entry till August 15. I will
> start on the 16 or 17 and i will keep you informed.
>
> On Jul 27, 2016 12:49 PM, "Knut Staring"  wrote:
>
>> I suggest you try with 2.16 and let us know how it goes. If problematic,
>> then try a few versions earlier.
>> Knut
>>
>> On 27 Jul 2016 19:12, "gerald thomas"  wrote:
>>
>>> Dear Knut,
>>> Noted!!!
>>> I noticed that upgrade procedures' starts from version 2.16 and the
>>> oldest war file available is 2.7; which means I will have to work blindly
>>> till 2.16 by the grace of God.
>>> HISP India, please can you help because I heard you had done something
>>> like this before.
>>>
>>> On Jul 27, 2016 12:31 PM, "Knut Staring"  wrote:
>>>
 Gi Gerald,

 Please do not take my suggestion as a fully formed and fool-proof
 procedure. But since you are exporting and then importing into an empty
 instance of a newer version, you will not be messing up your existing data
 (but should still take a backup first).

 Piecewise going through every version with the necessary database
 updates is the safest route and to always be recommended.

 However, this might be difficult in this case, and certainly very
 cumbersome. So I  suggest you give it a try. 2.16 was just a rough number,
 I am not sure it will work,  but this method can help you skip a few
 versions. However, you will have to test the results thoroughly, and
 probably will run into a few obstacles. So it is not a silver bullet,  I'm
 afraid.

 Knut

 On 27 Jul 2016 14:04, "gerald thomas"  wrote:

> Knut,
> That is a very big jump and if it works, it will make my day.
> As per your procedure, I should deploy the 2.16 war file on the newly
> installed DHIS2 with empty database "hmis" and do metadata export of
> everything from the old system which is running on 2.5 war file and 
> finally
> import to the new instance?
> My question again Knut, what is the best method to do this export &
> import: piecewise or everything; if it is piecewise what should I import
> first, second,.. and last?
>
> Thanks for your help
>
> On Jul 26, 2016 15:40, "Knut Staring"  wrote:
>
>> Hi Gerald,
>> I would try to skip a few versions by exporting metadata and data and
>> probably try to import to an intermediate version such as 2.13 or 2.16.
>>
>> On 26 Jul 2016 21:02, "gerald thomas"  wrote:
>>
>>> Dear All,
>>> I am inquiring for both technical guidance and materials to upgrade a
>>> DHIS2 instance from version 2.5 to 2.22.
>>>
>>> I will be grateful for any help anyone can render for me to
>>> successfully achieve this task. Also, i will like to know where i can
>>> get all the old war files.
>>>
>>> --
>>> Regards,
>>>
>>> Gerald
>>>
>>> ___
>>> 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
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Upgrading DHIS2 from version 2.5 to 2.22

2016-07-29 Thread Jason Pickering
Hi Chameera,

I did not really use any scripts for this process when I upgraded a very
old version (although it was not 2.6) . Like I said, it went pretty well. I
monitored both the Tomcat log as well as the Postgresql database log during
startup, and resolved the  problems as they arose.



In general, I would just try and go version to version and get DHIS2 to
start successfully. I am sure you will encounter some issues, but the
startup scripts do a pretty good job of converting the database changes
from one version to the other. When that does not work, then you may have
to craft some custom SQL or potentially delete some things. At a certain
point, duplicate organisation unit groups were allowed, but in one version,
this was "feature" was removed and it caused a startup error. In other
cases the startup scripts do not properly remove or add required columns. I
have also see many problems with boolean nulls, which should be set to
FALSE, otherwise, you will get errors.

You will also need to consider that all users passwords need to be upgraded
past 2.20. We stopped there for a bit and let people reset their passwords,
at least those that really need access. The rest may need to be recovered
or reset.

I suggest you give it a try and then ask specific questions as they arise
if you encounter problems.

Regards,
Jason



On Fri, Jul 29, 2016 at 2:00 PM, Knut Staring  wrote:

> Switching databases is another use case for trying export and import. But
> the emphasis is on trying, not sure how much exists in terms of ready
> scripts that take care of everything. Jason does a lot of R scripting.
> Using Node and the web api is yet another approach. Ideally we should build
> up a library of scrpts both for upgrading, loading from existing sources
> and integrating. There is doubtlessly a whole lot out there, but most of it
> probably tailored to one-off jobs.
>
> Sorry to not offer something more concrete..
>
> On Jul 29, 2016 6:11 PM, "Halvdan Hoem Grelland" 
> wrote:
>
> There is a fairly in-depth collection of resources on migrating to
> PostgreSQL on the official PostgreSQL wiki
> <https://wiki.postgresql.org/wiki/Converting_from_other_Databases_to_PostgreSQL#MySQL>
>
> On Fri, Jul 29, 2016 at 12:03 PM, Chameera Mirihella <
> chameera9...@gmail.com> wrote:
>
>> Hi Jason,
>>
>> HISP India is also in the process of upgrading dhis from 2.7 to 2.23. are
>> there any upgrade scripts available for earlier versions (2.7 - 2.16) ?
>>
>> and also the biggest challenge for us right now is that 2.7 instance run
>> with mysql db, we need to convert it to postgres somewhere in this process.
>> any suggestion is appreciated.
>>
>> Thanks.
>>
>> On Wed, Jul 27, 2016 at 6:37 PM Jason Pickering <
>> jason.p.picker...@gmail.com> wrote:
>>
>>> Hi Gerald,
>>>
>>> I upgraded a system recently from 2.10 to 2.22, and it went pretty well
>>> actually. There are some things you need to look out for along the way,
>>> particular changes in the model, like duplication in orgunit groups, unique
>>> (or non-unique codes) etc. I found it useful to turn on the Postgresql
>>> logging during the process as certain errors may only be clearly visible in
>>> the logs of the database, and not always through DHIS2.
>>>
>>> Most versions seem to be availble from
>>>
>>> https://www.dhis2.org/download/releases/2.XX/dhis.war
>>>
>>> where XX is the version which you need. Otherwise, you may need to build
>>> it from source code.
>>>
>>> I do agree with Knut, that attempting an export /import to something
>>> like 2.12 might be a good start,but this has lots of limitations, so a
>>> step-by-step upgrade would be the best way.
>>>
>>> Regards and good luck,
>>> Jason
>>>
>>>
>>> On Wed, Jul 27, 2016 at 2:54 PM, gerald thomas 
>>> wrote:
>>>
>>>> Thanks Knut, they are currently doing data entry till August 15. I will
>>>> start on the 16 or 17 and i will keep you informed.
>>>>
>>>> On Jul 27, 2016 12:49 PM, "Knut Staring"  wrote:
>>>>
>>>>> I suggest you try with 2.16 and let us know how it goes. If
>>>>> problematic, then try a few versions earlier.
>>>>> Knut
>>>>>
>>>>> On 27 Jul 2016 19:12, "gerald thomas"  wrote:
>>>>>
>>>>>> Dear Knut,
>>>>>> Noted!!!
>>>>>> I noticed that upgrade procedures' starts from version 2.16 and the
>>>>>> oldest war file available is 2.7; which means

Re: [Dhis2-devs] [Dhis2-users] Merge and Deleting Facilities

2016-07-29 Thread Jason Pickering
Hi Gerald,
This has been raised a few times on the list already. There were some
serious flaws with that functionality, and it was removed and has yet to be
put back in place.

In the meantime, you can try this

https://github.com/dhis2/dhis2-utils/blob/master/resources/sql/merge_orgunits.sql

and call it directly from the database with

SELECT * FROM merge_organisationunits('SOURCE', 'DESTINATION', 'STRATEGY');

where

SOURCE = the source orgunit UID
DESTINATION = the destination orgunit UID
STRATEGY= one of  SUM,MAX,MIN,AVG,LAST,FIRST

each of those paramaters should be encased with single-quotes.


It goes without saying, this should be thoroughly tested on your
non-production system before attempting it on your production machine, as
it is a destructive function (meaning things get permanently deleted).

Regards,
Jason


On Fri, Jul 29, 2016 at 6:05 PM, gerald thomas 
wrote:

> Dear All,
> On previous DHIS2 version we were using merge for duplicate sites but
> on version 2.22 i can't find merge. Please can someone help me?
>
> Also, after merging i will like to remove the duplicate facility, what
> are the procedures to remove or delete a facility.
>
> Thanks in advance for your help
>
> --
> Regards,
>
> Gerald
>
> ___
> 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
>



-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Merge and Deleting Facilities

2016-07-29 Thread Jason Pickering
They are deleted when you perform the merge by that function.

On Fri, Jul 29, 2016, 19:01 gerald thomas  wrote:

> Dear Jason,
> Thanks for your help and i will do a test on my laptop.
>
> How can i delete these facilities after merging
>
> On 7/29/16, Jason Pickering  wrote:
> > Hi Gerald,
> > This has been raised a few times on the list already. There were some
> > serious flaws with that functionality, and it was removed and has yet to
> be
> > put back in place.
> >
> > In the meantime, you can try this
> >
> >
> https://github.com/dhis2/dhis2-utils/blob/master/resources/sql/merge_orgunits.sql
> >
> > and call it directly from the database with
> >
> > SELECT * FROM merge_organisationunits('SOURCE', 'DESTINATION',
> 'STRATEGY');
> >
> > where
> >
> > SOURCE = the source orgunit UID
> > DESTINATION = the destination orgunit UID
> > STRATEGY= one of  SUM,MAX,MIN,AVG,LAST,FIRST
> >
> > each of those paramaters should be encased with single-quotes.
> >
> >
> > It goes without saying, this should be thoroughly tested on your
> > non-production system before attempting it on your production machine, as
> > it is a destructive function (meaning things get permanently deleted).
> >
> > Regards,
> > Jason
> >
> >
> > On Fri, Jul 29, 2016 at 6:05 PM, gerald thomas 
> > wrote:
> >
> >> Dear All,
> >> On previous DHIS2 version we were using merge for duplicate sites but
> >> on version 2.22 i can't find merge. Please can someone help me?
> >>
> >> Also, after merging i will like to remove the duplicate facility, what
> >> are the procedures to remove or delete a facility.
> >>
> >> Thanks in advance for your help
> >>
> >> --
> >> Regards,
> >>
> >> Gerald
> >>
> >> ___
> >> 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
> >>
> >
> >
> >
> > --
> > Jason P. Pickering
> > email: jason.p.picker...@gmail.com
> > tel:+46764147049
> >
>
>
> --
> Regards,
>
> Gerald
>
___
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] Possible removal of mobile "light" and mobile "smartphone" in 2.25

2016-08-01 Thread Jason Pickering
I know that this was being used by the team in Ethiopia and Zambia, so I
might hold off removing it until we can get confirmation from them.



On Mon, Aug 1, 2016 at 1:28 PM, Morten Olav Hansen  wrote:

> Hi mobile team
>
> Any comments?
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
> On Wed, Jul 27, 2016 at 4:38 PM, Ifeanyi Okoye 
> wrote:
>
>> Hello Morten,
>> We are using mainly for data capture.
>>
>> The smartphone module is a bit more flexible than the android app. We are
>> using android phones and have the data entry app installed on the phones.
>> We have had instances where the users entered data for several months at a
>> stretch using the app and we could not find the data in the database
>> (possibly a network issue). If the app can be upgraded to simulate the
>> smartphone module, it would prove more useful. For example, you do not get
>> a completed entry report using the app each time a user submits data, which
>> you get using the module. Also, the messaging function is quite a useful
>> tool.
>>
>> Thanks
>>
>>
>> Warm Regards,
>>
>> Ifeanyi
>>
>> Read DrMaestro's Blog
>> www.ifeanyiokoye.com
>>
>>
>> --
>> *From:* Morten Olav Hansen 
>> *To:* Ifeanyi Okoye 
>> *Cc:* Prosper BT ; dhis2-users <
>> dhis2-us...@lists.launchpad.net>; dhis2-devs <
>> dhis2-devs@lists.launchpad.net>
>> *Sent:* Wednesday, July 27, 2016 3:27 PM
>>
>> *Subject:* Re: [Dhis2-users] Possible removal of mobile "light" and
>> mobile "smartphone" in 2.25
>>
>> Hi Ifeanyi
>>
>> What version of DHIS2 are you on? are you using it mainly for data
>> collection, or also messaging?
>>
>> What kind of phones are they using? have you also tried our Android
>> clients?
>>
>> --
>> Morten Olav Hansen
>> Senior Engineer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org
>>
>> On Wed, Jul 27, 2016 at 4:20 PM, Ifeanyi Okoye 
>> wrote:
>>
>> Dear Morten,
>> Our program uses the Smartphone module for our outreach sites.
>> Thanks
>>
>>
>> Warm Regards,
>>
>> Ifeanyi
>>
>> Read DrMaestro's Blog
>> www.ifeanyiokoye.com
>>
>>
>> --
>> *From:* Prosper BT 
>> *To:* Morten Olav Hansen 
>> *Cc:* dhis2-users ; dhis2-devs <
>> dhis2-devs@lists.launchpad.net>
>> *Sent:* Wednesday, July 27, 2016 2:30 PM
>> *Subject:* Re: [Dhis2-users] Possible removal of mobile "light" and
>> mobile "smartphone" in 2.25
>>
>> Dear Morten,
>>
>> For HISP Uganda uses we have never used them at all. We are okay with
>> them going
>>
>> Regards
>>
>> On Wed, Jul 27, 2016 at 3:03 PM, Morten Olav Hansen 
>> wrote:
>>
>> Hi everyone
>>
>> We are thinking of possibly removing these 2 projects from DHIS 2 Core in
>> 2.25 release, but we wanted to know if anyone is still using them?
>>
>> They haven't been updated in a very long time (4-5 releases at least) and
>> is not updated to work with any of the latest model changes.
>>
>> --
>> Morten Olav Hansen
>> Senior Engineer, DHIS 2
>> University of Oslo
>> 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
>>
>>
>>
>>
>> --
>> 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
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Possible removal of mobile "light" and mobile "smartphone" in 2.25

2016-08-02 Thread Jason Pickering
Hi Araz,
OK, that is good news. I understand Morten's point about the translations
being "free" now, as they are essentially supported out of the box.

I think it would be good if we could experiment with this, and to that end,
I have setup a translation project here on the translation server (
https://translate.dhis2.org/projects/dhis2-android-translations/) which
should allow us to perform the translations and then round-trip them back
to the source code. There are not that many, so it might be good to test
with French or Spanish first and see if it works.

A few more thoughts about this though. Moving people off of one system and
onto another may not be as easy as it sounds. In many cases, phones have
been procured and placed (often in remote areas). People need to be
retrained. This takes time (and often a lot of money). So, once
implementers start using the Light or Smartphone module, it may not be so
easy to change the client (unlike the server). I think if we give the
people who are an upgrade pathway, at least it will allow them time to
plan.

Regards,
Jason


On Tue, Aug 2, 2016 at 10:34 AM, Araz Abishov  wrote:

> Hi everyone,
>
> I will try to answer most of the questions which appeared in the thread.
>
> *Ifeanyi*,
> Could you please expand a little bit on problems you have experienced with
> android clients? Especially this one:
>
> For example, you do not get a completed entry report using the app each
> time a user submits data
>
>
> We are planning to start developing new version of android data capture
> client, so your feedback can help us to solve problems which people
> experience in the field.
>
> *Morten and Jason,*
> In order to translate UI components in android apps we just need to supply
> translations of prompts in .xml. Operating system will pick up translations
> based on system settings (if your phone is running in Norwegian and
> application contains corresponding translations, they will be automatically
> applied to UI). The only problem for us is to provide translations for
> languages which *are not officially supported by android *and there is no
> clean, straightforward way to solve this problem at the moment.
>
> P.S. It is pretty sad that people don’t use android apps only because of
> internationalization problems, we definitely should look into this in near
> future (we can discuss this during academy).
>
> Best regards,
>
> —
> Araz Abishov,
> Android developer, DHIS 2
> University of Oslo
> https://www.dhis2.org/
>
> On August 2, 2016 at 11:57:10 AM, Halvdan Hoem Grelland (halv...@dhis2.org)
> wrote:
>
> Hi,
>
> Which version are you currently using, and what are your future upgrade
> plans?
>
> On Tue, Aug 2, 2016 at 8:32 AM, Collins McAdoyo 
> wrote:
>
>> Dear Jason & Team,
>>
>> Kindly keep mobile versions for now, as mentioned by Sadik, we are using
>> it here in Kenya for field data collection for Malaria project.
>> We would be keen to make arrangements for alternatives.
>>
>> Thanks.
>> Collins
>>
>> On Mon, Aug 1, 2016 at 3:07 PM, sadikngoa  wrote:
>>
>>> Hi Jason and Devs
>>> This is also being used in Kenya for data entry using smart phones at
>>> village level with MACEPA team.
>>> Thanks
>>> Sadik
>>>
>>>
>>>
>>> Sent from Samsung Mobile
>>>
>>>
>>>  Original message 
>>> From: Jason Pickering
>>> Date:08/01/2016 14:39 (GMT+03:00)
>>> To: Morten Olav Hansen
>>> Cc: dhis2-users ,dhis2-devs
>>> Subject: Re: [Dhis2-users] Possible removal of mobile "light" and mobile
>>> "smartphone" in 2.25
>>>
>>> I know that this was being used by the team in Ethiopia and Zambia, so I
>>> might hold off removing it until we can get confirmation from them.
>>>
>>>
>>>
>>> On Mon, Aug 1, 2016 at 1:28 PM, Morten Olav Hansen 
>>> wrote:
>>>
>>>> Hi mobile team
>>>>
>>>> Any comments?
>>>>
>>>> --
>>>> Morten Olav Hansen
>>>> Senior Engineer, DHIS 2
>>>> University of Oslo
>>>> http://www.dhis2.org
>>>>
>>>> On Wed, Jul 27, 2016 at 4:38 PM, Ifeanyi Okoye 
>>>> wrote:
>>>>
>>>>> Hello Morten,
>>>>> We are using mainly for data capture.
>>>>>
>>>>> The smartphone module is a bit more flexible than the android app. We
>>>>> are using android phones and have the data entry app installed on the
>>>>> phones. We have had instances where 

Re: [Dhis2-devs] Flag available in DHIS2 dropdown - Equatorial Guinea

2016-08-02 Thread Jason Pickering
Hi Sergio,
I will take care of it for you.

Regards,
Jason


On Tue, Aug 2, 2016 at 5:16 PM, Sergio Valenzuela <
sergio.valenzu...@ehas.org> wrote:

> Hello devs,
>
> Could it be possible to add the flag of Equatorial Guinea as an option on
> the Settings -> Appearance menu?
>
> Best 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, 28040
> Madrid - España
> Tlfno. (+34) 91 488 87 41: (+34) 687 67 17 62
>
>
>
> ___
> 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
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Flag available in DHIS2 dropdown - Equatorial Guinea

2016-08-02 Thread Jason Pickering
OK. Its done in R23593

Regards,
Jason


On Tue, Aug 2, 2016 at 5:24 PM, Sergio Valenzuela <
sergio.valenzu...@ehas.org> wrote:

> Thanks a lot Jason!
>
> Regards.
>
>
> *Sergio Valenzuela*
> Fundación EHAS
> Telemedicina para países en desarrollo -* www.ehas.org
> <http://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-08-02 17:19 GMT+02:00 Jason Pickering :
>
>> Hi Sergio,
>> I will take care of it for you.
>>
>> Regards,
>> Jason
>>
>>
>> On Tue, Aug 2, 2016 at 5:16 PM, Sergio Valenzuela <
>> sergio.valenzu...@ehas.org> wrote:
>>
>>> Hello devs,
>>>
>>> Could it be possible to add the flag of Equatorial Guinea as an option
>>> on the Settings -> Appearance menu?
>>>
>>> Best Regards!
>>>
>>>
>>> *Sergio Valenzuela*
>>> Fundación EHAS
>>> Telemedicina para países en desarrollo -* www.ehas.org
>>> <http://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
>>>
>>>
>>>
>>> ___
>>> 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
>>>
>>>
>>
>>
>> --
>> Jason P. Pickering
>> email: jason.p.picker...@gmail.com
>> tel:+46764147049
>>
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Dataset Assignation programmatically

2016-08-05 Thread Jason Pickering
Look at https://play.dhis2.org/demo/api/dataSets/lyLU2wR22tC
and you will see something like





So you can just add them there and post the entire payload back. This is
probably the easiest way.

You can also add them one at a time by POSTing
to api/dataSets/A/organisationUnits/B
where A is the dataset UID and B is the organisation unit UID.

You can also insert them directly into the table "datasetsource" with SQL.
You will need to clear your server cache after this for the changes to
become visible.

Regards,
Jaosn



On Fri, Aug 5, 2016 at 11:38 AM, Knut Staring  wrote:

> The best way would be through the Web API.
>
> I think directly in the db might work (you can test it on a copy of your
> db).  You will have to clear the server cache or restart.
>
> You should also consider an upgrade, as you are a lot of versions behind
> now...
>
> Knut
>
> On Fri, Aug 5, 2016 at 11:35 AM, Raminosoa Rabemanantsoa, Tantely <
> tramino...@mikolo.org> wrote:
>
>> Dear All,
>>
>> I would like to ask if someone has already experinced a batch assignation
>> of dataset to organization units directly in DHIS2 database? I have 10
>> datasets to assign to a thousands of orguints (which  will vary in time)
>> and it will be time consuming if using the Data Set Assignment Editor
>> manually. Your suggestions are welcome.
>>
>> I am using DHIS2 2.19.
>>
>> Thank you for your support.
>>
>> Regards,
>>
>> Tantely.
>>
>> *This message and its attachments are confidential and solely for the
>> intended recipients. If received in error, please delete them and notify
>> the sender via reply e-mail immediately.*
>> ___
>> 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
>>
>>
>
>
> --
> Knut Staring
> Dept. of Informatics, University of Oslo
> Norway: +4791880522
> Skype: knutstar
> http://dhis2.org
>
> ___
> 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
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Dataset Assignation programmatically

2016-08-05 Thread Jason Pickering
There are numerous examples in the documentation about how to work with the
API. Have you had a look there?

This is a good start.

http://dhis2.github.io/dhis2-docs/2.22/en/developer/html/ch01s10.html



On Fri, Aug 5, 2016 at 12:48 PM, Raminosoa Rabemanantsoa, Tantely <
tramino...@mikolo.org> wrote:

> Thank you for your explanation. I had a look at the link and it returned
> the following message instead of what you mentioned:
>
> falsefalsefalseART monthly summaryrw--falsefalseART
> 2010falsefalsefalseCUSTOMfalselyLU2wR22tCfalse220Monthly00RE
> PORTING_RATEtruetruefalsetruetruetruerw--L4XTzgbdza3WakikiL4XTzgbdza3
>
> In addition to your explanation, could you please point me to a practical
> example of manipulating the data through the web API interface as I am new
> on this?
>
> Regards,
>
> Tantely.
>
> On Fri, Aug 5, 2016 at 12:57 PM, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
>>
>> Look at https://play.dhis2.org/demo/api/dataSets/lyLU2wR22tC
>> and you will see something like
>>
>> 
>> 
>> 
>>
>> So you can just add them there and post the entire payload back. This is
>> probably the easiest way.
>>
>> You can also add them one at a time by POSTing
>> to api/dataSets/A/organisationUnits/B
>> where A is the dataset UID and B is the organisation unit UID.
>>
>> You can also insert them directly into the table "datasetsource" with
>> SQL. You will need to clear your server cache after this for the changes to
>> become visible.
>>
>> Regards,
>> Jaosn
>>
>>
>>
>> On Fri, Aug 5, 2016 at 11:38 AM, Knut Staring  wrote:
>>
>>> The best way would be through the Web API.
>>>
>>> I think directly in the db might work (you can test it on a copy of your
>>> db).  You will have to clear the server cache or restart.
>>>
>>> You should also consider an upgrade, as you are a lot of versions behind
>>> now...
>>>
>>> Knut
>>>
>>> On Fri, Aug 5, 2016 at 11:35 AM, Raminosoa Rabemanantsoa, Tantely <
>>> tramino...@mikolo.org> wrote:
>>>
>>>> Dear All,
>>>>
>>>> I would like to ask if someone has already experinced a batch
>>>> assignation of dataset to organization units directly in DHIS2 database? I
>>>> have 10 datasets to assign to a thousands of orguints (which  will vary in
>>>> time) and it will be time consuming if using the Data Set Assignment Editor
>>>> manually. Your suggestions are welcome.
>>>>
>>>> I am using DHIS2 2.19.
>>>>
>>>> Thank you for your support.
>>>>
>>>> Regards,
>>>>
>>>> Tantely.
>>>>
>>>> *This message and its attachments are confidential and solely for the
>>>> intended recipients. If received in error, please delete them and notify
>>>> the sender via reply e-mail immediately.*
>>>> ___
>>>> 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
>>>>
>>>>
>>>
>>>
>>> --
>>> Knut Staring
>>> Dept. of Informatics, University of Oslo
>>> Norway: +4791880522
>>> Skype: knutstar
>>> http://dhis2.org
>>>
>>> ___
>>> 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
>>>
>>>
>>
>>
>> --
>> Jason P. Pickering
>> email: jason.p.picker...@gmail.com
>> tel:+46764147049
>>
>
>
> *This message and its attachments are confidential and solely for the
> intended recipients. If received in error, please delete them and notify
> the sender via reply e-mail immediately.*
>



-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Analytic does not work in Tracker Capture

2016-08-19 Thread Jason Pickering
Try having a look at your server settings.

And change this to something else, like "Cache for one hour".

This controls how frequently resources are cached by the server, which
would seem to explain why you cannot see results immediately.

If you have other caches in front of DHIS2, that could also be resulting in
this behavior.

Regards,
Jason

​

On Fri, Aug 19, 2016 at 9:56 AM, Rady  wrote:

> Hi Dev,
>
>
>
> I'm using DHIS2 Tracker capture 2.23 Build revision 22977. After I update
> something in Tracker capture and run analytic to immediately show in the
> report I notice that analytic does not work in Tacker capture because
> everything still remains unchanged even after I clear cache and browsing
> history. I need to wait one night for refreshment on the report. I wonder
> if not analytic so what process happen on scheduling to refresh data on
> report after one night?
>
>
>
> Thanks,
> Rady
>
> ___
> 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
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Merge and Deleting Facilities

2016-08-30 Thread Jason Pickering
Hi Guy,

Well, not really sure you can- This functionality has been removed from the
core, so this SQL script is only a work around until it gets back in.

Regards,
Jason


On Tue, Aug 30, 2016 at 11:04 AM, Guy Ekani  wrote:

> hello Jason,
>
> Please how could we run this without creating a function ?
>
> Sincerely
>
> =
> EKANI Guy
>
>
>
>
>
>
> Le Vendredi 29 juillet 2016 18h16, Jason Pickering <
> jason.p.picker...@gmail.com> a écrit :
>
>
> They are deleted when you perform the merge by that function.
>
> On Fri, Jul 29, 2016, 19:01 gerald thomas  wrote:
>
> Dear Jason,
> Thanks for your help and i will do a test on my laptop.
>
> How can i delete these facilities after merging
>
> On 7/29/16, Jason Pickering  wrote:
> > Hi Gerald,
> > This has been raised a few times on the list already. There were some
> > serious flaws with that functionality, and it was removed and has yet to
> be
> > put back in place.
> >
> > In the meantime, you can try this
> >
> > https://github.com/dhis2/dhis2-utils/blob/master/
> resources/sql/merge_orgunits.sql
> >
> > and call it directly from the database with
> >
> > SELECT * FROM merge_organisationunits('SOURCE', 'DESTINATION',
> 'STRATEGY');
> >
> > where
> >
> > SOURCE = the source orgunit UID
> > DESTINATION = the destination orgunit UID
> > STRATEGY= one of  SUM,MAX,MIN,AVG,LAST,FIRST
> >
> > each of those paramaters should be encased with single-quotes.
> >
> >
> > It goes without saying, this should be thoroughly tested on your
> > non-production system before attempting it on your production machine, as
> > it is a destructive function (meaning things get permanently deleted).
> >
> > Regards,
> > Jason
> >
> >
> > On Fri, Jul 29, 2016 at 6:05 PM, gerald thomas 
> > wrote:
> >
> >> Dear All,
> >> On previous DHIS2 version we were using merge for duplicate sites but
> >> on version 2.22 i can't find merge. Please can someone help me?
> >>
> >> Also, after merging i will like to remove the duplicate facility, what
> >> are the procedures to remove or delete a facility.
> >>
> >> Thanks in advance for your help
> >>
> >> --
> >> Regards,
> >>
> >> Gerald
> >>
> >> ___
> >> 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
> >>
> >
> >
> >
> > --
> > Jason P. Pickering
> > email: jason.p.picker...@gmail.com
> > tel:+46764147049
> >
>
>
> --
> Regards,
>
> Gerald
>
>
> ___
> 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
>
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Groups - Tables

2016-09-11 Thread Jason Pickering
Hi Tantely,

1- the table where are stored all organization units groups with the list
of their members.

\d orgunitgroupmembers

2- the table where are stored the datasets assigned to the organization
units

\d datasetsource

3- the table where are stored the organization units assigned to all users

\d usermembership

You should not really try and update these tables manually. Its much better
to use the API.


Regards,
Jason



On Mon, Sep 12, 2016 at 7:52 AM, Raminosoa Rabemanantsoa, Tantely <
tramino...@mikolo.org> wrote:

> Dear Members,
>
> I am looking for 3 database tables:
>
> 1- the table where are stored all organization units groups with the list
> of their members.
> 2- the table where are stored the datasets assigned to the organization
> units
> 3- the table where are stored the organization units assigned to all users
>
> Does anyone know in which tables should I query to select and update their
> records? I am using DHIS2 2.19 and I connect to the DHIS2 database directly
> with psql.
>
> Thank you for your advice.
>
> Regards,
>
> Tantely.
>
> *This message and its attachments are confidential and solely for the
> intended recipients. If received in error, please delete them and notify
> the sender via reply e-mail immediately.*
> ___
> 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
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Analytics and disk space

2016-09-12 Thread Jason Pickering
Hi Lars,

You are right in that most of this is available via the API, but making a
little bit easier for people through the UI would seem to be a quick win
really. Previously when the datamart was in use, one could choose specific
time periods to regenerate data for, but no longer.Currently, users who use
the UI can only execute a full-analytics run, which is really the basis of
this request. In this particular situation, a full analytics run caused the
server to choke up, due to lack of disk space and the manner in which the
analytics tables are (re)generated.

 Hopefully the new scheduling functionality will allow for better control
over analytics, without users always having to resort to a curl call to the
API.

Regards,
Jason


On Mon, Sep 12, 2016 at 8:42 AM, Lars Helge Øverland  wrote:

> Hi there,
>
> thanks for the feedback. Most of what's requested is available in the API.
> It's on our list to rewrite the import-export app and write a better
> scheduling manager for background tasks such analytics generation.
>
> In the meantime:
>
> - Analytics tables generation
> <http://dhis2.github.io/dhis2-docs/master/en/developer/html/webapi_generating_resource_analytics_tables.html>
>  for
> last x years
> - Data value export
> <http://dhis2.github.io/dhis2-docs/master/en/developer/html/webapi_data_values.html#d0e3600>
> (lastUpdated, lastUpdatedDuration, orgUnit params)
>
>
> regards,
>
> Lars
>
>
>
> On Sun, Sep 11, 2016 at 5:20 PM, David Siang Fong Oh  > wrote:
>
>> I think Jason also pointed out that this could be achieved from the API,
>> but the question is whether it needs to be more user-friendly, i.e.
>> customisable using the web application as opposed to requiring a custom
>> script triggered by a cron job.
>>
>> Cheers,
>>
>> -doh
>>
>> On Sun, Sep 11, 2016 at 8:36 PM, Dan Cocos  wrote:
>>
>>> Hi All,
>>>
>>> You could run this
>>> /api/24/maintenance/analyticsTablesClear
>>> and this possibly this
>>> /api/24/maintenance/periodPruning
>>>
>>> I don't see it in the documentation but we use call this
>>>  /api/resourceTables/analytics?lastYears=2 quite often for clients with
>>> a lot of historical data.
>>>
>>> Good luck,
>>> Dan
>>>
>>> *Dan Cocos*
>>> Principal, BAO Systems
>>> dco...@baosystems.com  | http:/
>>> /www.baosystems.com |  2900 K Street, Suite 404, Washington D.C. 20007
>>>
>>>
>>>
>>>
>>>
>>> On Sep 11, 2016, at 10:05 AM, Calle Hedberg 
>>> wrote:
>>>
>>> Hi,
>>>
>>> It's not only analytics that would benefit from segmented/staggered
>>> processing: I exported around 100 mill data values yesterday from a number
>>> of instance, and found that the export process was (seemingly)
>>> exponentially slower with increasing number of records exported. Most of
>>> the export files contained well under 10 mill records, which was pretty
>>> fast. In comparison, the largest export file with around 30 mill data
>>> values probably took 20 times as much time as an 8 mill value export. Based
>>> on just keeping an eye on the "progress bar", it seemed like some kind of
>>> cache staggering was taking place - the amount exported would increase
>>> quickly by 2-3mb, then "hang" for a good while, then increase quickly by
>>> 2-3mb again.
>>>
>>> Note also that there are several fundamental strategies one could use to
>>> reducing heavy work processes like analytics, exports (and thus imports),
>>> etc:
>>> - to be able to specify a sub-period as Jason's suggest
>>> - to be able to specify the "dirty" part of the instance by using e.g.
>>> LastUpdated >= x
>>> - to be able to specify a sub-OrgUnit-area
>>>
>>> These partial strategies are of course mostly relevant for very large
>>> instances, but such large instances are also the ones where you typically
>>> only have changes made to a small segment of the total - like if you have
>>> data for 30 years, 27 of those might be locked down and no longer available
>>> for updates.
>>>
>>> Regards
>>> Calle
>>>
>>> On 11 September 2016 at 15:47, David Siang Fong Oh >> > wrote:
>>>
>>>> +1 to Calle's idea of staggering analytics year by year
>>>>
>>>> I also like Jason's suggestion of being able to configure the time
>>>> period for which analytics i

Re: [Dhis2-devs] Flag available in DHIS2 dropdown - Equatorial Guinea

2016-09-13 Thread Jason Pickering
Hi Sergio,
I have added it here
<https://github.com/dhis2/dhis2-core/commit/310618fa06832da4f50482ab60a74f992a23fd74>
.

Regards,
Jason


On Tue, Sep 13, 2016 at 1:26 PM, Sergio Valenzuela <
sergio.valenzu...@ehas.org> wrote:

> Hello devs,
>
> Would it be possible to incluide the Equatorial Guinea Flag to the latest
> build of 2.24 version?
>
> Regards!
>
>
> *Sergio Valenzuela*
> Fundación EHAS
> Telemedicina para países en desarrollo -* www.ehas.org
> <http://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-08-02 18:21 GMT+02:00 Sergio Valenzuela :
>
>> I have just checked it. Thanks Jason.
>>
>> Regards.
>>
>>
>> *Sergio Valenzuela*
>> Fundación EHAS
>> Telemedicina para países en desarrollo -* www.ehas.org
>> <http://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-08-02 17:34 GMT+02:00 Jason Pickering :
>>
>>> OK. Its done in R23593
>>>
>>> Regards,
>>> Jason
>>>
>>>
>>> On Tue, Aug 2, 2016 at 5:24 PM, Sergio Valenzuela <
>>> sergio.valenzu...@ehas.org> wrote:
>>>
>>>> Thanks a lot Jason!
>>>>
>>>> Regards.
>>>>
>>>>
>>>> *Sergio Valenzuela*
>>>> Fundación EHAS
>>>> Telemedicina para países en desarrollo -* www.ehas.org
>>>> <http://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-08-02 17:19 GMT+02:00 Jason Pickering >>> >:
>>>>
>>>>> Hi Sergio,
>>>>> I will take care of it for you.
>>>>>
>>>>> Regards,
>>>>> Jason
>>>>>
>>>>>
>>>>> On Tue, Aug 2, 2016 at 5:16 PM, Sergio Valenzuela <
>>>>> sergio.valenzu...@ehas.org> wrote:
>>>>>
>>>>>> Hello devs,
>>>>>>
>>>>>> Could it be possible to add the flag of Equatorial Guinea as an
>>>>>> option on the Settings -> Appearance menu?
>>>>>>
>>>>>> Best Regards!
>>>>>>
>>>>>>
>>>>>> *Sergio Valenzuela*
>>>>>> Fundación EHAS
>>>>>> Telemedicina para países en desarrollo -* www.ehas.org
>>>>>> <http://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
>>>>>>
>>>>>>
>>>>>>
>>>>>> ___
>>>>>> 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
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Jason P. Pickering
>>>>> email: jason.p.picker...@gmail.com
>>>>> tel:+46764147049
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Jason P. Pickering
>>> email: jason.p.picker...@gmail.com
>>> tel:+46764147049
>>>
>>
>>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Data elements with both option set and free text

2016-09-26 Thread Jason Pickering
Hi ,
I hope that this was removed, as it has proven to be a source of problems
when using option sets. The reason is that if you allow people to put
whatever into that box, they will do exactly that, rendering results in
analytics basically useless. So, the correct way would be to have an option
set like

1) Foo
2) Bar
3) Baz
4) Other

with a textual data element like "Specify". That way, you can get useful
analytics results out of the majority of responses, and then have to deal
with a means of classifying those which fall into other.

Othrewise, you may as well just allow people to enter free-text, rendering
any analysis much more difficult if not impossible due to the amount of
garbage which will result during data entry.

That's my take on it.

Regards,
Jason


On Mon, Sep 26, 2016 at 10:51 AM, Calle Hedberg 
wrote:

> Olav,
>
> Yes, either that or using the comment field for the "other" text. Having a
> text element with a drop-down but not limited to the drop-down values is a
> very basic feature, though
>
> Let's hear if anybody else has a different take on it...
>
> Regards
> Calle
>
> On 26 September 2016 at 09:23, Olav Poppe  wrote:
>
>> Hi Calle,
>> pretty sure that this is *not* possible (though I would be happy to be
>> proven wrong!), and that the closest you can get today is having an "other"
>> option in the option set and using program rules to show another data
>> element for the free text when "other" is selected.
>>
>> Olav
>>
>>
>> 25. sep. 2016 kl. 22.56 skrev Calle Hedberg :
>>
>> Hi,
>>
>> This might be one of those "answer is under your nose" aka RTFM
>> questions, but here goes (version 2.24):
>>
>> How can I specify an option set (drop-down, text options) for a data
>> element while also enabling users to type in any other free text value?
>>
>> (or in other words, "Limit element to options in option set = FALSE")
>>
>> Best 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
>>
>> ***
>>
>> ___
>> 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
>>
>>
>>
>
>
> --
>
> ***
>
> 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
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Data elements with both option set and free text

2016-09-26 Thread Jason Pickering
Hi Calle,

The problem as I see it still in the current version is that it is actually
possible to do exactly this. If you use curl, you can upload a value which
is not part of the option set. If the option set has a numeric value type,
you can upload any option, not just those which are part of the option set.
I thought this had actually been fixed, but it seems not to be the case.
So, I suppose using a custom form, you could create a control to allow
people to enter data from a list, or to specify it.

Thus, I suppose you could utilize this "feature" to upload what you please,
as long as the option set is set to be "text". I would regard this as a bug
or un-implemented feature, but it might be useful in your case.

Regards,
Jason


On Mon, Sep 26, 2016 at 11:16 AM, Calle Hedberg 
wrote:

> Jason/Olav,
>
> I understand that rationale - even if I'm commonly arguing that the
> "other" option should not be there at all (in the majority of cases I've
> come across the last 30 years, those "others" cannot be classified in any
> meaningful way). I just wanted to know if it was possible since there are
> some cases - generally the options/text are more of the "rich picture" type
> unlikely to be used for any type of analysis - where it would simplify
> things.
>
> With both of you sort of agreeing that it is not there, and I have not
> found it in the manuals, I presume it actually IS not an option.
>
> Thanks for the rapid and thorough responses!
>
> Regards
> Calle
>
> On 26 September 2016 at 11:01, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
>> Hi ,
>> I hope that this was removed, as it has proven to be a source of problems
>> when using option sets. The reason is that if you allow people to put
>> whatever into that box, they will do exactly that, rendering results in
>> analytics basically useless. So, the correct way would be to have an option
>> set like
>>
>> 1) Foo
>> 2) Bar
>> 3) Baz
>> 4) Other
>>
>> with a textual data element like "Specify". That way, you can get useful
>> analytics results out of the majority of responses, and then have to deal
>> with a means of classifying those which fall into other.
>>
>> Othrewise, you may as well just allow people to enter free-text,
>> rendering any analysis much more difficult if not impossible due to the
>> amount of garbage which will result during data entry.
>>
>> That's my take on it.
>>
>> Regards,
>> Jason
>>
>>
>> On Mon, Sep 26, 2016 at 10:51 AM, Calle Hedberg 
>> wrote:
>>
>>> Olav,
>>>
>>> Yes, either that or using the comment field for the "other" text. Having
>>> a text element with a drop-down but not limited to the drop-down values is
>>> a very basic feature, though
>>>
>>> Let's hear if anybody else has a different take on it...
>>>
>>> Regards
>>> Calle
>>>
>>> On 26 September 2016 at 09:23, Olav Poppe  wrote:
>>>
>>>> Hi Calle,
>>>> pretty sure that this is *not* possible (though I would be happy to be
>>>> proven wrong!), and that the closest you can get today is having an "other"
>>>> option in the option set and using program rules to show another data
>>>> element for the free text when "other" is selected.
>>>>
>>>> Olav
>>>>
>>>>
>>>> 25. sep. 2016 kl. 22.56 skrev Calle Hedberg :
>>>>
>>>> Hi,
>>>>
>>>> This might be one of those "answer is under your nose" aka RTFM
>>>> questions, but here goes (version 2.24):
>>>>
>>>> How can I specify an option set (drop-down, text options) for a data
>>>> element while also enabling users to type in any other free text value?
>>>>
>>>> (or in other words, "Limit element to options in option set = FALSE")
>>>>
>>>> Best 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
>>>>
>>>> ***

Re: [Dhis2-devs] how could i save some value in "Datavalue" table for input with "No Value" radio button ?

2016-09-27 Thread Jason Pickering
Create an option set with three options

1) True
2) False
3) No value

and assign that to the data element as its option set instead of using of
the default Yes/No and Yes only types.

Regards,
Jason



On Tue, Sep 27, 2016 at 11:22 AM, Brajesh Murari 
wrote:

> Hello Dev,
>
> Since i am assigning a dataelement with data type value (yes/no) to a
> dataset, and when i am doing data entry for period type monthly,
> the input appears with three different type of values with radio buttons
> ie, "No value","Yes","No".
>
> Here, if i am selecting input with "No" radio button, it saves as "False"
> as value in "Datavalue" table.
> Or, if i am selecting input with "Yes" radio button, it saves as "True" as
> value in "Datavalue" table.
> Or, if i am selecting input with "No Value" radio button, it doe't saves
> anything as value in "Datavalue" table.
>
> My question is, for some specific requirement, how could i save some value
> in "Datavalue" table for input with "No Value" radio button ?
>
> --
> ---
> Thanks and Regards
>
> Brajesh Murari
>
>
> ___
> 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
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] UID generation

2016-09-29 Thread Jason Pickering
If you are using Postgres to inject the data directly, you can use this

https://github.com/dhis2/dhis2-utils/blob/master/resources/sql/uid.sql

Regards,
Jason

On Thu, Sep 29, 2016 at 11:23 AM, Lars Helge Øverland 
wrote:

> In fact,  generateCode(); will do.
>
> Lars
>
>
> On Thu, Sep 29, 2016 at 11:23 AM, Lars Helge Øverland 
> wrote:
>
>> Hi Arun,
>>
>> if you are using the DHIS 2 Java service layers there is no need to
>> manually generate and set UIDs. They will be automatically set before the
>> object is saved.
>>
>> To generate UIDs you should use this class: org.hisp.dhis.commonCodeGenerator
>> -> generateCode( 11 );
>>
>> Javadoc:
>>
>> http://ci.dhis2.org/job/dhis2-2.24-javadoc/javadoc/org/hisp/
>> dhis/common/CodeGenerator.html
>>
>>
>>
>> regards,
>>
>> Lars
>>
>>
>> On Thu, Sep 29, 2016 at 11:17 AM, Arun Paul  wrote:
>>
>>> Hello everyone,
>>>
>>> I am trying to import legacy data into a new DHIS2 installation using
>>> custom code.
>>>
>>> While adding new entries into a database table, I need to assign new UID
>>> values. What is the algorithm I should use to generated these IDs ? I tried
>>> using a postgresql extension called uuid-ossp and the
>>> function uuid_generate_v1() that comes with that extension. But it
>>> generates uuid of the format ebe87e56-8624-11e6-a4ce-040157be4e01 and
>>> it's bigger than what CHARACTER VARYING(11) can hold. Any idea what
>>> strategy should I follow here to easily generate UIDs while inserting
>>> database entries?
>>>
>>> Thanks in advance.
>>> - Arun Paul
>>>
>>> ___
>>> 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
>>>
>>>
>>
>>
>> --
>> Lars Helge Øverland
>> Lead developer, DHIS 2
>> University of Oslo
>> Skype: larshelgeoverland
>> l...@dhis2.org
>> http://www.dhis2.org 
>>
>>
>
>
> --
> 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-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] CORS: accessing HTTP from HTTPS

2016-09-29 Thread Jason Pickering
Maybe http://my-dhis2-analytics-call.json/?etc needs to be
https://my-dhis2-analytics-call.json/?etc ?

On Thu, Sep 29, 2016 at 1:09 PM, Greg Rowles  wrote:

> Hi Devs
>
> Sorry, I'm running into all kinds of issues with CORS today:
>
> Mixed Content: The page at 'https://my-source-page.html' was loaded over
> HTTPS, but requested an insecure XMLHttpRequest endpoint '
> http://my-dhis2-analytics-call.json?etc'. This request has been blocked;
> the content must be served over HTTPS.
>
> Any suggestions for amending my ajax call below? I'm accessing http from
> https, guessing my headers:need to be configured correctly:
>
>
>  $.ajax({
> url: base + dxAPI,
> headers: { "Authorization": 'Basic ' + btoa(user + ':' + pwd) },
> timeout: 3,
> crossDomain: true,
> success : function(data){ ...etc
>
> Works wonderfully from regular HTTP.
>
> Regards,
> Greg
>
>
> --
> *Health Information Systems Program - South Africa*
> *- - - - - - - **- - - - - - - **- - - - - - - **- - - - - - - **- - - -
> - *
> Mobile  :073 246 2992
> Landline:   021 851 2216
> Skype:  gregory_rowles
>
> ___
> 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
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Cannot change locale in DEV

2016-10-03 Thread Jason Pickering
Hi Devs,
There seem to be some issues updating a users locale in the latest dev
snapshot. It is not possible to update a users locale.

POST to

https://play.dhis2.org/dev/api/25/userSettings/keyUiLocale

with "es" (the header sent by the app when swtiching from English to
Spanish)

yields an HTTP 500

{
  "httpStatus": "Internal Server Error",
  "httpStatusCode": 500,
  "status": "ERROR",
  "message": "Invalid locale format: \"es\""
}


With GET to the same URL yields

Unexpected 'e'

which seems strange.

Version:2.25-SNAPSHOT
Build revision:0cf6645

Regards,
Jason

-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Cannot change locale in DEV

2016-10-03 Thread Jason Pickering
OK. I tried a direct post without the app,and got the same thing. Will try
again however just to be sure.

Regards,
Jason

On Mon, Oct 3, 2016, 2:04 PM Nicolay Ramm  wrote:

> Hi Jason,
>
> is this happening with the settings app? It sounds like an issue that was
> fixed recently, where plain text values were being encoded as JSON.
>
> As long as you're running v25.0.5 or higher of the settings app, you
> should be fine. Check the browser console when you start the app. The
> version included with the latest snapshot should actually be v25.0.6, so
> your browser cache may be stale.
>
>
> Best regards,
>
>
> Nicolay Ramm
> Front end developer, DHIS 2
> University of Oslo
> https://www.dhis2.org
>
> On Mon, Oct 3, 2016 at 9:32 AM, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
> Hi Devs,
> There seem to be some issues updating a users locale in the latest dev
> snapshot. It is not possible to update a users locale.
>
> POST to
>
> https://play.dhis2.org/dev/api/25/userSettings/keyUiLocale
>
> with "es" (the header sent by the app when swtiching from English to
> Spanish)
>
> yields an HTTP 500
>
> {
>   "httpStatus": "Internal Server Error",
>   "httpStatusCode": 500,
>   "status": "ERROR",
>   "message": "Invalid locale format: \"es\""
> }
>
>
> With GET to the same URL yields
>
> Unexpected 'e'
>
> which seems strange.
>
> Version:2.25-SNAPSHOT
> Build revision:0cf6645
>
> Regards,
> Jason
>
> --
> Jason P. Pickering
> email: jason.p.picker...@gmail.com
> tel:+46764147049
>
> ___
> 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] Cannot change locale in DEV

2016-10-03 Thread Jason Pickering
OK, I tried in incognito mode on https://play.dhis2.org/dev/ and got the
same error.

Still cache?

Regards,
Jason


On Mon, Oct 3, 2016 at 2:20 PM, Nicolay Ramm  wrote:

> Keep in mind that the system settings API endpoint only accepts
> text/plain, not json. So the value should be just es without quotes, not
> "es" with quotes:
>
> curl -u admin:district https://play.dhis2.org/dev/
> api/systemSettings/keyUiLocale -X POST -H 'Content-Type: text/plain' -d es
>
>
> Nicolay Ramm
> Front end developer, DHIS 2
> University of Oslo
> https://www.dhis2.org
>
> On Mon, Oct 3, 2016 at 2:13 PM, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
>> OK. I tried a direct post without the app,and got the same thing. Will
>> try again however just to be sure.
>>
>> Regards,
>> Jason
>>
>>
>> On Mon, Oct 3, 2016, 2:04 PM Nicolay Ramm  wrote:
>>
>>> Hi Jason,
>>>
>>> is this happening with the settings app? It sounds like an issue that
>>> was fixed recently, where plain text values were being encoded as JSON.
>>>
>>> As long as you're running v25.0.5 or higher of the settings app, you
>>> should be fine. Check the browser console when you start the app. The
>>> version included with the latest snapshot should actually be v25.0.6, so
>>> your browser cache may be stale.
>>>
>>>
>>> Best regards,
>>>
>>>
>>> Nicolay Ramm
>>> Front end developer, DHIS 2
>>> University of Oslo
>>> https://www.dhis2.org
>>>
>>> On Mon, Oct 3, 2016 at 9:32 AM, Jason Pickering <
>>> jason.p.picker...@gmail.com> wrote:
>>>
>>>> Hi Devs,
>>>> There seem to be some issues updating a users locale in the latest dev
>>>> snapshot. It is not possible to update a users locale.
>>>>
>>>> POST to
>>>>
>>>> https://play.dhis2.org/dev/api/25/userSettings/keyUiLocale
>>>>
>>>> with "es" (the header sent by the app when swtiching from English to
>>>> Spanish)
>>>>
>>>> yields an HTTP 500
>>>>
>>>> {
>>>>   "httpStatus": "Internal Server Error",
>>>>   "httpStatusCode": 500,
>>>>   "status": "ERROR",
>>>>   "message": "Invalid locale format: \"es\""
>>>> }
>>>>
>>>>
>>>> With GET to the same URL yields
>>>>
>>>> Unexpected 'e'
>>>>
>>>> which seems strange.
>>>>
>>>> Version:2.25-SNAPSHOT
>>>> Build revision:0cf6645
>>>>
>>>> Regards,
>>>> Jason
>>>>
>>>> --
>>>> Jason P. Pickering
>>>> email: jason.p.picker...@gmail.com
>>>> tel:+46764147049
>>>>
>>>> ___
>>>> 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
>>>>
>>>>
>>>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Cannot change locale in DEV

2016-10-03 Thread Jason Pickering
Browser = Version 53.0.2785.116 (64-bit )  on Ubuntu

All I am doing is changing the locale from English to Spanish (or vice
versa).




On Mon, Oct 3, 2016 at 2:30 PM, Nicolay Ramm  wrote:

> I also tried in incognito mode on https://play.dhis2.org/dev/ and I got
> no error..
>
> What exactly are you doing? And which browser/version are you on?
>
>
> Nicolay Ramm
> Front end developer, DHIS 2
> University of Oslo
> https://www.dhis2.org
>
> On Mon, Oct 3, 2016 at 2:27 PM, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
>> OK, I tried in incognito mode on https://play.dhis2.org/dev/ and got the
>> same error.
>>
>> Still cache?
>>
>> Regards,
>> Jason
>>
>>
>> On Mon, Oct 3, 2016 at 2:20 PM, Nicolay Ramm  wrote:
>>
>>> Keep in mind that the system settings API endpoint only accepts
>>> text/plain, not json. So the value should be just es without quotes,
>>> not "es" with quotes:
>>>
>>> curl -u admin:district https://play.dhis2.org/dev/api
>>> /systemSettings/keyUiLocale -X POST -H 'Content-Type: text/plain' -d es
>>>
>>>
>>> Nicolay Ramm
>>> Front end developer, DHIS 2
>>> University of Oslo
>>> https://www.dhis2.org
>>>
>>> On Mon, Oct 3, 2016 at 2:13 PM, Jason Pickering <
>>> jason.p.picker...@gmail.com> wrote:
>>>
>>>> OK. I tried a direct post without the app,and got the same thing. Will
>>>> try again however just to be sure.
>>>>
>>>> Regards,
>>>> Jason
>>>>
>>>>
>>>> On Mon, Oct 3, 2016, 2:04 PM Nicolay Ramm  wrote:
>>>>
>>>>> Hi Jason,
>>>>>
>>>>> is this happening with the settings app? It sounds like an issue that
>>>>> was fixed recently, where plain text values were being encoded as JSON.
>>>>>
>>>>> As long as you're running v25.0.5 or higher of the settings app, you
>>>>> should be fine. Check the browser console when you start the app. The
>>>>> version included with the latest snapshot should actually be v25.0.6, so
>>>>> your browser cache may be stale.
>>>>>
>>>>>
>>>>> Best regards,
>>>>>
>>>>>
>>>>> Nicolay Ramm
>>>>> Front end developer, DHIS 2
>>>>> University of Oslo
>>>>> https://www.dhis2.org
>>>>>
>>>>> On Mon, Oct 3, 2016 at 9:32 AM, Jason Pickering <
>>>>> jason.p.picker...@gmail.com> wrote:
>>>>>
>>>>>> Hi Devs,
>>>>>> There seem to be some issues updating a users locale in the latest
>>>>>> dev snapshot. It is not possible to update a users locale.
>>>>>>
>>>>>> POST to
>>>>>>
>>>>>> https://play.dhis2.org/dev/api/25/userSettings/keyUiLocale
>>>>>>
>>>>>> with "es" (the header sent by the app when swtiching from English to
>>>>>> Spanish)
>>>>>>
>>>>>> yields an HTTP 500
>>>>>>
>>>>>> {
>>>>>>   "httpStatus": "Internal Server Error",
>>>>>>   "httpStatusCode": 500,
>>>>>>   "status": "ERROR",
>>>>>>   "message": "Invalid locale format: \"es\""
>>>>>> }
>>>>>>
>>>>>>
>>>>>> With GET to the same URL yields
>>>>>>
>>>>>> Unexpected 'e'
>>>>>>
>>>>>> which seems strange.
>>>>>>
>>>>>> Version:2.25-SNAPSHOT
>>>>>> Build revision:0cf6645
>>>>>>
>>>>>> Regards,
>>>>>> Jason
>>>>>>
>>>>>> --
>>>>>> Jason P. Pickering
>>>>>> email: jason.p.picker...@gmail.com
>>>>>> tel:+46764147049
>>>>>>
>>>>>> ___
>>>>>> 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
>>>>>>
>>>>>>
>>>>>
>>>
>>
>>
>> --
>> Jason P. Pickering
>> email: jason.p.picker...@gmail.com
>> tel:+46764147049
>>
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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 Tests] Data Administration - Option Set

2016-10-09 Thread Jason Pickering
Hi Paulo,

I would expect that this operation should be disallowed by the server. The
reason for this is that once you have established that a given option set
has a type "INTEGER" , you should not be able to change this afterwards to
a different type. It seems the test is correct to me, but from the results
of the test, it seems it is possible to update.

Maybe the developers can comment more?

Regards,
Jason


On Sun, Oct 9, 2016 at 5:58 PM, Paulo Grácio  wrote:

> Hi devs,
>
> should it be possible to update existent Option Set type from 'INTEGER' to
> ‘TEXT'?
>
> Test Case: https://github.com/dhis2/api-tests/blob/master/modules/
> data-admin/optionSet.js#L77
> Failing Job: https://travis-ci.org/dhis2/api-tests/jobs/166211140
>
> BR,
> Paulo Grácio
>
> ___
> 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
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Reporting rate graph does not match report

2016-10-10 Thread Jason Pickering
Very likely,this organisation unit is a member of two organisation unit
groups which are part of the same group set.

Run and integrity check from Data Administration to find all of these,and
be sure that any organisation unit is only part of one group per group set.

On Mon, Oct 10, 2016, 14:30 Carlos Nyembwe  wrote:

Hi Everyone

I have a problem.

We are looking to present our Reporting Rate for “Rapport Mensuel Centre de
Santé” (Health Center Report) as a graph on the dashboard.  Unfortunately,
there is a disconnect between the Reporting rate summary (image 1) and the
graph (image 2).


Image 1

[image: Inline image 1]

Image 2

[image: Inline image 2]


This is my problem, who can help my to fix it?


-- 
*Carlos Nyembwe*
*I'm just a Computer Scientist*

*Skype: carloscnk1*
*Cell: (+243)813166381*
*Find me in: | Google Plus  |
**Linkedin
 | Facebook
 | Twitter
 |*
___
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] DHIS 2.24 migrated from HTTP to HTTPS (pivot table error)

2016-10-11 Thread Jason Pickering
Hi Greg,
Not sure exactly what the problem could be, but you may want to have a look
at Tomcat's server.xml file and be sure your connector is setup properly to
look something like


 


Regards,
Jason


On Tue, Oct 11, 2016 at 1:46 PM, Greg Rowles  wrote:

> Hi Jan,
>
> JSON file attached...
>
> Regards,
> Greg
>
> On Tue, Oct 11, 2016 at 1:42 PM, Jan Henrik Øverland 
> wrote:
>
>> Hi Greg,
>>
>> What do you get here: https://sanac.hisp.org/staging/api/system/info.json
>> -> contextPath ?
>>
>> On 11 October 2016 at 13:32, Greg Rowles  wrote:
>>
>>> Hi Devs
>>>
>>> We moved our DHIS2 to an HTTPS domain but we're unable to view pivot
>>> tables (pls see attached console errors). Any suggestions?
>>>
>>> Greg
>>>
>>> --
>>> *Health Information Systems Program - South Africa*
>>> *- - - - - - - **- - - - - - - **- - - - - - - **- - - - - - - **- - -
>>> - - *
>>> Mobile  :+27 73 246 2992
>>> Landline:   +27 21 851 2216
>>> Skype:  gregory_rowles
>>>
>>> ___
>>> 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
>>>
>>>
>>
>>
>> --
>> Jan Henrik Øverland
>> Software developer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org 
>>
>
>
>
> --
> *Health Information Systems Program - South Africa*
> *- - - - - - - **- - - - - - - **- - - - - - - **- - - - - - - **- - - -
> - *
> Mobile  :073 246 2992
> Landline:   021 851 2216
> Skype:  gregory_rowles
>
> ___
> 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
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Include Honduras Flags into appearance Setting

2016-10-11 Thread Jason Pickering
Hi Helder,
I have added it in revision ae1c4c

of the master branch now .

Regards,
Jason




On Tue, Oct 11, 2016 at 6:20 PM, helder yesid castrillon cobo <
helder_...@hotmail.com> wrote:

> Hi dev Team,
>
> Could you add the Honduras flag in options available into appearance
> Setting in DHIS?.
>
> Thanks.
>
> *Helder Yesid Castrillon.*
>
> co founder HISP Colombia
> www.hispcombia.org
>
> ___
> 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
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Error when upgrading to 2.24

2016-10-12 Thread Jason Pickering
>From the latest 2.24 build. Upgrading from 2.23 I get this.
Any ideas?

Oct 13, 2016 8:34:06 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-127.0.0.1-8090"]
Oct 13, 2016 8:34:06 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 679 ms
Oct 13, 2016 8:34:06 AM org.apache.catalina.core.StandardService
startInternal
INFO: Starting service Catalina
Oct 13, 2016 8:34:06 AM org.apache.catalina.core.StandardEngine
startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.68 (Ubuntu)
Oct 13, 2016 8:34:06 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive
/home/dhis/tomcat-dhis/webapps/ROOT.war
Oct 13, 2016 8:34:15 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable
debug logging for this logger for a complete list of JARs that were scanned
but no TLDs were found in them. Skipping unneeded JARs during scanning can
improve startup time and JSP compilation time.
* INFO  2016-10-13 08:34:19,953 System property dhis2.home not set
(DefaultLocationManager.java [localhost-startStop-1])
* INFO  2016-10-13 08:34:19,957 Environment variable DHIS2_HOME points to
/home/dhis/config (DefaultLocationManager.java [localhost-startStop-1])
* INFO  2016-10-13 08:34:19,963 File
/home/dhis/config/dhis-google-auth.json does not exist
(DefaultLocationManager.java [localhost-startStop-1])
* INFO  2016-10-13 08:34:19,964 Could not find dhis-google-auth.json
(DefaultDhisConfigurationProvider.java [localhost-startStop-1])
* INFO  2016-10-13 08:34:19,965 File
/home/dhis/config/dhis-google-auth.json does not exist
(DefaultLocationManager.java [localhost-startStop-1])
* INFO  2016-10-13 08:34:19,965 Could not find dhis-google-auth.json
(DefaultDhisConfigurationProvider.java [localhost-startStop-1])
* INFO  2016-10-13 08:34:21,811 Hibernate configuration loaded, using
dialect: org.hibernate.dialect.PostgreSQLDialect
(DefaultHibernateConfigurationProvider.java [localhost-startStop-1])
* WARN  2016-10-13 08:34:24,159 HHH9003: Use of DOM4J entity-mode is
considered deprecated (ModelBinder.java [localhost-startStop-1])
* WARN  2016-10-13 08:34:24,160 HHH9003: Use of DOM4J entity-mode is
considered deprecated (ModelBinder.java [localhost-startStop-1])
* WARN  2016-10-13 08:34:24,160 HHH9003: Use of DOM4J entity-mode is
considered deprecated (ModelBinder.java [localhost-startStop-1])
* WARN  2016-10-13 08:34:24,161 HHH9003: Use of DOM4J entity-mode is
considered deprecated (ModelBinder.java [localhost-startStop-1])
* WARN  2016-10-13 08:34:24,177 HHH9003: Use of DOM4J entity-mode is
considered deprecated (ModelBinder.java [localhost-startStop-1])
* WARN  2016-10-13 08:34:24,178 HHH9003: Use of DOM4J entity-mode is
considered deprecated (ModelBinder.java [localhost-startStop-1])
* WARN  2016-10-13 08:34:24,230 HHH9003: Use of DOM4J entity-mode is
considered deprecated (ModelBinder.java [localhost-startStop-1])
* WARN  2016-10-13 08:34:24,243 HHH9003: Use of DOM4J entity-mode is
considered deprecated (ModelBinder.java [localhost-startStop-1])
* WARN  2016-10-13 08:34:24,243 HHH9003: Use of DOM4J entity-mode is
considered deprecated (ModelBinder.java [localhost-startStop-1])
* WARN  2016-10-13 08:34:24,260 HHH9003: Use of DOM4J entity-mode is
considered deprecated (ModelBinder.java [localhost-startStop-1])
* WARN  2016-10-13 08:34:24,261 HHH9003: Use of DOM4J entity-mode is
considered deprecated (ModelBinder.java [localhost-startStop-1])
* WARN  2016-10-13 08:34:24,261 HHH9003: Use of DOM4J entity-mode is
considered deprecated (ModelBinder.java [localhost-startStop-1])
* WARN  2016-10-13 08:34:24,262 HHH9003: Use of DOM4J entity-mode is
considered deprecated (ModelBinder.java [localhost-startStop-1])
* WARN  2016-10-13 08:34:24,262 HHH9003: Use of DOM4J entity-mode is
considered deprecated (ModelBinder.java [localhost-startStop-1])
* WARN  2016-10-13 08:34:32,971 Exception encountered during context
initialization - cancelling refresh attempt:
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'org.hisp.dhis.appstore.AppStoreManager': Injection of
autowired dependencies failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Could not autowire
field: private org.hisp.dhis.appmanager.AppManager
org.hisp.dhis.appstore.DefaultAppStoreManager.appManager; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'org.hisp.dhis.appmanager.AppManager': Injection of
autowired dependencies failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Could not autowire
field: private org.hisp.dhis.setting.SystemSettingManager
org.hisp.dhis.appmanager.DefaultAppManager.appSettingManager; nested
exception is org.springframework.beans.factory.BeanCreationException: Error
creating bean with na

[Dhis2-devs] 409 in dataset reports?

2016-10-13 Thread Jason Pickering
https://play.dhis2.org/demo/api/dimensions/dataSet/BfMAe6Itzgt

returns
{

   - httpStatus: "Conflict",
   - httpStatusCode: 409,
   - status: "ERROR",
   - message: "Data set does not have a category combination: BfMAe6Itzgt"

}

Is this correct? This seems to always occur when running dataset reports
for datasets with no category combination (default).

Regards,
Jason



  --
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Error when upgrading to 2.24

2016-10-13 Thread Jason Pickering
Well, I am not seeing anything obvious. Just to be sure, I have dropped all
views and retested, but that does not seem to help.

dhis2=# \dt organisation*
  List of relations
 Schema |  Name   | Type  |  Owner
+-+---+--
 public | organisationunit| table | postgres
 public | organisationunitattributevalues | table | postgres
(2 rows)

shows only these two patters which appear to potentially match that
pattern.





On Thu, Oct 13, 2016 at 9:33 AM, Lars Helge Øverland  wrote:

> Hi Jason,
>
> hard to say from here but this SO thread
> <http://stackoverflow.com/questions/36907095/more-than-one-table-found-in-namespace-schemaextractionexception>
> offers some insight. Best guess: there is a non-dhis table or view in the
> database with an underscore or other special char such as
> "organisation_unit" which conflicts with the organisationunit table.
> Perhaps something got stricter in Hibernat 5 which is what we use in 2.25.
>
> best regards,
>
> Lars
>
>
> On Thu, Oct 13, 2016 at 8:36 AM, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
>> From the latest 2.24 build. Upgrading from 2.23 I get this.
>> Any ideas?
>>
>> Oct 13, 2016 8:34:06 AM org.apache.coyote.AbstractProtocol init
>> INFO: Initializing ProtocolHandler ["http-bio-127.0.0.1-8090"]
>> Oct 13, 2016 8:34:06 AM org.apache.catalina.startup.Catalina load
>> INFO: Initialization processed in 679 ms
>> Oct 13, 2016 8:34:06 AM org.apache.catalina.core.StandardService
>> startInternal
>> INFO: Starting service Catalina
>> Oct 13, 2016 8:34:06 AM org.apache.catalina.core.StandardEngine
>> startInternal
>> INFO: Starting Servlet Engine: Apache Tomcat/7.0.68 (Ubuntu)
>> Oct 13, 2016 8:34:06 AM org.apache.catalina.startup.HostConfig deployWAR
>> INFO: Deploying web application archive /home/dhis/tomcat-dhis/webapps
>> /ROOT.war
>> Oct 13, 2016 8:34:15 AM org.apache.catalina.startup.TldConfig execute
>> INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable
>> debug logging for this logger for a complete list of JARs that were scanned
>> but no TLDs were found in them. Skipping unneeded JARs during scanning can
>> improve startup time and JSP compilation time.
>> * INFO  2016-10-13 08:34:19,953 System property dhis2.home not set
>> (DefaultLocationManager.java [localhost-startStop-1])
>> * INFO  2016-10-13 08:34:19,957 Environment variable DHIS2_HOME points to
>> /home/dhis/config (DefaultLocationManager.java [localhost-startStop-1])
>> * INFO  2016-10-13 08:34:19,963 File /home/dhis/config/dhis-google-auth.json
>> does not exist (DefaultLocationManager.java [localhost-startStop-1])
>> * INFO  2016-10-13 08:34:19,964 Could not find dhis-google-auth.json
>> (DefaultDhisConfigurationProvider.java [localhost-startStop-1])
>> * INFO  2016-10-13 08:34:19,965 File /home/dhis/config/dhis-google-auth.json
>> does not exist (DefaultLocationManager.java [localhost-startStop-1])
>> * INFO  2016-10-13 08:34:19,965 Could not find dhis-google-auth.json
>> (DefaultDhisConfigurationProvider.java [localhost-startStop-1])
>> * INFO  2016-10-13 08:34:21,811 Hibernate configuration loaded, using
>> dialect: org.hibernate.dialect.PostgreSQLDialect
>> (DefaultHibernateConfigurationProvider.java [localhost-startStop-1])
>> * WARN  2016-10-13 08:34:24,159 HHH9003: Use of DOM4J entity-mode is
>> considered deprecated (ModelBinder.java [localhost-startStop-1])
>> * WARN  2016-10-13 08:34:24,160 HHH9003: Use of DOM4J entity-mode is
>> considered deprecated (ModelBinder.java [localhost-startStop-1])
>> * WARN  2016-10-13 08:34:24,160 HHH9003: Use of DOM4J entity-mode is
>> considered deprecated (ModelBinder.java [localhost-startStop-1])
>> * WARN  2016-10-13 08:34:24,161 HHH9003: Use of DOM4J entity-mode is
>> considered deprecated (ModelBinder.java [localhost-startStop-1])
>> * WARN  2016-10-13 08:34:24,177 HHH9003: Use of DOM4J entity-mode is
>> considered deprecated (ModelBinder.java [localhost-startStop-1])
>> * WARN  2016-10-13 08:34:24,178 HHH9003: Use of DOM4J entity-mode is
>> considered deprecated (ModelBinder.java [localhost-startStop-1])
>> * WARN  2016-10-13 08:34:24,230 HHH9003: Use of DOM4J entity-mode is
>> considered deprecated (ModelBinder.java [localhost-startStop-1])
>> * WARN  2016-10-13 08:34:24,243 HHH9003: Use of DOM4J entity-mode is
>> considered deprecated (ModelBinder.java [localhost-startStop-1])
>> * WARN  2016-10-13 08:34:24,243 HHH9003: Use of DOM4J entity-mode is
>> considered depreca

Re: [Dhis2-devs] Error when upgrading to 2.24

2016-10-13 Thread Jason Pickering
sorry for the typo. I mean, "shows only these two tables which appear to
potentially match that pattern."

On Thu, Oct 13, 2016 at 10:45 AM, Jason Pickering <
jason.p.picker...@gmail.com> wrote:

> Well, I am not seeing anything obvious. Just to be sure, I have dropped
> all views and retested, but that does not seem to help.
>
> dhis2=# \dt organisation*
>   List of relations
>  Schema |  Name   | Type  |  Owner
> +-+---+--
>  public | organisationunit| table | postgres
>  public | organisationunitattributevalues | table | postgres
> (2 rows)
>
> shows only these two patters which appear to potentially match that
> pattern.
>
>
>
>
>
> On Thu, Oct 13, 2016 at 9:33 AM, Lars Helge Øverland 
> wrote:
>
>> Hi Jason,
>>
>> hard to say from here but this SO thread
>> <http://stackoverflow.com/questions/36907095/more-than-one-table-found-in-namespace-schemaextractionexception>
>> offers some insight. Best guess: there is a non-dhis table or view in the
>> database with an underscore or other special char such as
>> "organisation_unit" which conflicts with the organisationunit table.
>> Perhaps something got stricter in Hibernat 5 which is what we use in 2.25.
>>
>> best regards,
>>
>> Lars
>>
>>
>> On Thu, Oct 13, 2016 at 8:36 AM, Jason Pickering <
>> jason.p.picker...@gmail.com> wrote:
>>
>>> From the latest 2.24 build. Upgrading from 2.23 I get this.
>>> Any ideas?
>>>
>>> Oct 13, 2016 8:34:06 AM org.apache.coyote.AbstractProtocol init
>>> INFO: Initializing ProtocolHandler ["http-bio-127.0.0.1-8090"]
>>> Oct 13, 2016 8:34:06 AM org.apache.catalina.startup.Catalina load
>>> INFO: Initialization processed in 679 ms
>>> Oct 13, 2016 8:34:06 AM org.apache.catalina.core.StandardService
>>> startInternal
>>> INFO: Starting service Catalina
>>> Oct 13, 2016 8:34:06 AM org.apache.catalina.core.StandardEngine
>>> startInternal
>>> INFO: Starting Servlet Engine: Apache Tomcat/7.0.68 (Ubuntu)
>>> Oct 13, 2016 8:34:06 AM org.apache.catalina.startup.HostConfig deployWAR
>>> INFO: Deploying web application archive /home/dhis/tomcat-dhis/webapps
>>> /ROOT.war
>>> Oct 13, 2016 8:34:15 AM org.apache.catalina.startup.TldConfig execute
>>> INFO: At least one JAR was scanned for TLDs yet contained no TLDs.
>>> Enable debug logging for this logger for a complete list of JARs that were
>>> scanned but no TLDs were found in them. Skipping unneeded JARs during
>>> scanning can improve startup time and JSP compilation time.
>>> * INFO  2016-10-13 08:34:19,953 System property dhis2.home not set
>>> (DefaultLocationManager.java [localhost-startStop-1])
>>> * INFO  2016-10-13 08:34:19,957 Environment variable DHIS2_HOME points
>>> to /home/dhis/config (DefaultLocationManager.java [localhost-startStop-1])
>>> * INFO  2016-10-13 08:34:19,963 File /home/dhis/config/dhis-google-auth.json
>>> does not exist (DefaultLocationManager.java [localhost-startStop-1])
>>> * INFO  2016-10-13 08:34:19,964 Could not find dhis-google-auth.json
>>> (DefaultDhisConfigurationProvider.java [localhost-startStop-1])
>>> * INFO  2016-10-13 08:34:19,965 File /home/dhis/config/dhis-google-auth.json
>>> does not exist (DefaultLocationManager.java [localhost-startStop-1])
>>> * INFO  2016-10-13 08:34:19,965 Could not find dhis-google-auth.json
>>> (DefaultDhisConfigurationProvider.java [localhost-startStop-1])
>>> * INFO  2016-10-13 08:34:21,811 Hibernate configuration loaded, using
>>> dialect: org.hibernate.dialect.PostgreSQLDialect
>>> (DefaultHibernateConfigurationProvider.java [localhost-startStop-1])
>>> * WARN  2016-10-13 08:34:24,159 HHH9003: Use of DOM4J entity-mode is
>>> considered deprecated (ModelBinder.java [localhost-startStop-1])
>>> * WARN  2016-10-13 08:34:24,160 HHH9003: Use of DOM4J entity-mode is
>>> considered deprecated (ModelBinder.java [localhost-startStop-1])
>>> * WARN  2016-10-13 08:34:24,160 HHH9003: Use of DOM4J entity-mode is
>>> considered deprecated (ModelBinder.java [localhost-startStop-1])
>>> * WARN  2016-10-13 08:34:24,161 HHH9003: Use of DOM4J entity-mode is
>>> considered deprecated (ModelBinder.java [localhost-startStop-1])
>>> * WARN  2016-10-13 08:34:24,177 HHH9003: Use of DOM4J entity-mode is
>>> considered deprecated (ModelBinder.java [localhost-startStop-1])
>>>

Re: [Dhis2-devs] Error when upgrading to 2.24

2016-10-13 Thread Jason Pickering
Hi Lars,
I managed to find the problem after looking for additional schemas, per
your suggestion.

dhis2=# \dn
  List of schemas
  Name   |  Owner
-+--
 private | postgres
 public  | postgres
(2 rows)

showed two schemas, and inside of the "private" schema, was a table called
"organisationunit", which apparently was causing the error.

I deleted that table in the private schema,and things seem to work.

Best regards,
Jason


On Thu, Oct 13, 2016 at 10:46 AM, Jason Pickering <
jason.p.picker...@gmail.com> wrote:

> sorry for the typo. I mean, "shows only these two tables which appear to
> potentially match that pattern."
>
> On Thu, Oct 13, 2016 at 10:45 AM, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
>> Well, I am not seeing anything obvious. Just to be sure, I have dropped
>> all views and retested, but that does not seem to help.
>>
>> dhis2=# \dt organisation*
>>   List of relations
>>  Schema |  Name   | Type  |  Owner
>> +-+---+--
>>  public | organisationunit| table | postgres
>>  public | organisationunitattributevalues | table | postgres
>> (2 rows)
>>
>> shows only these two patters which appear to potentially match that
>> pattern.
>>
>>
>>
>>
>>
>> On Thu, Oct 13, 2016 at 9:33 AM, Lars Helge Øverland 
>> wrote:
>>
>>> Hi Jason,
>>>
>>> hard to say from here but this SO thread
>>> <http://stackoverflow.com/questions/36907095/more-than-one-table-found-in-namespace-schemaextractionexception>
>>> offers some insight. Best guess: there is a non-dhis table or view in the
>>> database with an underscore or other special char such as
>>> "organisation_unit" which conflicts with the organisationunit table.
>>> Perhaps something got stricter in Hibernat 5 which is what we use in 2.25.
>>>
>>> best regards,
>>>
>>> Lars
>>>
>>>
>>> On Thu, Oct 13, 2016 at 8:36 AM, Jason Pickering <
>>> jason.p.picker...@gmail.com> wrote:
>>>
>>>> From the latest 2.24 build. Upgrading from 2.23 I get this.
>>>> Any ideas?
>>>>
>>>> Oct 13, 2016 8:34:06 AM org.apache.coyote.AbstractProtocol init
>>>> INFO: Initializing ProtocolHandler ["http-bio-127.0.0.1-8090"]
>>>> Oct 13, 2016 8:34:06 AM org.apache.catalina.startup.Catalina load
>>>> INFO: Initialization processed in 679 ms
>>>> Oct 13, 2016 8:34:06 AM org.apache.catalina.core.StandardService
>>>> startInternal
>>>> INFO: Starting service Catalina
>>>> Oct 13, 2016 8:34:06 AM org.apache.catalina.core.StandardEngine
>>>> startInternal
>>>> INFO: Starting Servlet Engine: Apache Tomcat/7.0.68 (Ubuntu)
>>>> Oct 13, 2016 8:34:06 AM org.apache.catalina.startup.HostConfig
>>>> deployWAR
>>>> INFO: Deploying web application archive /home/dhis/tomcat-dhis/webapps
>>>> /ROOT.war
>>>> Oct 13, 2016 8:34:15 AM org.apache.catalina.startup.TldConfig execute
>>>> INFO: At least one JAR was scanned for TLDs yet contained no TLDs.
>>>> Enable debug logging for this logger for a complete list of JARs that were
>>>> scanned but no TLDs were found in them. Skipping unneeded JARs during
>>>> scanning can improve startup time and JSP compilation time.
>>>> * INFO  2016-10-13 08:34:19,953 System property dhis2.home not set
>>>> (DefaultLocationManager.java [localhost-startStop-1])
>>>> * INFO  2016-10-13 08:34:19,957 Environment variable DHIS2_HOME points
>>>> to /home/dhis/config (DefaultLocationManager.java [localhost-startStop-1])
>>>> * INFO  2016-10-13 08:34:19,963 File 
>>>> /home/dhis/config/dhis-google-auth.json
>>>> does not exist (DefaultLocationManager.java [localhost-startStop-1])
>>>> * INFO  2016-10-13 08:34:19,964 Could not find dhis-google-auth.json
>>>> (DefaultDhisConfigurationProvider.java [localhost-startStop-1])
>>>> * INFO  2016-10-13 08:34:19,965 File 
>>>> /home/dhis/config/dhis-google-auth.json
>>>> does not exist (DefaultLocationManager.java [localhost-startStop-1])
>>>> * INFO  2016-10-13 08:34:19,965 Could not find dhis-google-auth.json
>>>> (DefaultDhisConfigurationProvider.java [localhost-startStop-1])
>>>> * INFO  2016-10-13 08:34:21,811 Hibernate configuration loaded, using
>>>> dialect: org.hibernate.dialect.Po

[Dhis2-devs] NPE on opening messages in 2.25

2016-10-13 Thread Jason Pickering
When accessing messages from the dashboard, I get this error. Any ideas?

Version:2.25Build revision:332e86dBuild date:2016-10-13 08:37

* ERROR 2016-10-13 15:38:27,628 Error while executing action
(ExceptionInterceptor.java [http-bio-127.0.0.1-8090-exec-18])
java.lang.NullPointerException
at
org.hisp.dhis.configuration.DefaultConfigurationService.isUserInFeedbackRecipientUserGroup(DefaultConfigurationService.java:91)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at
org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
at
org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
at com.sun.proxy.$Proxy63.isUserInFeedbackRecipientUserGroup(Unknown Source)
at
org.hisp.dhis.message.DefaultMessageService.hasAccessToManageFeedbackMessages(DefaultMessageService.java:478)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at
org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
at
org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
at com.sun.proxy.$Proxy76.hasAccessToManageFeedbackMessages(Unknown Source)
at
org.hisp.dhis.dashboard.message.action.GetMessagesAction.execute(GetMessagesAction.java:113)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:891)
at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1293)
at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68)
at
com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethodWithDebugInfo(XWorkMethodAccessor.java:117)
at
com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethod(XWorkMethodAccessor.java:108)
at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:1369)
at ognl.ASTMethod.getValueBody(ASTMethod.java:90)
at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
at ognl.SimpleNode.getValue(SimpleNode.java:258)
at ognl.Ognl.getValue(Ognl.java:494)
at ognl.Ognl.getValue(Ognl.java:458)
at com.opensymphony.xwork2.ognl.OgnlUtil$2.execute(OgnlUtil.java:309)
at
com.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecute(OgnlUtil.java:340)
at com.opensymphony.xwork2.ognl.OgnlUtil.getValue(OgnlUtil.java:307)
at
com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:423)
at
com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:287)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:250)
at
org.hisp.dhis.webportal.interceptor.XWorkPortalUserInterceptor.intercept(XWorkPortalUserInterceptor.java:85)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:244)
at
org.hisp.dhis.webportal.interceptor.XWorkPortalModuleInterceptor.intercept(XWorkPortalModuleInterceptor.java:91)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(Defa

Re: [Dhis2-devs] NPE on opening messages in 2.25

2016-10-13 Thread Jason Pickering
Yes. It seems to result from multiple configuration objects,one of which
had a null in the feedback recipients . From the look of the database table
(configuration) it would seem multiple configurations are possible,but not
sure that is really intended?

On Thu, Oct 13, 2016, 16:52 Stian Sandvold  wrote:

Have you set up feedback recipient groups?
——
Stian Sandvold
Software developer, DHIS 2
University of Oslo
http://www.dhis2.org




On 13 Oct 2016, at 15:40, Jason Pickering 
wrote:

When accessing messages from the dashboard, I get this error. Any ideas?

Version:2.25Build revision:332e86dBuild date:2016-10-13 08:37

* ERROR 2016-10-13 15:38:27,628 Error while executing action
(ExceptionInterceptor.java [http-bio-127.0.0.1-8090-exec-18])
java.lang.NullPointerException
at
org.hisp.dhis.configuration.DefaultConfigurationService.isUserInFeedbackRecipientUserGroup(DefaultConfigurationService.java:91)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at
org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
at
org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
at com.sun.proxy.$Proxy63.isUserInFeedbackRecipientUserGroup(Unknown Source)
at
org.hisp.dhis.message.DefaultMessageService.hasAccessToManageFeedbackMessages(DefaultMessageService.java:478)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at
org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
at
org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
at com.sun.proxy.$Proxy76.hasAccessToManageFeedbackMessages(Unknown Source)
at
org.hisp.dhis.dashboard.message.action.GetMessagesAction.execute(GetMessagesAction.java:113)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:891)
at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1293)
at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68)
at
com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethodWithDebugInfo(XWorkMethodAccessor.java:117)
at
com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethod(XWorkMethodAccessor.java:108)
at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:1369)
at ognl.ASTMethod.getValueBody(ASTMethod.java:90)
at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
at ognl.SimpleNode.getValue(SimpleNode.java:258)
at ognl.Ognl.getValue(Ognl.java:494)
at ognl.Ognl.getValue(Ognl.java:458)
at com.opensymphony.xwork2.ognl.OgnlUtil$2.execute(OgnlUtil.java:309)
at
com.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecute(OgnlUtil.java:340)
at com.opensymphony.xwork2.ognl.OgnlUtil.getValue(OgnlUtil.java:307)
at
com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:423)
at
com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly

Re: [Dhis2-devs] Errors while importing datavalues in 2.24

2016-10-14 Thread Jason Pickering
Seems like a memory issue

 java.lang.OutOfMemoryError: GC overhead limit exceeded

On Fri, Oct 14, 2016, 13:35 Jose Garcia Muñoz  wrote:

>
> Thanks Lars,
>
> I have run data integrity, but the system has passed "Organisation units
> with cyclic references ". I didn't get any errors importing events, but
> aggregated... Will try to divide the file in small chunks to try to figure
> it out...
>
> Thanks
> Jose
>
> On Fri, Oct 14, 2016 at 11:02 AM, Lars Helge Øverland 
> wrote:
>
> Hi Jose,
>
> my best guess here is a cyclic parent relationship in the org unit
> hierarchy, i.e. you have one or more org units where the one of the
> ancestors are also a child.
>
> Try running data admin > integrity checks and look for "Organisation units
> with cyclic references ", or look for it through SQL.
>
> best regards,
>
> Lars
>
>
> On Fri, Oct 14, 2016 at 1:09 AM, Jose Garcia Muñoz 
> wrote:
>
>
> Dear devs,
>
> I'm trying to import an XML file (900K) with around 8.000 datavalues in
> 2.24 (build revision 1502fe2). However, I'm getting 2 different kind of
> errors during the import... (attached at the end of the email)
>
> Any ideas? The only thing I can think of, is the huge number of org. units
> that this instance has (42.000 org. units) with 8 GB. Would it be related
> to a memory problem? (although the XML file is very small)
>
> I have also selected Preloaded Cache = No
>
> Many thanks!
>
>
> *Error 1*
>
> * INFO  2016-10-13 21:55:55,780 [Level: INFO, category: DATAVALUE_IMPORT,
> time: Thu Oct 13 21:55:55 UTC 2016, message: Importing data values]
> (InMemoryNotifier.java [taskScheduler-7])
> * ERROR 2016-10-13 22:10:55,332 java.lang.RuntimeException:
> org.hibernate.PropertyAccessException: Exception occurred inside getter of
> org.hisp.dhis.organisationunit.OrganisationUnit.path
> at
> org.hisp.dhis.commons.collection.CachingMap.get(CachingMap.java:90)
> at
> org.hisp.dhis.dxf2.datavalueset.DefaultDataValueSetService.saveDataValueSet(DefaultDataValueSetService.java:954)
> at
> org.hisp.dhis.dxf2.datavalueset.DefaultDataValueSetService.saveDataValueSet(DefaultDataValueSetService.java:488)
> at
> org.hisp.dhis.dxf2.datavalueset.tasks.ImportDataValueTask.call(ImportDataValueTask.java:102)
> at
> org.hisp.dhis.security.SecurityContextRunnable.run(SecurityContextRunnable.java:57)
> at
> org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: org.hibernate.PropertyAccessException: Exception occurred
> inside getter of org.hisp.dhis.organisationunit.OrganisationUnit.path
> at
> org.hibernate.property.access.spi.GetterMethodImpl.get(GetterMethodImpl.java:44)
> at
> org.hibernate.tuple.entity.AbstractEntityTuplizer.getPropertyValues(AbstractEntityTuplizer.java:505)
> at
> org.hibernate.tuple.entity.PojoEntityTuplizer.getPropertyValues(PojoEntityTuplizer.java:217)
> at
> org.hibernate.persister.entity.AbstractEntityPersister.getPropertyValues(AbstractEntityPersister.java:4613)
> at
> org.hibernate.event.internal.DefaultFlushEntityEventListener.getValues(DefaultFlushEntityEventListener.java:178)
> at
> org.hibernate.event.internal.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:135)
> at
> org.hibernate.event.internal.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:216)
> at
> org.hibernate.event.internal.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:85)
> at
> org.hibernate.event.internal.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:44)
> at
> org.hibernate.internal.SessionImpl.autoFlushIfRequired(SessionImpl.java:1264)
> at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1780)
> at org.hibernate.internal.CriteriaImpl.list(CriteriaImpl.java:363)
> at
> org.hibernate.internal.CriteriaImpl.uniqueResult(CriteriaImpl.java:385)
> at
> org.hisp.dhis.dataset.hibernate.HibernateLockExceptionStore.getCount(HibernateLockExceptionStore.java:167)
> at
> org.hisp.dhis.dataset.DefaultDataSetService.isLockedPeriod(DefaultDataSetService.java:384)
> at sun.reflect.GeneratedMethodAccessor709.invo

[Dhis2-devs] Cannot add new validation rules for programmes

2016-10-15 Thread Jason Pickering
Affects current demo

Version:2.25Build revision:8a7d3cc
When attempting to add new validation rules, the URL does not exist when
attempting to fetch data elements for a program stage. As an example

https://play.dhis2.org/demo/dhis-web-maintenance-program/getTrackedEntityDataElements.action?programStageId=424463

results in

Apache Tomcat/8.0.32 - Error
reportH1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;}A.name {color : black;}.line {height: 1px;
background-color: #525D76; border: none;} HTTP
Status 404 - There is no Action mapped for namespace
[/dhis-web-maintenance-program] and action name
[getTrackedEntityDataElements] associated with context path
[/demo].type Status
reportmessage There is no Action mapped for namespace
[/dhis-web-maintenance-program] and action name
[getTrackedEntityDataElements] associated with context path
[/demo].description The requested resource is not
available.Apache
Tomcat/8.0.32




-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Multiple configurations?

2016-10-17 Thread Jason Pickering
Hi Devs,
I have seen this now in two separate instances, where by there seem to be
multiple configurations in the "configuration" table. Which one is DHIS2
using, and how can there be multiple ones?

Regards,
Jason


-[ RECORD 1 ]-+-
configurationid   | 474671
feedbackrecipientsid  |
offlineorgunitlevelid | 7534
infrastructuraldataelementsid | 460890
infrastructuralperiodtypeid   | 6
selfregistrationrole  |
selfregistrationorgunit   |
systemid  | acda1f0f-33eb-4c5a-bf65-bb8806d697a3
infrastructuralindicatorsid   |
-[ RECORD 2 ]-+-
configurationid   | 483034
feedbackrecipientsid  |
offlineorgunitlevelid | 7534
infrastructuraldataelementsid | 460890
infrastructuralperiodtypeid   | 6
selfregistrationrole  |
selfregistrationorgunit   |
systemid  | c1ca299b-e22d-4864-9bdb-1df82146d1c9
infrastructuralindicatorsid   |




-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Configuration of approvals in 2.25

2016-10-22 Thread Jason Pickering
I am trying to configure a workflow for population projections in 2.25.
First, I created a new approval worfklow called "Population" with a yearly
frequency.


I  then created a new approval level in the UI like this

[image: Inline image 1]

We are not using and category options here. In the logs I see:

* INFO  2016-10-23 06:27:23,519 (admin) Import:Start
(DefaultMetadataImportService.java [http-bio-127.0.0.1-8090-exec-4])
* INFO  2016-10-23 06:27:23,860 (admin) Import:Preheat[REFERENCE] took 0.33
seconds (DefaultPreheatService.java [http-bio-127.0.0.1-8090-exec-4])
* INFO  2016-10-23 06:27:23,864 (admin) Import:Validation took 0.00 seconds
(DefaultObjectBundleValidationService.java [http-bio-127.0.0.1-8090-exec-4])
* INFO  2016-10-23 06:27:23,890 (admin) Creating 1 object(s) of type
DataApprovalWorkflow (DefaultObjectBundleService.java
[http-bio-127.0.0.1-8090-exec-4])
* INFO  2016-10-23 06:27:24,067 (admin) Import:Commit took 0.20 seconds
(DefaultMetadataImportService.java [http-bio-127.0.0.1-8090-exec-4])
* INFO  2016-10-23 06:27:24,067 (admin) Import:Done took 0.55 seconds
(DefaultMetadataImportService.java [http-bio-127.0.0.1-8090-exec-4])
* INFO  2016-10-23 06:27:39,034 (admin) Import:Start
(DefaultMetadataImportService.java [http-bio-127.0.0.1-8090-exec-4])
* INFO  2016-10-23 06:27:40,309 (admin) Import:Preheat[REFERENCE] took 1.27
seconds (DefaultPreheatService.java [http-bio-127.0.0.1-8090-exec-4])
* INFO  2016-10-23 06:27:40,314 (admin) Import:Validation took 0.00 seconds
(DefaultObjectBundleValidationService.java [http-bio-127.0.0.1-8090-exec-4])
* INFO  2016-10-23 06:27:40,314 (admin) Import:Done took 1.28 seconds
(DefaultMetadataImportService.java [http-bio-127.0.0.1-8090-exec-4])

which seems to be OK, but in the UI, I get a message that creation of the
approval level failed and in the JS console I see

{"httpStatus":"Conflict","httpStatusCode":409,"status":"WARNING","message":"One
more more errors occurred, please see full details in import
report.","response":{"responseType":"ObjectReport","uid":"ADOd9xfvDjH","klass":"org.hisp.dhis.dataapproval.DataApprovalLevel","errorReports":[{"message":"Missing
required property
`categoryOptionGroupSet`.","mainKlass":"org.hisp.dhis.dataapproval.DataApprovalLevel","errorKlass":"org.hisp.dhis.dataelement.CategoryOptionGroupSet","errorCode":"E4000"}]}}

So, I guess the question is, how do I configure a data approval workflow
with no category option group?

Regards,
Jason



-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Configuration of approvals in 2.25

2016-10-24 Thread Jason Pickering
Hi Lars,

Here is the info you asked for.

Version:2.25Build revision:8e07d2fBuild date:2016-10-17 06:38

Regards,
Jason


On Tue, Oct 25, 2016 at 4:58 AM, Lars Helge Øverland  wrote:

> Hi Jason,
>
> could you tell us the exact build date for this WAR file?
>
> Could you also try again with the latest 2.25 WAR build?
>
> We have introduced this property "categoryOptionGroupSet" in master, but
> should not be there in 2.25.
>
> regards,
>
> Lars
>
>
> On Sun, Oct 23, 2016 at 12:32 AM, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
>> I am trying to configure a workflow for population projections in 2.25.
>> First, I created a new approval worfklow called "Population" with a
>> yearly frequency.
>>
>>
>> I  then created a new approval level in the UI like this
>>
>> [image: Inline image 1]
>>
>> We are not using and category options here. In the logs I see:
>>
>> * INFO  2016-10-23 06:27:23,519 (admin) Import:Start
>> (DefaultMetadataImportService.java [http-bio-127.0.0.1-8090-exec-4])
>> * INFO  2016-10-23 06:27:23,860 (admin) Import:Preheat[REFERENCE] took
>> 0.33 seconds (DefaultPreheatService.java [http-bio-127.0.0.1-8090-exec-
>> 4])
>> * INFO  2016-10-23 06:27:23,864 (admin) Import:Validation took 0.00
>> seconds (DefaultObjectBundleValidationService.java
>> [http-bio-127.0.0.1-8090-exec-4])
>> * INFO  2016-10-23 06:27:23,890 (admin) Creating 1 object(s) of type
>> DataApprovalWorkflow (DefaultObjectBundleService.java
>> [http-bio-127.0.0.1-8090-exec-4])
>> * INFO  2016-10-23 06:27:24,067 (admin) Import:Commit took 0.20 seconds
>> (DefaultMetadataImportService.java [http-bio-127.0.0.1-8090-exec-4])
>> * INFO  2016-10-23 06:27:24,067 (admin) Import:Done took 0.55 seconds
>> (DefaultMetadataImportService.java [http-bio-127.0.0.1-8090-exec-4])
>> * INFO  2016-10-23 06:27:39,034 (admin) Import:Start
>> (DefaultMetadataImportService.java [http-bio-127.0.0.1-8090-exec-4])
>> * INFO  2016-10-23 06:27:40,309 (admin) Import:Preheat[REFERENCE] took
>> 1.27 seconds (DefaultPreheatService.java [http-bio-127.0.0.1-8090-exec-
>> 4])
>> * INFO  2016-10-23 06:27:40,314 (admin) Import:Validation took 0.00
>> seconds (DefaultObjectBundleValidationService.java
>> [http-bio-127.0.0.1-8090-exec-4])
>> * INFO  2016-10-23 06:27:40,314 (admin) Import:Done took 1.28 seconds
>> (DefaultMetadataImportService.java [http-bio-127.0.0.1-8090-exec-4])
>>
>> which seems to be OK, but in the UI, I get a message that creation of the
>> approval level failed and in the JS console I see
>>
>> {"httpStatus":"Conflict","httpStatusCode":409,"status":"WARNING","message":"One
>> more more errors occurred, please see full details in import
>> report.","response":{"responseType":"ObjectReport","uid":"
>> ADOd9xfvDjH","klass":"org.hisp.dhis.dataapproval.DataApp
>> rovalLevel","errorReports":[{"message":"Missing required property
>> `categoryOptionGroupSet`.","mainKlass":"org.hisp.dhis.dataap
>> proval.DataApprovalLevel","errorKlass":"org.hisp.dhis.datael
>> ement.CategoryOptionGroupSet","errorCode":"E4000"}]}}
>>
>> So, I guess the question is, how do I configure a data approval workflow
>> with no category option group?
>>
>> Regards,
>> Jason
>>
>>
>>
>> --
>> Jason P. Pickering
>> email: jason.p.picker...@gmail.com
>> tel:+46764147049
>>
>> ___
>> 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
>>
>>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> l...@dhis2.org
> http://www.dhis2.org <https://www.dhis2.org/>
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Visualisation of Data Element of Value Type - Organisation Unit

2016-10-25 Thread Jason Pickering
We have handled this by creating  aggregate data elements in a dataset
assigned to the secondary orgunit. With a script , we imported the
aggregated data into the secondary orgunit (after aggregating from
events),and things worked as normal in the analytics.

It's a limited approach,but this is one of those issues which is very
challenging to make as a generic feature. You may want to consider this
type of ETL approach until it's sorted out in the core .

Regards,
Jason

On Tue, Oct 25, 2016, 13:16 Abyot Asalefew Gizaw  wrote:

> Hi,
>
> Value types ORGANISATION_UNIT and COORDINATE are new additions. Handling
> the data entry part is the first step, the next step is the analysis part
> which is coming.
>
> Probably a mistake to have a half baked solutions. However, there are
> users who export data and do visualizations using separate systems.
>
> --
> Abyot A. Gizaw.
> Senior Engineer, DHIS2
> University of Oslo
> http://www.dhis2.org
>
> On Tue, Oct 25, 2016 at 7:45 AM, Archana Chillala <
> archa...@thoughtworks.com> wrote:
>
> Hi,
>
> We are now using the latest 2.25 DHIS version. The new feature "*Data
> Element of value type organisation unit*" proves to be extremely useful
> to us. We have a use-case where we want to record the geo-locations
> (villages) of each individual patient at the Heath Centre they attend. And
> this feature seems a right approach for us, to be used for this purpose
> where these locations will be part of the master organisation unit
> hierarchy and can be selected from the list shown for the data element.
>
> We have configured a tracker type data element of value type 'org unit',
> assigned to a Program and stored some data. However, when we tried to
> visualise this data collected for that data element, through Event Reports
> and Event Visualiser app, it gives an error saying "No series items
> selected". Also, since the value of the data element is a string (which is
> the UID of the org. unit), we are not clear as to how we could visualise
> this data element. Ideally, what we need is a COUNT of the number of times
> a geo-location (some org. unit) selected.
>
> We also tried to use program indicators to form an expression that can
> give the desired result. But, that data element doesn't even come up in the
> box, where we choose data elements and form expressions. Only number type
> data elements show up here.
>
> Is there any other way we could use aggregation and visualisation for this
> new data element type?
> Could you also please let us know the road map for the visualisation
> capabilities of this new data element.
>
> Any help here would be appreciated.
>
>
>
> *Cheers,*
>
> Archana Chillala
> Application Developer
> Email archa...@thoughtworks.com
> Telephone +91 9100960533 <+91+9100960533>
> [image: ThoughtWorks]
> 
>
> ___
> 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] Configuration of approvals in 2.25

2016-11-01 Thread Jason Pickering
Hi Jim and Lars,

Has this been solved, or is there a workaround which I can use?

Regards,
Jason


On Tue, Oct 25, 2016 at 12:59 PM, Jim Grace  wrote:

> I get the same results. In 2.24 and earlier I am able to save a new
> approval level with no category option group set. But 2.25 does not allow
> me to do so.
>
> Note that this is not related to the new category combination field that
> we will be adding to approval workflows in 2.26. This has always been an
> optional field for approval levels.
>
> Also in 2.25 when adding or updating a data set, there is no field for
> data approval workflow. It was there in 2.24.
>
>
> On Tue, Oct 25, 2016 at 2:03 AM, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
>> Hi Lars,
>>
>> Here is the info you asked for.
>>
>> Version:2.25Build revision:8e07d2fBuild date:2016-10-17 06:38
>>
>> Regards,
>> Jason
>>
>>
>> On Tue, Oct 25, 2016 at 4:58 AM, Lars Helge Øverland 
>> wrote:
>>
>>> Hi Jason,
>>>
>>> could you tell us the exact build date for this WAR file?
>>>
>>> Could you also try again with the latest 2.25 WAR build?
>>>
>>> We have introduced this property "categoryOptionGroupSet" in master,
>>> but should not be there in 2.25.
>>>
>>> regards,
>>>
>>> Lars
>>>
>>>
>>> On Sun, Oct 23, 2016 at 12:32 AM, Jason Pickering <
>>> jason.p.picker...@gmail.com> wrote:
>>>
>>>> I am trying to configure a workflow for population projections in 2.25.
>>>> First, I created a new approval worfklow called "Population" with a
>>>> yearly frequency.
>>>>
>>>>
>>>> I  then created a new approval level in the UI like this
>>>>
>>>> [image: Inline image 1]
>>>>
>>>> We are not using and category options here. In the logs I see:
>>>>
>>>> * INFO  2016-10-23 06:27:23,519 (admin) Import:Start
>>>> (DefaultMetadataImportService.java [http-bio-127.0.0.1-8090-exec-4])
>>>> * INFO  2016-10-23 06:27:23,860 (admin) Import:Preheat[REFERENCE] took
>>>> 0.33 seconds (DefaultPreheatService.java [http-bio-127.0.0.1-8090-exec-
>>>> 4])
>>>> * INFO  2016-10-23 06:27:23,864 (admin) Import:Validation took 0.00
>>>> seconds (DefaultObjectBundleValidationService.java
>>>> [http-bio-127.0.0.1-8090-exec-4])
>>>> * INFO  2016-10-23 06:27:23,890 (admin) Creating 1 object(s) of type
>>>> DataApprovalWorkflow (DefaultObjectBundleService.java
>>>> [http-bio-127.0.0.1-8090-exec-4])
>>>> * INFO  2016-10-23 06:27:24,067 (admin) Import:Commit took 0.20 seconds
>>>> (DefaultMetadataImportService.java [http-bio-127.0.0.1-8090-exec-4])
>>>> * INFO  2016-10-23 06:27:24,067 (admin) Import:Done took 0.55 seconds
>>>> (DefaultMetadataImportService.java [http-bio-127.0.0.1-8090-exec-4])
>>>> * INFO  2016-10-23 06:27:39,034 (admin) Import:Start
>>>> (DefaultMetadataImportService.java [http-bio-127.0.0.1-8090-exec-4])
>>>> * INFO  2016-10-23 06:27:40,309 (admin) Import:Preheat[REFERENCE] took
>>>> 1.27 seconds (DefaultPreheatService.java [http-bio-127.0.0.1-8090-exec-
>>>> 4])
>>>> * INFO  2016-10-23 06:27:40,314 (admin) Import:Validation took 0.00
>>>> seconds (DefaultObjectBundleValidationService.java
>>>> [http-bio-127.0.0.1-8090-exec-4])
>>>> * INFO  2016-10-23 06:27:40,314 (admin) Import:Done took 1.28 seconds
>>>> (DefaultMetadataImportService.java [http-bio-127.0.0.1-8090-exec-4])
>>>>
>>>> which seems to be OK, but in the UI, I get a message that creation of
>>>> the approval level failed and in the JS console I see
>>>>
>>>> {"httpStatus":"Conflict","httpStatusCode":409,"status":"WARNING","message":"One
>>>> more more errors occurred, please see full details in import
>>>> report.","response":{"responseType":"ObjectReport","uid":"AD
>>>> Od9xfvDjH","klass":"org.hisp.dhis.dataapproval.DataApprovalL
>>>> evel","errorReports":[{"message":"Missing required property
>>>> `categoryOptionGroupSet`.","mainKlass":"org.hisp.dhis.dataap
>>>> proval.DataApprovalLevel","errorKlass":"org.hisp.dhis.datael
>>>> ement.CategoryOptionGroupSet",&

Re: [Dhis2-devs] Configuration of approvals in 2.25

2016-11-01 Thread Jason Pickering
I tried that actually but could not get any data-sets to appear in the
approvals dialog.

I even tried to create a "Default category option group set", containing
only the "default" category option, but that did not work either.

Neither hack worked.

Unfortunately, we cannot go back to 2.24 at this point, but can wait for
this to be fixed to implement the approvals.

Thanks for looking into it.

Regards,
Jason


On Tue, Nov 1, 2016 at 12:31 PM, Jim Grace  wrote:

> Lars, should I create bug reports for these two 2.25 approvals-related
> problems?
>
> Jason, you could use 2.24, or you could try defining an approval level
> with a cat option group set, then find that record in the dataapprovallevel
> table and patch the categoryoptiongroupsetid column to null (and flush the
> hibernate cache.)
>
>
> On Tue, Nov 1, 2016 at 5:04 AM, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
>> Hi Jim and Lars,
>>
>> Has this been solved, or is there a workaround which I can use?
>>
>> Regards,
>> Jason
>>
>>
>> On Tue, Oct 25, 2016 at 12:59 PM, Jim Grace  wrote:
>>
>>> I get the same results. In 2.24 and earlier I am able to save a new
>>> approval level with no category option group set. But 2.25 does not allow
>>> me to do so.
>>>
>>> Note that this is not related to the new category combination field that
>>> we will be adding to approval workflows in 2.26. This has always been an
>>> optional field for approval levels.
>>>
>>> Also in 2.25 when adding or updating a data set, there is no field for
>>> data approval workflow. It was there in 2.24.
>>>
>>>
>>> On Tue, Oct 25, 2016 at 2:03 AM, Jason Pickering <
>>> jason.p.picker...@gmail.com> wrote:
>>>
>>>> Hi Lars,
>>>>
>>>> Here is the info you asked for.
>>>>
>>>> Version:2.25Build revision:8e07d2fBuild date:2016-10-17 06:38
>>>>
>>>> Regards,
>>>> Jason
>>>>
>>>>
>>>> On Tue, Oct 25, 2016 at 4:58 AM, Lars Helge Øverland 
>>>> wrote:
>>>>
>>>>> Hi Jason,
>>>>>
>>>>> could you tell us the exact build date for this WAR file?
>>>>>
>>>>> Could you also try again with the latest 2.25 WAR build?
>>>>>
>>>>> We have introduced this property "categoryOptionGroupSet" in master,
>>>>> but should not be there in 2.25.
>>>>>
>>>>> regards,
>>>>>
>>>>> Lars
>>>>>
>>>>>
>>>>> On Sun, Oct 23, 2016 at 12:32 AM, Jason Pickering <
>>>>> jason.p.picker...@gmail.com> wrote:
>>>>>
>>>>>> I am trying to configure a workflow for population projections in
>>>>>> 2.25.
>>>>>> First, I created a new approval worfklow called "Population" with a
>>>>>> yearly frequency.
>>>>>>
>>>>>>
>>>>>> I  then created a new approval level in the UI like this
>>>>>>
>>>>>> [image: Inline image 1]
>>>>>>
>>>>>> We are not using and category options here. In the logs I see:
>>>>>>
>>>>>> * INFO  2016-10-23 06:27:23,519 (admin) Import:Start
>>>>>> (DefaultMetadataImportService.java [http-bio-127.0.0.1-8090-exec-4])
>>>>>> * INFO  2016-10-23 06:27:23,860 (admin) Import:Preheat[REFERENCE]
>>>>>> took 0.33 seconds (DefaultPreheatService.java 
>>>>>> [http-bio-127.0.0.1-8090-exec-
>>>>>> 4])
>>>>>> * INFO  2016-10-23 06:27:23,864 (admin) Import:Validation took 0.00
>>>>>> seconds (DefaultObjectBundleValidationService.java
>>>>>> [http-bio-127.0.0.1-8090-exec-4])
>>>>>> * INFO  2016-10-23 06:27:23,890 (admin) Creating 1 object(s) of type
>>>>>> DataApprovalWorkflow (DefaultObjectBundleService.java
>>>>>> [http-bio-127.0.0.1-8090-exec-4])
>>>>>> * INFO  2016-10-23 06:27:24,067 (admin) Import:Commit took 0.20
>>>>>> seconds (DefaultMetadataImportService.java
>>>>>> [http-bio-127.0.0.1-8090-exec-4])
>>>>>> * INFO  2016-10-23 06:27:24,067 (admin) Import:Done took 0.55 seconds
>>>>>> (DefaultMetadataImportService.java [http-bio-127.0.0.1-8090-exec-4])
>>>>>> * INFO  2016-1

Re: [Dhis2-devs] Configuration of approvals in 2.25

2016-11-01 Thread Jason Pickering
Hi Jim,

​I think i did that actually. Have a look at these three tables.


​

After making those adjustments, and clearing the application cache, i went
to data approvals, but nothing appeared there, even though I had added the
workflow to the dataset which needs approval through the UI. However, after
checking in the database, it seems the UI did nothing actually. After
adding the workflow via SQL, it seems to work.

Seems like a series of bugs really, but I guess I did manage to find a
workaround.

Regards,
Jason





On Tue, Nov 1, 2016 at 12:52 PM, Jim Grace  wrote:

> Hi Jason,
>
> 1. After you patched dataapprovallevel.categoryoptiongroupsetid to NULL
> in the DB, subsequently could you view the approval level with no cat
> option combo in the edit approval level screen?
>
> 2. In order to approve a dataset, you need to create an approval workflow,
> assign one or more approval levels to it, and then assign the workflow to
> one or more datasets (the other bug I mentioned -- you may have to patch
> the workflowid column in the dataset record.)
>
> Cheers,
> Jim
>
>
> On Tue, Nov 1, 2016 at 8:40 AM, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
>> I tried that actually but could not get any data-sets to appear in the
>> approvals dialog.
>>
>> I even tried to create a "Default category option group set", containing
>> only the "default" category option, but that did not work either.
>>
>> Neither hack worked.
>>
>> Unfortunately, we cannot go back to 2.24 at this point, but can wait for
>> this to be fixed to implement the approvals.
>>
>> Thanks for looking into it.
>>
>> Regards,
>> Jason
>>
>>
>> On Tue, Nov 1, 2016 at 12:31 PM, Jim Grace  wrote:
>>
>>> Lars, should I create bug reports for these two 2.25 approvals-related
>>> problems?
>>>
>>> Jason, you could use 2.24, or you could try defining an approval level
>>> with a cat option group set, then find that record in the dataapprovallevel
>>> table and patch the categoryoptiongroupsetid column to null (and flush the
>>> hibernate cache.)
>>>
>>>
>>> On Tue, Nov 1, 2016 at 5:04 AM, Jason Pickering <
>>> jason.p.picker...@gmail.com> wrote:
>>>
>>>> Hi Jim and Lars,
>>>>
>>>> Has this been solved, or is there a workaround which I can use?
>>>>
>>>> Regards,
>>>> Jason
>>>>
>>>>
>>>> On Tue, Oct 25, 2016 at 12:59 PM, Jim Grace  wrote:
>>>>
>>>>> I get the same results. In 2.24 and earlier I am able to save a new
>>>>> approval level with no category option group set. But 2.25 does not allow
>>>>> me to do so.
>>>>>
>>>>> Note that this is not related to the new category combination field
>>>>> that we will be adding to approval workflows in 2.26. This has always been
>>>>> an optional field for approval levels.
>>>>>
>>>>> Also in 2.25 when adding or updating a data set, there is no field for
>>>>> data approval workflow. It was there in 2.24.
>>>>>
>>>>>
>>>>> On Tue, Oct 25, 2016 at 2:03 AM, Jason Pickering <
>>>>> jason.p.picker...@gmail.com> wrote:
>>>>>
>>>>>> Hi Lars,
>>>>>>
>>>>>> Here is the info you asked for.
>>>>>>
>>>>>> Version:2.25Build revision:8e07d2fBuild date:2016-10-17 06:38
>>>>>>
>>>>>> Regards,
>>>>>> Jason
>>>>>>
>>>>>>
>>>>>> On Tue, Oct 25, 2016 at 4:58 AM, Lars Helge Øverland 
>>>>>> wrote:
>>>>>>
>>>>>>> Hi Jason,
>>>>>>>
>>>>>>> could you tell us the exact build date for this WAR file?
>>>>>>>
>>>>>>> Could you also try again with the latest 2.25 WAR build?
>>>>>>>
>>>>>>> We have introduced this property "categoryOptionGroupSet" in
>>>>>>> master, but should not be there in 2.25.
>>>>>>>
>>>>>>> regards,
>>>>>>>
>>>>>>> Lars
>>>>>>>
>>>>>>>
>>>>>>> On Sun, Oct 23, 2016 at 12:32 AM, Jason Pickering <
>>>>>>> jason.p.picker...@gmail.com> wrote:
>>>>>>>
>>

Re: [Dhis2-devs] Configuration of approvals in 2.25

2016-11-01 Thread Jason Pickering
Hi Jim,
Not sure what happened to the image, but its not really important.

My workaround was to basically to

1) Create a category option group set  with type attribute (I did not have
any)
2) Create the approval levels and approval workflow using that category
option group set through the UI.
3) Update the dataapproval table manually

UPDATE dataapprovallevel set categoryoptiongroupsetid = NULL;

4) Adjust the dataset to use the workflow I created. I had to do this with
SQL as well, as the UI did not work for me for some reason.

After all of that, it seems to work (for those who need a work around!)

Regards,
Jason


On Tue, Nov 1, 2016 at 8:07 PM, Jim Grace  wrote:

> Hi Jason,
>
> Your image didn't come through; it was a broken link image.
>
> When I create or edit a dataset through the 2.25 UI, I can't find a place
> to select the workflow. (It was there in 2.23 and 2.24.) So I'm not sure
> what you mean by "added the workflow to the dataset which needs approval
> through the UI". But glad you got something working.
>
> Cheers,
> Jim
>
>
> On Tue, Nov 1, 2016 at 9:24 AM, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
>>
>> Hi Jim,
>>
>> ​I think i did that actually. Have a look at these three tables.
>>
>>
>> ​
>>
>> After making those adjustments, and clearing the application cache, i
>> went to data approvals, but nothing appeared there, even though I had added
>> the workflow to the dataset which needs approval through the UI. However,
>> after checking in the database, it seems the UI did nothing actually. After
>> adding the workflow via SQL, it seems to work.
>>
>> Seems like a series of bugs really, but I guess I did manage to find a
>> workaround.
>>
>> Regards,
>> Jason
>>
>>
>>
>>
>>
>> On Tue, Nov 1, 2016 at 12:52 PM, Jim Grace  wrote:
>>
>>> Hi Jason,
>>>
>>> 1. After you patched dataapprovallevel.categoryoptiongroupsetid to NULL
>>> in the DB, subsequently could you view the approval level with no cat
>>> option combo in the edit approval level screen?
>>>
>>> 2. In order to approve a dataset, you need to create an approval
>>> workflow, assign one or more approval levels to it, and then assign the
>>> workflow to one or more datasets (the other bug I mentioned -- you may have
>>> to patch the workflowid column in the dataset record.)
>>>
>>> Cheers,
>>> Jim
>>>
>>>
>>> On Tue, Nov 1, 2016 at 8:40 AM, Jason Pickering <
>>> jason.p.picker...@gmail.com> wrote:
>>>
>>>> I tried that actually but could not get any data-sets to appear in the
>>>> approvals dialog.
>>>>
>>>> I even tried to create a "Default category option group set",
>>>> containing only the "default" category option, but that did not work
>>>> either.
>>>>
>>>> Neither hack worked.
>>>>
>>>> Unfortunately, we cannot go back to 2.24 at this point, but can wait
>>>> for this to be fixed to implement the approvals.
>>>>
>>>> Thanks for looking into it.
>>>>
>>>> Regards,
>>>> Jason
>>>>
>>>>
>>>> On Tue, Nov 1, 2016 at 12:31 PM, Jim Grace  wrote:
>>>>
>>>>> Lars, should I create bug reports for these two 2.25 approvals-related
>>>>> problems?
>>>>>
>>>>> Jason, you could use 2.24, or you could try defining an approval level
>>>>> with a cat option group set, then find that record in the 
>>>>> dataapprovallevel
>>>>> table and patch the categoryoptiongroupsetid column to null (and flush the
>>>>> hibernate cache.)
>>>>>
>>>>>
>>>>> On Tue, Nov 1, 2016 at 5:04 AM, Jason Pickering <
>>>>> jason.p.picker...@gmail.com> wrote:
>>>>>
>>>>>> Hi Jim and Lars,
>>>>>>
>>>>>> Has this been solved, or is there a workaround which I can use?
>>>>>>
>>>>>> Regards,
>>>>>> Jason
>>>>>>
>>>>>>
>>>>>> On Tue, Oct 25, 2016 at 12:59 PM, Jim Grace  wrote:
>>>>>>
>>>>>>> I get the same results. In 2.24 and earlier I am able to save a new
>>>>>>> approval level with no category option group set. But 2.25 does not 
>>>>>>> allow
>>>>>>

Re: [Dhis2-devs] Unable to create resource of type "File"

2016-11-08 Thread Jason Pickering
Are you certain that the user which is running the DHIS2 server has access
to write to

/home/dhis/documents/ ?

Regards,
Jason


On Tue, Nov 8, 2016 at 12:18 PM, Archana Chillala  wrote:

> Hi Lars,
>
> Yes, it works fine on the play server. But somehow, not on ours. We're
> using DHIS version 2.25 build - 66c1fc0. Please have a look at the logs
> attached herewith.
>
>
>
> Archana Chillala
> Application Developer
> Email archa...@thoughtworks.com
> Telephone +91 9100960533 <+91+9100960533>
> [image: ThoughtWorks]
> 
>
> On Fri, Nov 4, 2016 at 7:18 PM, Lars Helge Øverland 
> wrote:
>
>> Hi Archana,
>>
>> I just tested this on the demo instance for 2.25 and it works there.
>>
>> Can you please provide the tomcat log?
>>
>> regards,
>>
>> Lars
>>
>>
>>
>>
>> On Fri, Nov 4, 2016 at 1:44 PM, Archana Chillala <
>> archa...@thoughtworks.com> wrote:
>>
>>> Hi,
>>>
>>> We are using DHIS version 2.25. In the Reports module, we have *Resources
>>> *of types "File" and "URL". We are able to create a resource of type
>>> 'URL'. But when we try to create one with type - 'File', the application
>>> throws an exception. This used to get saved in 2.24 and earlier versions.
>>> But doesn't work in 2.25.
>>>
>>> See the screenshot attached.
>>>
>>>
>>>
>>> *Cheers,*
>>>
>>> Archana Chillala
>>> Application Developer
>>> Email archa...@thoughtworks.com
>>> Telephone +91 9100960533 <+91+9100960533>
>>> [image: ThoughtWorks]
>>> 
>>>
>>> ___
>>> 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
>>>
>>>
>>
>>
>> --
>> 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-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Unable to create resource of type "File"

2016-11-08 Thread Jason Pickering
No, I am talking about the system user on the operating system.

So, if you DHIS2 server is running as the user "dhis", then this user needs
access to be able to write to that directory mentioned in your file.

This has nothing to do with users in DHIS2, but is potentially an operating
system issue with the permissions of the directory which the server needs
to write to.

Regards,
Jason


On Tue, Nov 8, 2016 at 1:09 PM, Archana Chillala 
wrote:

> Hi Jason,
>
> The user has been given all the authorities that include the following:
> Add/Update Private Document
> Add/update Public Document
> Delete Document
>
> Even though, the issue exists.
>
>
>
>
> Archana Chillala
> Application Developer
> Email archa...@thoughtworks.com
> Telephone +91 9100960533 <+91+9100960533>
> [image: ThoughtWorks]
> <http://www.thoughtworks.com/?utm_campaign=archana-chillala-signature&utm_medium=email&utm_source=thoughtworks-email-signature-generator>
>
> On Tue, Nov 8, 2016 at 4:58 PM, Jason Pickering <
> jason.p.picker...@gmail.com> wrote:
>
>> Are you certain that the user which is running the DHIS2 server has
>> access to write to
>>
>> /home/dhis/documents/ ?
>>
>> Regards,
>> Jason
>>
>>
>> On Tue, Nov 8, 2016 at 12:18 PM, Archana Chillala <
>> archa...@thoughtworks.com> wrote:
>>
>>> Hi Lars,
>>>
>>> Yes, it works fine on the play server. But somehow, not on ours. We're
>>> using DHIS version 2.25 build - 66c1fc0. Please have a look at the logs
>>> attached herewith.
>>>
>>>
>>>
>>> Archana Chillala
>>> Application Developer
>>> Email archa...@thoughtworks.com
>>> Telephone +91 9100960533 <+91+9100960533>
>>> [image: ThoughtWorks]
>>> <http://www.thoughtworks.com/?utm_campaign=archana-chillala-signature&utm_medium=email&utm_source=thoughtworks-email-signature-generator>
>>>
>>> On Fri, Nov 4, 2016 at 7:18 PM, Lars Helge Øverland 
>>> wrote:
>>>
>>>> Hi Archana,
>>>>
>>>> I just tested this on the demo instance for 2.25 and it works there.
>>>>
>>>> Can you please provide the tomcat log?
>>>>
>>>> regards,
>>>>
>>>> Lars
>>>>
>>>>
>>>>
>>>>
>>>> On Fri, Nov 4, 2016 at 1:44 PM, Archana Chillala <
>>>> archa...@thoughtworks.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> We are using DHIS version 2.25. In the Reports module, we have *Resources
>>>>> *of types "File" and "URL". We are able to create a resource of type
>>>>> 'URL'. But when we try to create one with type - 'File', the application
>>>>> throws an exception. This used to get saved in 2.24 and earlier versions.
>>>>> But doesn't work in 2.25.
>>>>>
>>>>> See the screenshot attached.
>>>>>
>>>>>
>>>>>
>>>>> *Cheers,*
>>>>>
>>>>> Archana Chillala
>>>>> Application Developer
>>>>> Email archa...@thoughtworks.com
>>>>> Telephone +91 9100960533 <+91+9100960533>
>>>>> [image: ThoughtWorks]
>>>>> <http://www.thoughtworks.com/?utm_campaign=archana-chillala-signature&utm_medium=email&utm_source=thoughtworks-email-signature-generator>
>>>>>
>>>>> ___
>>>>> 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
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Lars Helge Øverland
>>>> Lead developer, DHIS 2
>>>> University of Oslo
>>>> Skype: larshelgeoverland
>>>> l...@dhis2.org
>>>> http://www.dhis2.org <https://www.dhis2.org/>
>>>>
>>>>
>>>
>>> ___
>>> 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
>>>
>>>
>>
>>
>> --
>> Jason P. Pickering
>> email: jason.p.picker...@gmail.com
>> tel:+46764147049
>>
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] Translation project for Dari and Pashto languages

2016-11-09 Thread Jason Pickering
Hi Sam,
We need to do some setup on our side first. Those languages are for the
user interface of the translation server, not the actual translation
language.

I have now enabled translation for Dari Persian (language code = prs) and
Pashto ( language code = ps) for the core translations.

There are many others which need to be translated, but I would suggest that
you start with the "dhis-service-core" folder, and then we can go from
there.

Once you finish that, please get in touch with my via direct email, as I
will need to sync these with the source code.

Translation files can be downloaded for offline translation, using a tool
like "POEdit". You can get the translation template from
https://translate.dhis2.org/export/?path=/prs/dhis2-translations/dhis-service-core/dhis-service-core-prs.po
for instance.

If you have any other problems, let us know.

Also, thanks for pointing out the manual is out of date. We will try and
get it updated.

Regards,
Jason



On Wed, Nov 9, 2016 at 10:07 AM, Sam Kasozi  wrote:

> Hi Jason,
>
> We would like to work on the translation for 2 languages: Dari and Pashto
> in the DHIS 2. The translation guide in the implementer's manual provides
> some instructions that are slightly different from the current translation
> server user interface. I have a couple of questions.
>
> - Do we have an updated guide?
> - Do you need to setup the project first before we can do anything (Under
> settings -> Translation, -> Alternative source language, I see Pashto-ps
> and not Dari)
> - Then also does it have a provision for downloading a translation
> template which can be populated and used to update the server afterward?
>
> regards,
>
>
> Sam Kasozi
> +256 788-993-565
> Skype: sam.kasoziug
>



-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] No totals visible in the pivot table

2016-11-24 Thread Jason Pickering
Hi Angela,
You should created SQL views via the DHIS2 application. Go to Data
Administration -> SQL Views and create your view there.See here

for
details. When the analytics process runs, it needs to drop certain resource
tables. If these tables are linked to a view in the database, then the
process fails.

If you must have views directly on the database (and not created through
the DHIS2 SQL View functionality) you need to be sure they do not reference
resource tables, or alternatively, encapsulate the view in a PLPSQL
function, so that they are not seen by the database.

Regards,
Jason


On Thu, Nov 24, 2016 at 11:20 AM, Hinds, Ms. Angela (CAR) <
hinds...@carpha.org> wrote:

> Thanks everyone for the response. When I run the analytics it gives me the
> following below, which is related to a view I created in PgAdmin. Is the
> only option to move the view, run the analytics then add the view again?
>
> Regards,
> Angela
>
> Error
> Process failed: StatementCallback; uncategorized SQLException for SQL
> [drop table _dateperiodstructure;]; SQL state [2BP01]; error code [0];
> ERROR: cannot drop table _dateperiodstructure because other objects depend
> on it Detail: view "DHIS2MasterViewXtra" depends on table
> _dateperiodstructure
> Hint: Use DROP ... CASCADE to drop the dependent objects too.; nested
> exception is org.postgresql.util.PSQLException: ERROR: cannot drop table
> _dateperiodstructure because other objects depend on it Detail: view
> "DHIS2MasterViewXtra" depends on table _dateperiodstructure Hint: Use DROP
> ... CASCADE to drop the dependent objects too.
>
>
> -Original Message-
> From: Dan Cocos [mailto:dco...@gmail.com]
> Sent: Wednesday, November 23, 2016 12:18 PM
> To: Hinds, Ms. Angela (CAR) 
> Cc: DHIS Users ; DHIS 2 Developers list <
> dhis2-devs@lists.launchpad.net>
> Subject: Re: [Dhis2-devs] No totals visible in the pivot table
>
> You have to run Analytics for the Pivot Tables to update Apps —> Reports
> —> Analytics
>
>
> Dan Cocos
> Principal, BAO Systems
> dco...@baosystems.com | http://www.baosystems.com |  2900 K Street, Suite
> 404, Washington D.C. 20007
>
> > On Nov 23, 2016, at 11:15 AM, Hinds, Ms. Angela (CAR) <
> hinds...@carpha.org> wrote:
> >
> > Hi Folks,
> >
> > I recently imported records using a csv file into DHIS 2.  I can see the
> data in the data entry screen and using the browser option but nothing when
> I use the pivot table tool.  It is aggregate data and I have not set up
> indicators as yet so I am just running straightforward tables using the
> details option.
> >
> > Any ideas as to the reason for this?
> >
> > Regards,
> >
> > Angela
> >
> >
> > ___
> > 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-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>



-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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] jenkins CI server now on https

2016-11-26 Thread Jason Pickering
The server should redirect HTTP to HTTPS automatically,but it would be a
good idea to change them anyway as Lars says.

Regards,
Jason

On Sat, Nov 26, 2016, 12:57 Lars Helge Øverland  wrote:

> Hi,
>
> our CI Jenkins server is now running on HTTPS:
>
> https://ci.dhis2.org
>
> If you have scripts / URLs pointing directly to the WAR files it could be
> a good idea to upgrade them.
>
>
>
> 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-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] Angola Flag missing in DHIS2

2016-12-01 Thread Jason Pickering
Hi Prosper,

No problem. I will add it, but usually we wait until someone requests a
particular flag to be added.

WIll let you know when it is done.

Regards,
Jason


On Thu, Dec 1, 2016 at 10:39 AM, Prosper BT  wrote:

> Dear Team,
>
> Angola is missing in the DHIS2 system, could we add majority of the
> country flags, like Angola is upset that their flag is missing in the
> Customization Academy.
>
> Regards
>
>
> Prosper Behumbiize, MPH
> 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-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
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


  1   2   3   4   5   6   7   8   9   10   >