Re: [Dhis2-devs] Disable application level caching

2016-04-15 Thread Sultanahamar Mohammad
Hi Lars,

we have seen good number of these caching issues, they might be some miss
from our end. we will send you a doc soon.

Thanks and Regards,
Sultan Ahamar

On Fri, Apr 15, 2016 at 6:44 PM, Lars Helge Øverland  wrote:

> Hi Sultan,
>
> you can disable second level hibernate caching in the system only by
> modifying the source code. However that is not recommendable as it will act
> differently in production.
>
> Can you try to reproduce when things are not being updated and tell us the
> exact steps? We will try to fix. It is not supposed to be that way since
> Hibernate should invalidate its caches when stale.
>
> regards,
>
> Lars
>
>
>
>
> On Thu, Apr 14, 2016 at 2:33 PM, Sultanahamar Mohammad <
> sult...@thoughtworks.com> wrote:
>
>> Hi Team,
>>
>> We are assuming that there is some application level caching happening.
>> Users permissions, upon change does not reflect right away in the app. It
>> takes some time to reflect. Some other api calls also take time to reflect.
>>
>> Is our assumption correct on application level caching. If it is then how
>> do we disable it if we want to. Please let us know.
>>
>> Thanks and Regards,
>> Sultan Ahamar.
>>
>
>
>
> --
> 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


Re: [Dhis2-devs] Reporting Feature

2016-04-15 Thread Sultanahamar Mohammad
Hi Lars,

That was certainly a good idea. Our client MSF OCA needed that app to even
more simpler for their users to use. So the requirement is like, user comes
to app and selects time period ( month, and year). App should fetch all
relevant charts to their org units. For app to recognize the charts, app is
relying on the naming convention of charts and a dataset. This is not a
generic thing now. :( This app is configurable but not completely. We can
discuss on the app more if you are interested.

Regards,
Sultan Ahamar.

On Fri, Apr 15, 2016 at 9:42 PM, Lars Helge Øverland  wrote:

> Thanks Sultan.
>
> Sounds like a great idea. Now if you can make that app generic (meaning
> reusable for others) then we are more than happy to put it on the app
> store  ;)
>
> regards,
>
> Lars
>
>
> On Fri, Apr 1, 2016 at 7:14 AM, Sultanahamar Mohammad <
> sult...@thoughtworks.com> wrote:
>
>> Hey Lars,
>>
>> That looks good. Since we have to prepare many of these reports with
>> multiple charts, to make it more user friendly we have to build wrapper
>> around API(as our users cannot write code) to make it a small app that
>> shows all the charts and user selects few of them. Then commentary can go
>> in data element as you have said. Is this something good? or you can
>> suggest something good if we have missed exploring some functionality.
>>
>> Thank you for taking time to reply on generic talk like this at the time
>> of release. It means a lot.
>>
>> Regards,
>> Sultan Ahamar.
>>
>> On Thu, Mar 31, 2016 at 10:02 PM, Lars Helge Øverland 
>> wrote:
>>
>>> Hi Sultan,
>>>
>>> that sounds interesting. Are you open to use the HTML standard reports
>>> for this?
>>>
>>> My suggestion is to use an HTML report in combination with the charts
>>> plugin
>>> .
>>> The comment could be regular (raw) data values. You can create a data
>>> element of type TEXT (e.g. called "Chart Malaria Comment"). In your HTML
>>> report you can have a javascript function that saves the comment text for
>>> the appropriate data element, period, org unit. The HTML report can be made
>>> print-friendly and saved as PDF.
>>>
>>> Just an idea.
>>>
>>> Lars
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Wed, Mar 30, 2016 at 8:49 AM, Sultanahamar Mohammad <
>>> sult...@thoughtworks.com> wrote:
>>>
 Hi Lars,

 We have a requirement where in, we have to add few charts developed in
 dhis together as a report with a small user commentary about them. Finally
 we want to save them in dhis. Is this possible in the current dhis?

 Thanks and Regards,
 Sultan Ahamar.

>>>
>>>
>>>
>>> --
>>> Lars Helge Øverland
>>> Lead developer, DHIS 2
>>> University of Oslo
>>> Skype: larshelgeoverland
>>> http://www.dhis2.org 
>>>
>>>
>>
>
>
> --
> 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


[Dhis2-devs] [Bug 1571073] [NEW] Data Elements / Indicators app misleading message

2016-04-15 Thread Jim Grace
Public bug reported:

When editing an existing object using the 'Data Elements / Indicators'
app introduced in 2.22 (e.g. editing a Category, Category Option, Data
Element, etc.) a message is displayed saying "This object will be
created with public edit and view rights".

This message may be very helpful when creating a new object, but for
editing an existing object the message is confusing (the object has been
created already) and may be misleading (the object  may already have
different rights assigned.)

Unless we can think of a more helpful message, I suggest that we just
remove this message when editing an existing object.

** 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/1571073

Title:
  Data Elements / Indicators app misleading message

Status in DHIS:
  New

Bug description:
  When editing an existing object using the 'Data Elements / Indicators'
  app introduced in 2.22 (e.g. editing a Category, Category Option, Data
  Element, etc.) a message is displayed saying "This object will be
  created with public edit and view rights".

  This message may be very helpful when creating a new object, but for
  editing an existing object the message is confusing (the object has
  been created already) and may be misleading (the object  may already
  have different rights assigned.)

  Unless we can think of a more helpful message, I suggest that we just
  remove this message when editing an existing object.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1571073/+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


[Dhis2-devs] [Bug 1571070] [NEW] UI can't assign org units to category options

2016-04-15 Thread Jim Grace
Public bug reported:

Using the 'Data Elements / Indicators' app introduced in 2.22, I can no
longer assign organisation units to a category option.

** 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/1571070

Title:
  UI can't assign org units to category options

Status in DHIS:
  New

Bug description:
  Using the 'Data Elements / Indicators' app introduced in 2.22, I can
  no longer assign organisation units to a category option.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1571070/+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


Re: [Dhis2-devs] Health Indexes: limited to a single "indicator weight" value

2016-04-15 Thread Greg Rowles
Hi Lars

Actually I'm more interested to know about the changes to the analytics API
so that it includes the numerator + denominator values so optional columns.
The indexes can wait :)

Regards,
Greg
On 15 Apr 2016 6:35 PM, "Lars Helge Øverland"  wrote:

> Hi Greg,
>
> unfortunately we do not have this kind of feature on the road map per now.
>
> regards,
>
> Lars
>
> On Wed, Feb 10, 2016 at 7:51 AM, Greg Rowles 
> wrote:
>
>> Hi Devs
>>
>>
>>
>> Are we any closer to implementing custom attribute values for indicator +
>> group pairings? We want to develop health index calculators at the
>> indicator-group membership level which requires us to define a "weight"
>> value for this pair combination. This seems the logical place to assign an
>> attribute value. However this is not currently supported in DHIS2
>> (attribute values are limited to objects with a single primary key) and by
>> the looks of things the changes required to implement this functionality
>> are significant.
>>
>>
>>
>> Right now the indicator-attribute value limits us to a single “weight”
>> value but this does little to help when other implementations are assigning
>> indicators to multiple groups. Fortunately (in ZA) we’re still working with
>> single group allocations for elements and indicators but we’re foreseeing
>> this type of functionality as necessary in the future...
>>
>>
>> Kind 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
>>
>>
>
>
> --
> 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


Re: [Dhis2-devs] Health Indexes: limited to a single "indicator weight" value

2016-04-15 Thread Lars Helge Øverland
Hi Greg,

unfortunately we do not have this kind of feature on the road map per now.

regards,

Lars

On Wed, Feb 10, 2016 at 7:51 AM, Greg Rowles  wrote:

> Hi Devs
>
>
>
> Are we any closer to implementing custom attribute values for indicator +
> group pairings? We want to develop health index calculators at the
> indicator-group membership level which requires us to define a "weight"
> value for this pair combination. This seems the logical place to assign an
> attribute value. However this is not currently supported in DHIS2
> (attribute values are limited to objects with a single primary key) and by
> the looks of things the changes required to implement this functionality
> are significant.
>
>
>
> Right now the indicator-attribute value limits us to a single “weight”
> value but this does little to help when other implementations are assigning
> indicators to multiple groups. Fortunately (in ZA) we’re still working with
> single group allocations for elements and indicators but we’re foreseeing
> this type of functionality as necessary in the future...
>
>
> Kind 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
>
>


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


Re: [Dhis2-devs] Reporting Feature

2016-04-15 Thread Lars Helge Øverland
Thanks Sultan.

Sounds like a great idea. Now if you can make that app generic (meaning
reusable for others) then we are more than happy to put it on the app store
 ;)

regards,

Lars


On Fri, Apr 1, 2016 at 7:14 AM, Sultanahamar Mohammad <
sult...@thoughtworks.com> wrote:

> Hey Lars,
>
> That looks good. Since we have to prepare many of these reports with
> multiple charts, to make it more user friendly we have to build wrapper
> around API(as our users cannot write code) to make it a small app that
> shows all the charts and user selects few of them. Then commentary can go
> in data element as you have said. Is this something good? or you can
> suggest something good if we have missed exploring some functionality.
>
> Thank you for taking time to reply on generic talk like this at the time
> of release. It means a lot.
>
> Regards,
> Sultan Ahamar.
>
> On Thu, Mar 31, 2016 at 10:02 PM, Lars Helge Øverland 
> wrote:
>
>> Hi Sultan,
>>
>> that sounds interesting. Are you open to use the HTML standard reports
>> for this?
>>
>> My suggestion is to use an HTML report in combination with the charts
>> plugin
>> .
>> The comment could be regular (raw) data values. You can create a data
>> element of type TEXT (e.g. called "Chart Malaria Comment"). In your HTML
>> report you can have a javascript function that saves the comment text for
>> the appropriate data element, period, org unit. The HTML report can be made
>> print-friendly and saved as PDF.
>>
>> Just an idea.
>>
>> Lars
>>
>>
>>
>>
>>
>>
>>
>> On Wed, Mar 30, 2016 at 8:49 AM, Sultanahamar Mohammad <
>> sult...@thoughtworks.com> wrote:
>>
>>> Hi Lars,
>>>
>>> We have a requirement where in, we have to add few charts developed in
>>> dhis together as a report with a small user commentary about them. Finally
>>> we want to save them in dhis. Is this possible in the current dhis?
>>>
>>> Thanks and Regards,
>>> Sultan Ahamar.
>>>
>>
>>
>>
>> --
>> Lars Helge Øverland
>> Lead developer, DHIS 2
>> University of Oslo
>> Skype: larshelgeoverland
>> http://www.dhis2.org 
>>
>>
>


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


Re: [Dhis2-devs] Two bugs on Indicator definitions 2.22 Build 21962 Demo server

2016-04-15 Thread Lars Helge Øverland
I think I see what you mean. For some reason this works in 2.22 but not
trunk. Issue here:

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


Lars


On Fri, Apr 1, 2016 at 9:27 PM, Prosper BT  wrote:

> Thanks Lars
>
> When you pick the decimal type say 0 it remains blank and in display it
> show 1 decimal point.
>
> I think it's okay for factor 1 we can have a denominator of 1 but how do
> old indicator get converted.
>
> Regards
>
> On Fri, Apr 1, 2016, 10:02 PM Lars Helge Øverland  wrote:
>
>> Hi Prosper,
>>
>> On Fri, Apr 1, 2016 at 7:26 PM, Prosper BT  wrote:
>>
>>> Dear Team,
>>>
>>> Seems we have two bugs on indicator definitions, tried to search for
>>> them in the bugs list and cant see them, let me know if I can add them to
>>> the bugs list
>>>
>>> 1. Decimals in data input not saving - whenever you select the input
>>> decimal, its not saved and takes default
>>>
>>>
>> Strange, I just tested on demo and dev and seems to save okay.
>>
>> Can you give us the exact steps you took?
>>
>>
>>
>>> 2. For indicator type with factor 1 - numbers, the denominator is still
>>> required. see screen capture below you cant save without adding a numerator
>>>
>>> 1. [image: Inline image 1]
>>>
>>> ​Regards​
>>>
>>
>> Okay. This "number" feature has always caused confusion with users,
>> perhaps its better to just remove it and enter 1 as denominator?
>>
>> regards,
>>
>> Lars
>>
>>
>>
>>>
>>> --
>>> Prosper Behumbiize, MPH
>>> Global HISP| University Of Oslo/HISP Uganda
>>> +256 752 751 776 | +256 776 139 139
>>> pros...@hispuganda.org  | pros...@dhis2.org | Skype:
>>> prospertb
>>>
>>
>>
>>
>> --
>> Lars Helge Øverland
>> Lead developer, DHIS 2
>> University of Oslo
>> Skype: larshelgeoverland
>> http://www.dhis2.org 
>>
>>


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


[Dhis2-devs] [Bug 1569817] Re: UID error in custom data entry form crashes data validation

2016-04-15 Thread Lars Helge Øverland
** Changed in: dhis2
   Status: New => Fix Committed

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1569817

Title:
  UID error in custom data entry form crashes data validation

Status in DHIS:
  Fix Committed

Bug description:
  If there are one or more UIDs referenced in a custom data entry form,
  those errors will be intercepted and displayed to the user when trying
  to open that form.

  The same errors caused a total crash when running Data Validation,
  though, yielding only the following non-helpful tomcat log thread
  below.

  The Data Validation process should either provide the user with an
  actionable error message as is done when opening the data entry form,
  or else it should at least continue Validation Processing.

  The bug has been verified in the DHIS2 Demo:
  1. Data Validation runs fine.
  2. Open the custom data entry form for e.g. the Child Health Data Set, switch 
to source code and change some of the Data Element UIDs (the changed UID 
obviously do not exist in the dataelement table).
  3. Data Validation no longer runs.

  TOMCAT LOG:
  * ERROR 2016-04-07 11:16:26,155 Unexpected error occurred in scheduled task. 
(TaskUtils.java [taskScheduler-1])
  java.lang.NullPointerException
  at 
org.hisp.dhis.dataintegrity.DefaultDataIntegrityService.getCategoryOptionCombosNotInDataElementCategoryCombo(DefaultDataIntegrityService.java:326)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  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.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:207)
  at 
com.sun.proxy.$Proxy105.getCategoryOptionCombosNotInDataElementCategoryCombo(Unknown
 Source)
  at 
org.hisp.dhis.dataintegrity.tasks.DataIntegrityTask.run(DataIntegrityTask.java:96)
  at 
org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
  at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
  at java.util.concurrent.FutureTask.run(Unknown Source)
  at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown
 Source)
  at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown
 Source)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  at java.lang.Thread.run(Unknown Source)

  After this the log hangs - there is no "caused by" etc that usually
  provides a better guide to the source of the problem.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1569817/+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


[Dhis2-devs] [Bug 1569817] Re: UID error in custom data entry form crashes data validation

2016-04-15 Thread Calle Hedberg
Firstly, I initially encountered it in the 2.20za instance (that is the
latest 2.20 war file with some South African code additions, although no
addition relates to Data Integrity (sorry - yes it is called Data
Integrity and not Data Validation).

Secondly, I then tested the same issue on the 2.22 demo instance 2 days
ago - so the bug is definitely there in all the latest versions of 2.20,
2.21, and 2.22.

Regards
Calle

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1569817

Title:
  UID error in custom data entry form crashes data validation

Status in DHIS:
  New

Bug description:
  If there are one or more UIDs referenced in a custom data entry form,
  those errors will be intercepted and displayed to the user when trying
  to open that form.

  The same errors caused a total crash when running Data Validation,
  though, yielding only the following non-helpful tomcat log thread
  below.

  The Data Validation process should either provide the user with an
  actionable error message as is done when opening the data entry form,
  or else it should at least continue Validation Processing.

  The bug has been verified in the DHIS2 Demo:
  1. Data Validation runs fine.
  2. Open the custom data entry form for e.g. the Child Health Data Set, switch 
to source code and change some of the Data Element UIDs (the changed UID 
obviously do not exist in the dataelement table).
  3. Data Validation no longer runs.

  TOMCAT LOG:
  * ERROR 2016-04-07 11:16:26,155 Unexpected error occurred in scheduled task. 
(TaskUtils.java [taskScheduler-1])
  java.lang.NullPointerException
  at 
org.hisp.dhis.dataintegrity.DefaultDataIntegrityService.getCategoryOptionCombosNotInDataElementCategoryCombo(DefaultDataIntegrityService.java:326)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  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.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:207)
  at 
com.sun.proxy.$Proxy105.getCategoryOptionCombosNotInDataElementCategoryCombo(Unknown
 Source)
  at 
org.hisp.dhis.dataintegrity.tasks.DataIntegrityTask.run(DataIntegrityTask.java:96)
  at 
org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
  at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
  at java.util.concurrent.FutureTask.run(Unknown Source)
  at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown
 Source)
  at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown
 Source)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  at java.lang.Thread.run(Unknown Source)

  After this the log hangs - there is no "caused by" etc that usually
  provides a better guide to the source of the problem.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1569817/+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


Re: [Dhis2-devs] How to get the attributeOptionCombo value?

2016-04-15 Thread Lars Helge Øverland
Hi Harold,

good question. The attributeOptionCombo property / column name you will
find certain places actually refers to the category option combo table
(categoryoptioncombo).

To elaborate, categoryOptionCombo and attributeOptionCombo both refer to
categoryoptioncombo. The reason for having both of these is pragmatic -
both data elements and data set refer to a category combo, but these are
often used for wildly different things.

So for the attributeOptionCombo, you can simply refer to
api/categoryOptionCombos resource as well.


regards,

Lars





>
> Hallo everyone,
>
>
>
> We are working on migrating data from one instance to another, where the
> instances have different configurations for the data elements. In the data
> extracted from one instance, we have to change the following element values
> to correspond to those of the instance to which we are importing data:-
> dataElement, categoryOptionCombo and attributeOptionCombo. The first two
> i.e. dataElement and categoryOptionCombo we can get through the API, but
> the attributeOptionCombo value can’t be got through the API. We have two
> questions.
>
> 1.   Where in a DHIS2 instance can we get the attributeOptionCombo
> value for a given dataset?
>
> 2.   If we migrate data using this method, does this affect the
> Reporting Rate for that particular DataSet? If it does, how can we overcome
> this?
>
>
>
> Kind Regards,
>
> Harold
>
>
>



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


Re: [Dhis2-devs] Issue with /api/reportTables api

2016-04-15 Thread Lars Helge Øverland
Hi Aamer,

this seems to work as expected in 2.22 / on demo. Can you try to reproduce
there? If not, can you upgrade to 2.22?

regards,

Lars


On Tue, Apr 12, 2016 at 4:54 PM, Jan Henrik Øverland <
janhenrik.overl...@gmail.com> wrote:

> Seems relative periods are rewinded by one period. "This quarter" returns
> Apr-Jun in the pivot table, but Jan-Mar in /data.html. Should be fixed.
>
> On 12 April 2016 at 11:06, Aamer Mohammed  wrote:
>
>>
>> I checked in play.dhis2.org also. I am seeing the same issue.
>> For the reportTable, "ANC: Coverages Quarterly" last row data is not
>> being retrieved by the api
>> https://play.dhis2.org/demo/api/reportTables/C0rhAq1oklh/data.json
>>
>> Is it a known issue?
>>
>>
>> On Tue, Apr 12, 2016 at 1:00 PM, Morten Olav Hansen 
>> wrote:
>>
>>> Hm, I take that back.. seems both are included.. seems strange
>>>
>>> --
>>> Morten
>>>
>>> On Tue, Apr 12, 2016 at 2:29 PM, Morten Olav Hansen 
>>> wrote:
>>>
 Hm, seems March 2015 is included instead of March 2016... not sure if
 it's a known issue or not, but seems like a bug, Lars will know better
 (maybe it's fixed already)

 --
 Morten

 On Tue, Apr 12, 2016 at 2:27 PM, Aamer Mohammed <
 aam...@thoughtworks.com> wrote:

> Hi Devs,
>
> We have seen the below issue when working with /api/reportTables api.
> We are using DHIS 2.21 build revision 21058.
> The reportTable as seen in DHIS app is as below.
>
> [image: Inline image 1]
>
> However when we try to fetch the data for the same report Table
> through /api/reportTables//data.html api we are not getting entire
> data. The data for last row is not retrieved through api (json response
> attached)
> Is anyone else facing this issue? Any observations please.
>
> Thanks
> Aamer.
>
>
>
>

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


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


[Dhis2-devs] [Bug 1557996] Re: cannot-replicate-user-2.22

2016-04-15 Thread Lars Helge Øverland
** Changed in: dhis2
   Status: Confirmed => Fix Committed

** Changed in: dhis2
Milestone: None => 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/1557996

Title:
  cannot-replicate-user-2.22

Status in DHIS:
  Fix Committed

Bug description:
  Steps to reproduce. Login to demo site. Select a user and then
  replicate the user. Operation fails with

  !DOCTYPE html>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 500 - Request 
processing failed; nested exception is 
org.springframework.dao.DataIntegrityViolationException: could not execute 
statement; SQL [n/a]; constraint [uk_efqukogbk7i0poucwoy2qie74]; nested 
exception is org.hibernate.excepti
 on.ConstraintViolationException: could not execute statementtype Exception reportmessage 
Request processing failed; nested exception is 
org.springframework.dao.DataIntegrityViolationException: could not execute 
statement; SQL [n/a]; constraint [uk_efqukogbk7i0poucwoy2qie74]; nested 
exception is org.hibernate.exception.ConstraintViolationException: could not 
execute statementdescription The server encountered an 
internal error that prevented it from fulfilling this 
request.exceptionorg.springframework.web.util.NestedServletException:
 Request processing failed; nested exception is 
org.springframework.dao.DataIntegrityViolationException: could not execute 
statement; SQL [n/a]; constraint [uk_efqukogbk7i0poucwoy2qie74]; nested 
exception is org.hibernate.exception.ConstraintViolationException: could not 
execute statement

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

org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:867)
javax.servlet.http.HttpServlet.service(HttpServlet.java:648)

org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:841)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
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.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)

org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)

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

org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)

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

org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)

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

org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:154)

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

org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)

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

org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)

org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
org.hisp.dhis.security.filter.CorsFilter.doFilter(CorsFilter.java:95)

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


[Dhis2-devs] [Bug 1569817] Re: UID error in custom data entry form crashes data validation

2016-04-15 Thread Lars Helge Øverland
Hi Calle,

I assume you refer to "Data Integrity" and not "Data Validation" ?

Could you please indicate which DHIS 2 version it is?

The stack trace indicates this is an older version. If that is correct,
could you potentially upgrade?


** Changed in: dhis2
Milestone: None => 2.23

** Changed in: dhis2
 Assignee: (unassigned) => Lars Helge Øverland (larshelge)

** Changed in: dhis2
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1569817

Title:
  UID error in custom data entry form crashes data validation

Status in DHIS:
  New

Bug description:
  If there are one or more UIDs referenced in a custom data entry form,
  those errors will be intercepted and displayed to the user when trying
  to open that form.

  The same errors caused a total crash when running Data Validation,
  though, yielding only the following non-helpful tomcat log thread
  below.

  The Data Validation process should either provide the user with an
  actionable error message as is done when opening the data entry form,
  or else it should at least continue Validation Processing.

  The bug has been verified in the DHIS2 Demo:
  1. Data Validation runs fine.
  2. Open the custom data entry form for e.g. the Child Health Data Set, switch 
to source code and change some of the Data Element UIDs (the changed UID 
obviously do not exist in the dataelement table).
  3. Data Validation no longer runs.

  TOMCAT LOG:
  * ERROR 2016-04-07 11:16:26,155 Unexpected error occurred in scheduled task. 
(TaskUtils.java [taskScheduler-1])
  java.lang.NullPointerException
  at 
org.hisp.dhis.dataintegrity.DefaultDataIntegrityService.getCategoryOptionCombosNotInDataElementCategoryCombo(DefaultDataIntegrityService.java:326)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  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.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:207)
  at 
com.sun.proxy.$Proxy105.getCategoryOptionCombosNotInDataElementCategoryCombo(Unknown
 Source)
  at 
org.hisp.dhis.dataintegrity.tasks.DataIntegrityTask.run(DataIntegrityTask.java:96)
  at 
org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
  at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
  at java.util.concurrent.FutureTask.run(Unknown Source)
  at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown
 Source)
  at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown
 Source)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  at java.lang.Thread.run(Unknown Source)

  After this the log hangs - there is no "caused by" etc that usually
  provides a better guide to the source of the problem.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1569817/+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


[Dhis2-devs] [Bug 1570607] Re: Org unit name wrongly quoted in Data Entry

2016-04-15 Thread Jim Grace
** Changed in: dhis2
   Status: New => Fix Committed

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1570607

Title:
  Org unit name wrongly quoted in Data Entry

Status in DHIS:
  Fix Committed

Bug description:
  If an organisation unit name contains an ampersand (&), or presumably
  another quotable HTML character, it is in appropriately quoted in the
  "Organisation Unit" field of the Data Entry form, for example as
  "".

  To reproduce, go to https://play.dhis2.org/dev and change the "Bo"
  district name to "Bo & others". Then bring up Data Entry and select
  this org unit. On the left it says "Bo & others" but in the Data Entry
  field for Organisation Unit it says "Bo  others". (See attached
  screen shot.)

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1570607/+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


[Dhis2-devs] [Bug 1570607] Re: Org unit name wrongly quoted in Data Entry

2016-04-15 Thread Lars Helge Øverland
** Changed in: dhis2
Milestone: None => 2.23

** Changed in: dhis2
   Importance: Undecided => Critical

** Changed in: dhis2
   Importance: Critical => Medium

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1570607

Title:
  Org unit name wrongly quoted in Data Entry

Status in DHIS:
  Fix Committed

Bug description:
  If an organisation unit name contains an ampersand (&), or presumably
  another quotable HTML character, it is in appropriately quoted in the
  "Organisation Unit" field of the Data Entry form, for example as
  "".

  To reproduce, go to https://play.dhis2.org/dev and change the "Bo"
  district name to "Bo & others". Then bring up Data Entry and select
  this org unit. On the left it says "Bo & others" but in the Data Entry
  field for Organisation Unit it says "Bo  others". (See attached
  screen shot.)

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1570607/+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


Re: [Dhis2-devs] [Bug 1567901] Re: Analytics Indexing Failure - long text

2016-04-15 Thread Lars Helge Øverland
Hi Calle,

in this case we have refactored much the analytics table generation code,
so back-porting means a completely new fix, so I think we will not this
right now. 2.23 will be out very shortly, hopefully you can upgrade to 2.23
to resolve this.

regards,

Lars


On Wed, Apr 13, 2016 at 11:25 AM, Calle Hedberg 
wrote:

> Lars,
>
> Thanks for fixing this - any chance of the fix being backported to 2.22
> and/or 2.21?
>
> Regards
> Calle
>
> On 12 April 2016 at 18:54, Lars Helge Øverland  wrote:
>
>> Impl a fix in trunk (2.23-SNAPSHOT) where data elements and attributes
>> with value type LONG_TEXT and without option sets are not indexed in the
>> event analytics tables.
>>
>> ** Changed in: dhis2
>>Status: New => Fix Committed
>>
>> --
>> You received this bug notification because you are a member of DHIS 2
>> developers, which is subscribed to DHIS.
>> https://bugs.launchpad.net/bugs/1567901
>>
>> Title:
>>   Analytics Indexing Failure - long text
>>
>> Status in DHIS:
>>   Fix Committed
>>
>> Bug description:
>>   DHIS 2.21 when performing an analytics update, analytics fails,
>> returning the error:
>>   ---
>>   * ERROR 2016-04-08 13:29:32,627 Unexpected error occurred in scheduled
>> task. (TaskUtils.java [taskScheduler-2])
>>   java.lang.RuntimeException: Exception during execution
>>   ...
>>   Caused by: java.util.concurrent.ExecutionException:
>> org.springframework.dao.DataAccessResourceFailureException:
>> StatementCallback; SQL [create index
>> "in_ciWR6s18VWH_ax_event_1980_dvqwq9jgpn8_M0WjJ" on
>> analytics_event_temp_1980_dvqwq9jgpn8 ("ciWR6s18VWH")]; ERROR: index row
>> size 3512 exceeds maximum 2712 for index
>> "in_ciWR6s18VWH_ax_event_1980_dvqwq9jgpn8_M0WjJ"
>> Hint: Values larger than 1/3 of a buffer page cannot be indexed.
>>   ---
>>
>>   Notes:
>>   This has not been checked on 2.22.
>>   This has been replicated on any browser version.  Server is Ubuntu
>> 14.04 LTS, Tomcat 8, Java 8.
>>   Recommend turning off indexing for long-text values, or using a
>> set-length of some part of the string for the purposes of indexing.
>>
>> To manage notifications about this bug go to:
>> https://bugs.launchpad.net/dhis2/+bug/1567901/+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
>>
>
>
>
> --
>
> ***
>
> 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
>
>


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


Re: [Dhis2-devs] Data Validation does not run - Tomcat log aborts

2016-04-15 Thread Lars Helge Øverland
Hi Calle,

I have replied in the bug report here:

https://bugs.launchpad.net/dhis2/+bug/1569817


regards,

Lars


On Wed, Apr 13, 2016 at 12:38 PM, Calle Hedberg 
wrote:

> Hi
>
> We managed to track down the root cause of this Data Validation crash: it
> was caused by an incorrect UID in one of the data capturing custom forms.
> When trying to open the custom data entry form, the incorrect UID is
> correctly intercepted and an actionable error message displayed to the
> user. But the same error is causing the data validation process to crash.
>
> I wil report this as a bug.
>
> Regards
> Calle
>
> On 7 April 2016 at 11:27, Calle Hedberg  wrote:
>
>> Hi
>>
>> I've a strange problem. Version 2.20, and the start was an instance where
>> data integrity was running normally.
>>
>> After importing some data and making various updates, data validation now
>> fails to run and the tomcat log only shows the following:
>>
>> * ERROR 2016-04-07 11:16:26,155 Unexpected error occurred in scheduled
>> task. (TaskUtils.java [taskScheduler-1])
>> java.lang.NullPointerException
>> at
>> org.hisp.dhis.dataintegrity.DefaultDataIntegrityService.getCategoryOptionCombosNotInDataElementCategoryCombo(DefaultDataIntegrityService.java:326)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>> at java.lang.reflect.Method.invoke(Unknown Source)
>> 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.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:207)
>> at
>> com.sun.proxy.$Proxy105.getCategoryOptionCombosNotInDataElementCategoryCombo(Unknown
>> Source)
>> at
>> org.hisp.dhis.dataintegrity.tasks.DataIntegrityTask.run(DataIntegrityTask.java:96)
>> at
>> org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
>> at java.util.concurrent.Executors$RunnableAdapter.call(Unknown
>> Source)
>> at java.util.concurrent.FutureTask.run(Unknown Source)
>> at
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown
>> Source)
>> at
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown
>> Source)
>> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
>> Source)
>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
>> Source)
>> at java.lang.Thread.run(Unknown Source)
>>
>> After this the log hangs - there is no "caused by" etc that usually
>> provides a better guide to the source of the problem.
>>
>> I can see that getCategoryOptionCombosNotInDataElementCategoryCombo fails
>> - but there is no table called DataElementCategoryCombo
>>
>> Regards
>> Calle
>>
>> ***
>>
>> Calle Hedberg
>>
>> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
>>
>> Tel/fax (home): +27-21-685-6472
>>
>> Cell: +27-82-853-5352
>>
>> Iridium SatPhone: +8816-315-19119
>>
>> Email: calle.hedb...@gmail.com
>>
>> Skype: calle_hedberg
>>
>> ***
>>
>>
>
>
> --
>
> ***
>
> Calle Hedberg
>
> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
>
> Tel/fax (home): +27-21-685-6472
>
> Cell: +27-82-853-5352
>
> Iridium SatPhone: +8816-315-19119
>
> Email: calle.hedb...@gmail.com
>
> Skype: calle_hedberg
>
> ***
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>


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

Re: [Dhis2-devs] Think found a Bug with replicate user under v2.22 / 2.23

2016-04-15 Thread Lars Helge Øverland
Hi Craig,

fixed in 2.22 and trunk now. New builds available in 20 min.

regards,

Lars


On Thu, Apr 14, 2016 at 3:09 AM, Jason Pickering <
jason.p.picker...@gmail.com> wrote:

> Hi Craig,
>
> Yes, its a bug, reported a few weeks ago.
>
> https://bugs.launchpad.net/dhis2/+bug/1557996
>
> Regards,
> Jason
>
>
> On Thu, Apr 14, 2016 at 1:34 AM, Craig Hollingsworth <
> craig.hollingswo...@nrc.no> wrote:
>
>> Hi
>>
>>
>>
>> I’m trying to replicate a user (on v2.22,  21976).  Also just recreated
>> on the Amazon snapshot (2.23,  22718).
>>
>>
>>
>> Select a user
>>
>> Select replicate
>>
>>
>>
>> Enter name/password for new user  (lionelmessi / Training123)
>>
>> click replicate
>>
>>
>>
>> Gives am Internal server error 500, unexpected token <
>>
>>
>>
>>
>>
>> Cheers
>>
>>
>>
>> Craig
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> ___
>> 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
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


Re: [Dhis2-devs] DELETING FACILITIES WITH DATA FROM THE DHIS

2016-04-15 Thread Lars Helge Øverland
Yes that function was introduced sort of under the radar. It works only for
aggregate part of the data model.

Will be extended to tracker model at some point.

regards,

Lars




On Thu, Apr 14, 2016 at 1:27 AM, Jason Pickering <
jason.p.picker...@gmail.com> wrote:

> Yes, i did indeed overlook the native DHIS2 function, which Lars
> mentioned. Its good its there and supported by the core code. It was not
> there when I needed this function though.
>
> It may be useful however to perform this operation via SQL in certain
> cases however. This function , and hopefully the one from the Java side,
> was developed specifically to be generic, only accepting a single
> paramater, the UID of the orgunit to delete. So, if you have other criteria
> (start date/end date, includeDescendants=true), you would need to feed both
> functions the UIDs of these sites in the proper manner. If there are
> children, the function will abort, as one could imagine a situation where
> you provide the function the UID of the root orgunit, and it would proceed
> to delete everything. So, its been made more with an atttempt to allow you
> to delete a site, but not entire branches at the same time, which could be
> easily achieved by simply calling the function multiple times in the
> correct order of sites to delete.
>
> The other reason for having it, is it is used by the "merge_orgunits.sql
> ",
> which will perform the operation of merging orgunits (which was removed
> from the core for the time bering). Once the data has been merged
> (according to some strategies like MIN, MAX, LATEST, etc)  the site to be
> removed will be deleted with this "delete_site_with_data.sql".
>
> Regards,
> Jason
>
>
> On Thu, Apr 14, 2016 at 2:09 AM, Calle Hedberg 
> wrote:
>
>> Lars,
>>
>> Bugger! - I had overlooked that (and maybe Jason too?). But just to
>> confirm - that dataPruning api call in reality works exactly like the pg
>> function shared by Jason?
>>
>> Otherwise - very nice to see that has been included. I've had some
>> sessions deleting duplicated OrgUnits that have been embedded all over the
>> place, and it can be a pain in the b... to track down all the bits and
>> pieces
>>
>> Regards
>> Calle
>>
>> On 13 April 2016 at 16:53, Lars Helge Øverland  wrote:
>>
>>> Hi Mohamed,
>>>
>>> in 2.22 we introduced a Web API feature for forcing delete of
>>> organisation units:
>>>
>>> http://dhis2.github.io/dhis2-docs/master/en/developer/html/ch01s38.html
>>>
>>> So if you are able to send a POST request to the following URL if will
>>> remove related data/completeness/approval records.
>>>
>>> regards,
>>>
>>> Lars
>>>
>>>
>>> Data pruning will remove complete data set registrations, data
>>> approvals, data value audits and data values, in this case for an
>>> organisation unit.
>>>
>>> /api/maintenance/dataPruning/organisationUnits/
>>>
>>>
>>>
>>>
>>> On Wed, Apr 13, 2016 at 1:24 PM, Mohamed Bangura 
>>> wrote:
>>>
 Hi all,

 We are currently trying to delete old facilities from our main server
 but nothing seems to be happening since these facilities already have
 data.Is there a way one can do this or disable the facilities as this
 is currently affecting the completeness of our data.

 I need your help please.

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



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

Re: [Dhis2-devs] "All" authority no longer granting access to programs?

2016-04-15 Thread Jim Grace
Looping Tim back in, who started this thread but seems to have been dropped
from it.

On Fri, Apr 15, 2016 at 9:38 AM, Bob Jolliffe  wrote:

> Its an interesting problem.  In general Role Based Access Control (RBAC)
> is known to be an insufficient security mechanism/framework for handling
> issues of patient confidentiality without some additional parameterization
> to model things like legitimate relationships, patient consent management
> etc.  In dhis2 we do in fact have just that sort of extension to RBAC by
> having affinity to orgunits and programs.
>
> The problem is that this gets broken by the idea of a super-user, so I
> understand where Abyot was going with this.   There is a reasonable
> difference between having ALL roles and having a legitimate relationship
> with all entities.  I don't think this is a question of inconsistency so
> much as a misunderstanding of the refinement to RBAC that we have
> implemented.
>
> Of course the problem with ALL is that, being god-like, it remains
> possible for the superuser to assign him/herself access anyway so there is
> possibly no point having an artificail barrier of "security theatre".
> Unless we ensure that adequate alarms are sounded when a superuser accesses
> individual records - messaging, WARNING logs etc.
>
>
> On 14 April 2016 at 09:52, Abyot Asalefew Gizaw  wrote:
>
>> Thank you all !
>>
>> Seems I should give up and put back "All" authority on programs.
>>
>> It would have been nice if we get the view of those working in "patient"
>> or clinical settings.
>>
>> One thing we need to keep in mind is the way we deal with programs is
>> totally different from that of data sets. There is a lot more workflow and
>> confidentially with programs, their attribute values and events.
>>
>> --
>> Abyot A. Gizaw.
>> Senior Engineer, DHIS2
>> University of Oslo
>> http://www.dhis2.org
>>
>> On Thu, Apr 14, 2016 at 12:55 AM, Rodolfo Melia 
>> wrote:
>>
>>> Hi - I learned to live with this odd situation since at least 2.20,
>>> which I have in multiple boxes. It doesn't make sense that you have access
>>> to all data sets, but not to the programs. I really would like to see the
>>> 'All' authority having access to all programs, for consistency sake.
>>>
>>> *R*
>>>
>>>
>>> On 13 April 2016 at 21:32, Jim Grace  wrote:
>>>
 Thank you all. I'm with Tim. I don't know if this is still up for
 reconsideration or reversal, but it seems to me a bad idea to ship with a
 "Superuser" role, and an "ALL" authority, neither of which gives access to
 all authorities.

 *For installations that do not use tracker for personal data that needs
 protection* (like DATIM, which uses tracker for site surveys), this is
 just confusing. User interface design is all about predictability, and
 words like "all" and "superuser" have unquestioned meanings in many of our
 heads. I know this wasted a bit of Tim's time, and it would have done the
 same for me. It would never occur to me that we would intentionally design
 software to use words like these and not have them mean the obvious things.
 For users who are just getting to know the product, either they don't know
 about these exceptions in which case they misunderstand the software and
 could be in for a surprise of unpredictable behavior, or they know about
 them in which case they will have the feeling that this is
 strangely-designed software that doesn't always live up to expectations.
 The more unpredictable or inconsistent our software is, the lower will be
 our users' opinion of it.

 *For installations that use tracker for personal data that needs
 protection*, they need to be serious about protecting the data.
 If they hand out too many superuser roles with the "ALL" authority, they
 will have a problem in any event, as Tim points out, since these users
 could assign themselves the tracker authority. A much better solution, and
 one we should recommend, is to not assign either the "ALL" authority or the
 tracker authorities except to users who really need them. It's better to
 have a well-planned security system than to have the illusion that they are
 protected when they are not really. This feature could actually reduce
 security by giving the illusion that it is there.

 In short, I think the benefits of having Superuser and ALL not include
 the tracker are at best questionable and at worst misleading into a false
 sense of security, while the costs are real and negative.

 My humble opinion.

 Cheers,
 Jim


 On Fri, Apr 8, 2016 at 11:44 AM, Timothy Harding <
 thard...@baosystems.com> wrote:

> Thanks Morten, Jim, Abyot,
>
> Abyot:
> Is the point of restricting a super user moot though since the super
> user has the *ability* to assign themselves 

Re: [Dhis2-devs] "All" authority no longer granting access to programs?

2016-04-15 Thread Bob Jolliffe
Its an interesting problem.  In general Role Based Access Control (RBAC) is
known to be an insufficient security mechanism/framework for handling
issues of patient confidentiality without some additional parameterization
to model things like legitimate relationships, patient consent management
etc.  In dhis2 we do in fact have just that sort of extension to RBAC by
having affinity to orgunits and programs.

The problem is that this gets broken by the idea of a super-user, so I
understand where Abyot was going with this.   There is a reasonable
difference between having ALL roles and having a legitimate relationship
with all entities.  I don't think this is a question of inconsistency so
much as a misunderstanding of the refinement to RBAC that we have
implemented.

Of course the problem with ALL is that, being god-like, it remains possible
for the superuser to assign him/herself access anyway so there is possibly
no point having an artificail barrier of "security theatre".  Unless we
ensure that adequate alarms are sounded when a superuser accesses
individual records - messaging, WARNING logs etc.


On 14 April 2016 at 09:52, Abyot Asalefew Gizaw  wrote:

> Thank you all !
>
> Seems I should give up and put back "All" authority on programs.
>
> It would have been nice if we get the view of those working in "patient"
> or clinical settings.
>
> One thing we need to keep in mind is the way we deal with programs is
> totally different from that of data sets. There is a lot more workflow and
> confidentially with programs, their attribute values and events.
>
> --
> Abyot A. Gizaw.
> Senior Engineer, DHIS2
> University of Oslo
> http://www.dhis2.org
>
> On Thu, Apr 14, 2016 at 12:55 AM, Rodolfo Melia 
> wrote:
>
>> Hi - I learned to live with this odd situation since at least 2.20, which
>> I have in multiple boxes. It doesn't make sense that you have access to all
>> data sets, but not to the programs. I really would like to see the 'All'
>> authority having access to all programs, for consistency sake.
>>
>> *R*
>>
>>
>> On 13 April 2016 at 21:32, Jim Grace  wrote:
>>
>>> Thank you all. I'm with Tim. I don't know if this is still up for
>>> reconsideration or reversal, but it seems to me a bad idea to ship with a
>>> "Superuser" role, and an "ALL" authority, neither of which gives access to
>>> all authorities.
>>>
>>> *For installations that do not use tracker for personal data that needs
>>> protection* (like DATIM, which uses tracker for site surveys), this is
>>> just confusing. User interface design is all about predictability, and
>>> words like "all" and "superuser" have unquestioned meanings in many of our
>>> heads. I know this wasted a bit of Tim's time, and it would have done the
>>> same for me. It would never occur to me that we would intentionally design
>>> software to use words like these and not have them mean the obvious things.
>>> For users who are just getting to know the product, either they don't know
>>> about these exceptions in which case they misunderstand the software and
>>> could be in for a surprise of unpredictable behavior, or they know about
>>> them in which case they will have the feeling that this is
>>> strangely-designed software that doesn't always live up to expectations.
>>> The more unpredictable or inconsistent our software is, the lower will be
>>> our users' opinion of it.
>>>
>>> *For installations that use tracker for personal data that needs
>>> protection*, they need to be serious about protecting the data. If they
>>> hand out too many superuser roles with the "ALL" authority, they will have
>>> a problem in any event, as Tim points out, since these users could assign
>>> themselves the tracker authority. A much better solution, and one we should
>>> recommend, is to not assign either the "ALL" authority or the tracker
>>> authorities except to users who really need them. It's better to have a
>>> well-planned security system than to have the illusion that they are
>>> protected when they are not really. This feature could actually reduce
>>> security by giving the illusion that it is there.
>>>
>>> In short, I think the benefits of having Superuser and ALL not include
>>> the tracker are at best questionable and at worst misleading into a false
>>> sense of security, while the costs are real and negative.
>>>
>>> My humble opinion.
>>>
>>> Cheers,
>>> Jim
>>>
>>>
>>> On Fri, Apr 8, 2016 at 11:44 AM, Timothy Harding <
>>> thard...@baosystems.com> wrote:
>>>
 Thanks Morten, Jim, Abyot,

 Abyot:
 Is the point of restricting a super user moot though since the super
 user has the *ability* to assign themselves to whatever they like? It
 feels like an extra step that shouldn't be needed for a superuser.

 But, if there is indeed a need for the functionality to be this way, my
 follow up questions are still out there: *Will datasets eventually act
 this way as well*? If 

[Dhis2-devs] [Bug 1570607] Re: Org unit name wrongly quoted in Data Entry

2016-04-15 Thread Jim Grace
** Changed in: dhis2
 Assignee: (unassigned) => Jim Grace (jimgrace)

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1570607

Title:
  Org unit name wrongly quoted in Data Entry

Status in DHIS:
  New

Bug description:
  If an organisation unit name contains an ampersand (&), or presumably
  another quotable HTML character, it is in appropriately quoted in the
  "Organisation Unit" field of the Data Entry form, for example as
  "".

  To reproduce, go to https://play.dhis2.org/dev and change the "Bo"
  district name to "Bo & others". Then bring up Data Entry and select
  this org unit. On the left it says "Bo & others" but in the Data Entry
  field for Organisation Unit it says "Bo  others". (See attached
  screen shot.)

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1570607/+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


Re: [Dhis2-devs] 2.22 Event Capture issues

2016-04-15 Thread Olav Poppe
Great, blueprint here: 
https://blueprints.launchpad.net/dhis2/+spec/ec-html-parameter

Olav

> Den 15. apr. 2016 kl. 14.57 skrev Abyot Asalefew Gizaw :
> 
> Hi Olav,
> 
> We can do that. Please feel free to create a blueprint.
> 
> --
> Abyot A. Gizaw.
> Senior Engineer, DHIS2
> University of Oslo
> http://www.dhis2.org
> 
>> On Fri, Apr 15, 2016 at 1:44 PM, Olav Poppe  wrote:
>> Thanks for the updates, Abyot. 
>> 
>> One additional thing related to the searching of the events: it would be 
>> nice if EC supported something similar to how TC lets you use html 
>> parameters to open a specific TEI dashboards: 
>> /index.html#/dashboard?tei=iJ1K45Fqy1Z=yIjemnzObAV 
>> 
>> Something along the lines of 
>> dhis-web-event-capture/index.html#/dataEntry?event=d1YK45Fqy1Z
>> 
>> I think this could be useful for several purposes, but one example we would 
>> like to use this for is to be able to provide a link to the data entry in EC 
>> from a HTML standard report. We’ve developed a standard report listing 
>> events with data that needs to be verified and/or changed, and it would be 
>> nice to have a link there directly to EC. Today we’re just showing the event 
>> ID, but it is pretty much impossible to actually find the event considering 
>> the way search works in EC today.
>> 
>> Regards
>> Olav
>> 
>> 
>> 
>> 
>>> 15. apr. 2016 kl. 12.46 skrev Abyot Asalefew Gizaw :
>>> 
>>> Hi Olav,
>>> 
>>> Thank you for the test and reporting.
>>> 
>>> --
>>> Abyot A. Gizaw.
>>> Senior Engineer, DHIS2
>>> University of Oslo
>>> http://www.dhis2.org
>>> 
 On Fri, Jan 22, 2016 at 1:54 PM, Olav Poppe  wrote:
 Hi devs, after working quite intensively with 2.22 EC the last few days, I 
 have gather a list of issues (bugs?) and suggestions:
 
 Loading of EC app
 We have program with a large optionset, and that seems to create problems 
 for the loading of event capture. I see the below error in the console, 
 the list of events fail to load, and dropdowns in the form are empty. One 
 theory is that it tries to initiate things before optionsets have been 
 downloaded. After refreshing/reloading the page a second time things are 
 okay until the cache is cleared again. I can give access to a server with 
 this program if someone wants to debug.
> TypeError: Cannot read property 'options' of undefined
> at Object.formatDataValue (dhis2.angular.services.js:293)
> at controllers.js:342
> at Object.r [as forEach] (angular.js:7)
> at controllers.js:335
> at Object.r [as forEach] (angular.js:7)
> at controllers.js:329
> at angular.js:112
> at n.$eval (angular.js:126)
> at n.$digest (angular.js:123)
> at n.$apply (angular.js:126)(anonymous function) @ 
> angular.js:102(anonymous function) @ angular.js:76(anonymous function) @ 
> angular.js:112n.$eval @ angular.js:126n.$digest @ angular.js:123n.$apply 
> @ angular.js:126l @ angular.js:81M @ angular.js:85F.onload @ angular.js:86
>>> 
>>> Yes this thing shows up sometimes, I am aware of it. We have a better 
>>> solution implemented in 2.23. I suggest for an upgrade.
>>> 
>>>  
 Paging and list of events. 
 - The "No of rows per page:" is always empty. Reproduced on /demo. 
>>> 
>>> This was fixed in rev 22684 (four days ago),
>>>  
 - If you select an orgunit without any programs, then one with programs, 
 the page size i 1 (i.e. 7 events = 7 pages of 1 event). Reproduced on 
 /demo.
 - Searching and sorting the list of events (using the looking-glass 
 symbol) only searches/sorts the current page, which I think is misleading 
 and more or less defeats the purpose of the search (more useful to search 
 for things that are NOT in the list than the ones that are displayed…). To 
 make it "work" as it is now, you first need to set page size > number of 
 events, which is not very practical. Reproduced on /demo.
>>> 
>>> This is in our blueprint and it keeps being pushed. We will prioritize it 
>>> for 2.24.
>>>  
 - In the list with "Show/hide columns", the option to show the UID of the 
 event is "Form id", which seems strange. Reproduced on /demo.
 
 Indicators. 
 - the "number of decimals" option is not respected in the indicator box in 
 EC. Reproduced on /demo. 
 - the indicator box takes up a lot of space (33% of the width?), which can 
 be a lot when you have a custom form. It also takes takes up spaces even 
 though it is empty, i.e. there are no indicators. The fact that it is "a 
 box in a box" also makes it perhaps wider than necessary.
 
 Program rules.
 - the pop-up when a value is cleared because of a program rule has some 
 issues (the text that appears). It uses "formName" without falling back to 
 name, so unless you use form name it will read "UndefinedWas 

Re: [Dhis2-devs] [Dhis2-users] HOW DO I DISAGGREGATE CLIENT BASED DATA-TRACKER

2016-04-15 Thread Lars Helge Øverland
Hi Stanley,

Nick is correct here. You can use the Filter of the program indicator to
match the records you want to include per program indicator.

regards,

Lars


On Thu, Apr 14, 2016 at 10:10 AM, Stanley Kalyati 
wrote:

> Thank you shurajit,
>
> That is exactly what i am looking for.
>
> Let me look at the links.
>
> Thank you
>
> SK
>
> On Thu, Apr 14, 2016 at 10:03 AM, Shurajit Dutta 
> wrote:
>
>> Hi Stanley
>>
>> Could you verify?
>>
>> You have a Tracker program that is collecting age as an attribute and you
>> want to separate this according to the groupings you have described?
>>
>> If so, you will have to create program indicators filtering out the data.
>> You can find more info here
>>
>> Docs
>> http://dhis2.github.io/dhis2-docs/master/en/user/html/ch30.html
>>
>> And here (tutorial)
>>
>> https://www.dhis2.org/working-with-program-indicator-filters
>>
>> Nick
>> On Apr 14, 2016 5:05 PM, "Stanley Kalyati"  wrote:
>>
>>> Thank you Prosper for the insight.But how do I ensure that the system
>>> picks those under 5 or above 5 since we are entering individual records
>>> with different ages.
>>>
>>> Do I create category options for each data element? I.e Gender and Age
>>> Group?
>>>
>>> Thanks again
>>> --
>>> From: Prosper BT 
>>> Sent: ‎14/‎04/‎2016 07:10
>>> To: Laura E. Lincks 
>>> Cc: Stanley Kalyati ; DHIS Users
>>> ; DHIS 2 Developers list
>>> 
>>> Subject: Re: [Dhis2-users] HOW DO I DISAGGREGATE CLIENT BASED
>>> DATA-TRACKER
>>>
>>> Dear Stanley
>>>
>>> You will need to create each individual category indicator separately,
>>> say this was disaggregated by gender and age the same will have to be
>>> done.
>>>
>>> Examples Malaria disaggregated by Male/Female and Under5 or Over 5 the
>>> indicators would be
>>>
>>> 1. Malaria Male under 5
>>> 2. Malaria Female under 5
>>> 3. Malaria Male over 5
>>> 4. Malaria Female over 5
>>>
>>> So 4 indicators will have to be constructed for the above report
>>>
>>> Regards
>>>
>>> On Thu, Apr 14, 2016 at 7:50 AM, Laura E. Lincks <
>>> laura.lin...@icap.columbia.edu> wrote:
>>>
 Stanley, I believe that disaggregations (categories) cannot be used in
 Tracker. You must create each individual data element. There is an email
 from Lars regarding this and was related to a slightly older version of
 DHIS (and I cannot find that email at the moment but it's here somewhere).
 In working with Tracker in 2.22 recently, I found that categories I
 assigned to tracker data elements did not flow through to my final program
 stage form. I had to create each data element's disaggregation.
 On Apr 13, 2016 11:19 AM, "Stanley Kalyati"  wrote:

> Dear Ladies and Gentlmen
>
> How do i disaggregate ages captured in tracker? I have an indicator
> that looks at number of clients tested for HIV.I want to be able to know
> their age group i.e <20,20-24,25-49 and 50+
>
> Kindly assist,am using DHIS2 2.22 Built 21763
>
> Thank you
>
> Stanley Kalyati
> MW
>
> ___
> 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


>>>
>>>
>>> --
>>> Prosper Behumbiize, MPH
>>> Global HISP| University Of Oslo/HISP Uganda
>>> +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
>
>


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


Re: [Dhis2-devs] "All" authority no longer granting access to programs?

2016-04-15 Thread Lars Helge Øverland
I support making ALL provide full rights. We need to highlight this in the
docs.

Lars


On Thu, Apr 14, 2016 at 10:52 AM, Abyot Asalefew Gizaw 
wrote:

> Thank you all !
>
> Seems I should give up and put back "All" authority on programs.
>
> It would have been nice if we get the view of those working in "patient"
> or clinical settings.
>
> One thing we need to keep in mind is the way we deal with programs is
> totally different from that of data sets. There is a lot more workflow and
> confidentially with programs, their attribute values and events.
>
> --
> Abyot A. Gizaw.
> Senior Engineer, DHIS2
> University of Oslo
> http://www.dhis2.org
>
> On Thu, Apr 14, 2016 at 12:55 AM, Rodolfo Melia 
> wrote:
>
>> Hi - I learned to live with this odd situation since at least 2.20, which
>> I have in multiple boxes. It doesn't make sense that you have access to all
>> data sets, but not to the programs. I really would like to see the 'All'
>> authority having access to all programs, for consistency sake.
>>
>> *R*
>>
>>
>> On 13 April 2016 at 21:32, Jim Grace  wrote:
>>
>>> Thank you all. I'm with Tim. I don't know if this is still up for
>>> reconsideration or reversal, but it seems to me a bad idea to ship with a
>>> "Superuser" role, and an "ALL" authority, neither of which gives access to
>>> all authorities.
>>>
>>> *For installations that do not use tracker for personal data that needs
>>> protection* (like DATIM, which uses tracker for site surveys), this is
>>> just confusing. User interface design is all about predictability, and
>>> words like "all" and "superuser" have unquestioned meanings in many of our
>>> heads. I know this wasted a bit of Tim's time, and it would have done the
>>> same for me. It would never occur to me that we would intentionally design
>>> software to use words like these and not have them mean the obvious things.
>>> For users who are just getting to know the product, either they don't know
>>> about these exceptions in which case they misunderstand the software and
>>> could be in for a surprise of unpredictable behavior, or they know about
>>> them in which case they will have the feeling that this is
>>> strangely-designed software that doesn't always live up to expectations.
>>> The more unpredictable or inconsistent our software is, the lower will be
>>> our users' opinion of it.
>>>
>>> *For installations that use tracker for personal data that needs
>>> protection*, they need to be serious about protecting the data. If they
>>> hand out too many superuser roles with the "ALL" authority, they will have
>>> a problem in any event, as Tim points out, since these users could assign
>>> themselves the tracker authority. A much better solution, and one we should
>>> recommend, is to not assign either the "ALL" authority or the tracker
>>> authorities except to users who really need them. It's better to have a
>>> well-planned security system than to have the illusion that they are
>>> protected when they are not really. This feature could actually reduce
>>> security by giving the illusion that it is there.
>>>
>>> In short, I think the benefits of having Superuser and ALL not include
>>> the tracker are at best questionable and at worst misleading into a false
>>> sense of security, while the costs are real and negative.
>>>
>>> My humble opinion.
>>>
>>> Cheers,
>>> Jim
>>>
>>>
>>> On Fri, Apr 8, 2016 at 11:44 AM, Timothy Harding <
>>> thard...@baosystems.com> wrote:
>>>
 Thanks Morten, Jim, Abyot,

 Abyot:
 Is the point of restricting a super user moot though since the super
 user has the *ability* to assign themselves to whatever they like? It
 feels like an extra step that shouldn't be needed for a superuser.

 But, if there is indeed a need for the functionality to be this way, my
 follow up questions are still out there: *Will datasets eventually act
 this way as well*? If not, why the discrepancy?



 *I admit though I am a bit bias having spent more time that I care to
 admit to yesterday trying to figure out why my program would not appear in
 a vanilla instance.*




 *Timothy Harding*
 Sr. Systems Analyst, BAO Systems
 +1 202-536-1541 | thard...@baosystems.com | http://www.baosystems.com |
  Skype: hardi...@gmail.com | 2900 K Street, Suite 404, Washington D.C.
 20007

 On Fri, Apr 8, 2016 at 7:53 AM, Abyot Asalefew Gizaw 
 wrote:

> Hi,
>
> It was like that before  I think I changed it because at some
> point there was a discussion saying we have to be careful on granting
> blanket access in tracker.
>
> One could be a superuser, but does this really mean this user will
> have access to clinical data, names and everything implicitly?
>
> By forcing users to explicitly go and assign a program, they know the
> consequence of doing 

Re: [Dhis2-devs] Disable application level caching

2016-04-15 Thread Lars Helge Øverland
Hi Sultan,

you can disable second level hibernate caching in the system only by
modifying the source code. However that is not recommendable as it will act
differently in production.

Can you try to reproduce when things are not being updated and tell us the
exact steps? We will try to fix. It is not supposed to be that way since
Hibernate should invalidate its caches when stale.

regards,

Lars




On Thu, Apr 14, 2016 at 2:33 PM, Sultanahamar Mohammad <
sult...@thoughtworks.com> wrote:

> Hi Team,
>
> We are assuming that there is some application level caching happening.
> Users permissions, upon change does not reflect right away in the app. It
> takes some time to reflect. Some other api calls also take time to reflect.
>
> Is our assumption correct on application level caching. If it is then how
> do we disable it if we want to. Please let us know.
>
> Thanks and Regards,
> Sultan Ahamar.
>



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


Re: [Dhis2-devs] 2.22 Event Capture issues

2016-04-15 Thread Abyot Asalefew Gizaw
Hi Olav,

We can do that. Please feel free to create a blueprint.

--
Abyot A. Gizaw.
Senior Engineer, DHIS2
University of Oslo
http://www.dhis2.org

On Fri, Apr 15, 2016 at 1:44 PM, Olav Poppe  wrote:

> Thanks for the updates, Abyot.
>
> One additional thing related to the searching of the events: it would be
> nice if EC supported something similar to how TC lets you use html
> parameters to open a specific TEI dashboards:
> /index.html#/dashboard?tei=iJ1K45Fqy1Z=yIjemnzObAV
>
> Something along the lines of
> dhis-web-event-capture/index.html#/dataEntry?event=d1YK45Fqy1Z
>
> I think this could be useful for several purposes, but one example we
> would like to use this for is to be able to provide a link to the data
> entry in EC from a HTML standard report. We’ve developed a standard report
> listing events with data that needs to be verified and/or changed, and it
> would be nice to have a link there directly to EC. Today we’re just showing
> the event ID, but it is pretty much impossible to actually find the event
> considering the way search works in EC today.
>
> Regards
> Olav
>
>
>
>
> 15. apr. 2016 kl. 12.46 skrev Abyot Asalefew Gizaw :
>
> Hi Olav,
>
> Thank you for the test and reporting.
>
> --
> Abyot A. Gizaw.
> Senior Engineer, DHIS2
> University of Oslo
> http://www.dhis2.org
>
> On Fri, Jan 22, 2016 at 1:54 PM, Olav Poppe  wrote:
>
>> Hi devs, after working quite intensively with 2.22 EC the last few days,
>> I have gather a list of issues (bugs?) and suggestions:
>>
>> *Loading of EC app*
>> We have program with a large optionset, and that seems to create problems
>> for the loading of event capture. I see the below error in the console, the
>> list of events fail to load, and dropdowns in the form are empty. One
>> theory is that it tries to initiate things before optionsets have been
>> downloaded. After refreshing/reloading the page a second time things are
>> okay until the cache is cleared again. I can give access to a server with
>> this program if someone wants to debug.
>>
>> TypeError: Cannot read property 'options' of undefined
>> at Object.formatDataValue (dhis2.angular.services.js:293)
>> at controllers.js:342
>> at Object.r [as forEach] (angular.js:7)
>> at controllers.js:335
>> at Object.r [as forEach] (angular.js:7)
>> at controllers.js:329
>> at angular.js:112
>> at n.$eval (angular.js:126)
>> at n.$digest (angular.js:123)
>> at n.$apply (angular.js:126)(anonymous function) @
>> angular.js:102(anonymous function) @ angular.js:76(anonymous function)
>> @ angular.js:112n.$eval @ angular.js:126n.$digest @ angular.js:123n.$apply
>> @ angular.js:126l @ angular.js:81M @ angular.js:85F.onload @ angular.js:86
>>
>>
> Yes this thing shows up sometimes, I am aware of it. We have a better
> solution implemented in 2.23. I suggest for an upgrade.
>
>
>
>> *Paging and list of events*.
>> - The "No of rows per page:" is always empty. Reproduced on /demo.
>>
>
> This was fixed in rev 22684 (four days ago),
>
>
>> - If you select an orgunit without any programs, then one with programs,
>> the page size i 1 (i.e. 7 events = 7 pages of 1 event). Reproduced on /demo.
>> - Searching and sorting the list of events (using the looking-glass
>> symbol) only searches/sorts the current page, which I think is misleading
>> and more or less defeats the purpose of the search (more useful to search
>> for things that are NOT in the list than the ones that are displayed…). To
>> make it "work" as it is now, you first need to set page size > number of
>> events, which is not very practical. Reproduced on /demo.
>>
>
> This is in our blueprint and it keeps being pushed. We will prioritize it
> for 2.24.
>
>
>> - In the list with "Show/hide columns", the option to show the UID of the
>> event is "Form id", which seems strange. Reproduced on /demo.
>>
>> *Indicators.*
>> - the "number of decimals" option is not respected in the indicator box
>> in EC. Reproduced on /demo.
>> - the indicator box takes up a lot of space (33% of the width?), which
>> can be a lot when you have a custom form. It also takes takes up spaces
>> even though it is empty, i.e. there are no indicators. The fact that it is
>> "a box in a box" also makes it perhaps wider than necessary.
>>
>> *Program rules.*
>> - the pop-up when a value is cleared because of a program rule has some
>> issues (the text that appears). It uses "formName" without falling back to
>> name, so unless you use form name it will read "UndefinedWas cleared…"
>> (notice also missing space and capital W). Found in 
>> EC/scripts/controllers.js,
>> with a "TODO" comment…
>>
>> *Data entry form.*
>> - dropdowns seems to now be "hardcoded" to 80% or 85% width, which might
>> be good for the default forms, but complicates things with custom forms.
>> What would be nice is if we could 1) set the width of the  of custom
>> forms easily if the default is not appropriate, and 

Re: [Dhis2-devs] 2.22 Event Capture issues

2016-04-15 Thread Olav Poppe
Thanks for the updates, Abyot. 

One additional thing related to the searching of the events: it would be nice 
if EC supported something similar to how TC lets you use html parameters to 
open a specific TEI dashboards: 
/index.html#/dashboard?tei=iJ1K45Fqy1Z=yIjemnzObAV 

Something along the lines of 
dhis-web-event-capture/index.html#/dataEntry?event=d1YK45Fqy1Z

I think this could be useful for several purposes, but one example we would 
like to use this for is to be able to provide a link to the data entry in EC 
from a HTML standard report. We’ve developed a standard report listing events 
with data that needs to be verified and/or changed, and it would be nice to 
have a link there directly to EC. Today we’re just showing the event ID, but it 
is pretty much impossible to actually find the event considering the way search 
works in EC today.

Regards
Olav




> 15. apr. 2016 kl. 12.46 skrev Abyot Asalefew Gizaw :
> 
> Hi Olav,
> 
> Thank you for the test and reporting.
> 
> --
> Abyot A. Gizaw.
> Senior Engineer, DHIS2
> University of Oslo
> http://www.dhis2.org
> 
>> On Fri, Jan 22, 2016 at 1:54 PM, Olav Poppe  wrote:
>> Hi devs, after working quite intensively with 2.22 EC the last few days, I 
>> have gather a list of issues (bugs?) and suggestions:
>> 
>> Loading of EC app
>> We have program with a large optionset, and that seems to create problems 
>> for the loading of event capture. I see the below error in the console, the 
>> list of events fail to load, and dropdowns in the form are empty. One theory 
>> is that it tries to initiate things before optionsets have been downloaded. 
>> After refreshing/reloading the page a second time things are okay until the 
>> cache is cleared again. I can give access to a server with this program if 
>> someone wants to debug.
>>> TypeError: Cannot read property 'options' of undefined
>>> at Object.formatDataValue (dhis2.angular.services.js:293)
>>> at controllers.js:342
>>> at Object.r [as forEach] (angular.js:7)
>>> at controllers.js:335
>>> at Object.r [as forEach] (angular.js:7)
>>> at controllers.js:329
>>> at angular.js:112
>>> at n.$eval (angular.js:126)
>>> at n.$digest (angular.js:123)
>>> at n.$apply (angular.js:126)(anonymous function) @ 
>>> angular.js:102(anonymous function) @ angular.js:76(anonymous function) @ 
>>> angular.js:112n.$eval @ angular.js:126n.$digest @ angular.js:123n.$apply @ 
>>> angular.js:126l @ angular.js:81M @ angular.js:85F.onload @ angular.js:86
> 
> Yes this thing shows up sometimes, I am aware of it. We have a better 
> solution implemented in 2.23. I suggest for an upgrade.
> 
>  
>> Paging and list of events. 
>> - The "No of rows per page:" is always empty. Reproduced on /demo. 
> 
> This was fixed in rev 22684 (four days ago),
>  
>> - If you select an orgunit without any programs, then one with programs, the 
>> page size i 1 (i.e. 7 events = 7 pages of 1 event). Reproduced on /demo.
>> - Searching and sorting the list of events (using the looking-glass symbol) 
>> only searches/sorts the current page, which I think is misleading and more 
>> or less defeats the purpose of the search (more useful to search for things 
>> that are NOT in the list than the ones that are displayed…). To make it 
>> "work" as it is now, you first need to set page size > number of events, 
>> which is not very practical. Reproduced on /demo.
> 
> This is in our blueprint and it keeps being pushed. We will prioritize it for 
> 2.24.
>  
>> - In the list with "Show/hide columns", the option to show the UID of the 
>> event is "Form id", which seems strange. Reproduced on /demo.
>> 
>> Indicators. 
>> - the "number of decimals" option is not respected in the indicator box in 
>> EC. Reproduced on /demo. 
>> - the indicator box takes up a lot of space (33% of the width?), which can 
>> be a lot when you have a custom form. It also takes takes up spaces even 
>> though it is empty, i.e. there are no indicators. The fact that it is "a box 
>> in a box" also makes it perhaps wider than necessary.
>> 
>> Program rules.
>> - the pop-up when a value is cleared because of a program rule has some 
>> issues (the text that appears). It uses "formName" without falling back to 
>> name, so unless you use form name it will read "UndefinedWas cleared…" 
>> (notice also missing space and capital W). Found in 
>> EC/scripts/controllers.js, with a "TODO" comment…
>> 
>> Data entry form.
>> - dropdowns seems to now be "hardcoded" to 80% or 85% width, which might be 
>> good for the default forms, but complicates things with custom forms. What 
>> would be nice is if we could 1) set the width of the  of custom forms 
>> easily if the default is not appropriate, and 2) that the audit icon was 
>> then "integrated" into that width. If I make the dropdown 100% as it is now, 
>> the audit symbol will end up on a new line.
> 
> Yes, this happened because of the audit icons. In 2.23 we 

Re: [Dhis2-devs] 2.22 Event Capture issues

2016-04-15 Thread Abyot Asalefew Gizaw
Hi Olav,

Thank you for the test and reporting.

--
Abyot A. Gizaw.
Senior Engineer, DHIS2
University of Oslo
http://www.dhis2.org

On Fri, Jan 22, 2016 at 1:54 PM, Olav Poppe  wrote:

> Hi devs, after working quite intensively with 2.22 EC the last few days, I
> have gather a list of issues (bugs?) and suggestions:
>
> *Loading of EC app*
> We have program with a large optionset, and that seems to create problems
> for the loading of event capture. I see the below error in the console, the
> list of events fail to load, and dropdowns in the form are empty. One
> theory is that it tries to initiate things before optionsets have been
> downloaded. After refreshing/reloading the page a second time things are
> okay until the cache is cleared again. I can give access to a server with
> this program if someone wants to debug.
>
> TypeError: Cannot read property 'options' of undefined
> at Object.formatDataValue (dhis2.angular.services.js:293)
> at controllers.js:342
> at Object.r [as forEach] (angular.js:7)
> at controllers.js:335
> at Object.r [as forEach] (angular.js:7)
> at controllers.js:329
> at angular.js:112
> at n.$eval (angular.js:126)
> at n.$digest (angular.js:123)
> at n.$apply (angular.js:126)(anonymous function) @
> angular.js:102(anonymous function) @ angular.js:76(anonymous function)
> @ angular.js:112n.$eval @ angular.js:126n.$digest @ angular.js:123n.$apply
> @ angular.js:126l @ angular.js:81M @ angular.js:85F.onload @ angular.js:86
>
>
Yes this thing shows up sometimes, I am aware of it. We have a better
solution implemented in 2.23. I suggest for an upgrade.



> *Paging and list of events*.
> - The "No of rows per page:" is always empty. Reproduced on /demo.
>

This was fixed in rev 22684 (four days ago),


> - If you select an orgunit without any programs, then one with programs,
> the page size i 1 (i.e. 7 events = 7 pages of 1 event). Reproduced on /demo.
> - Searching and sorting the list of events (using the looking-glass
> symbol) only searches/sorts the current page, which I think is misleading
> and more or less defeats the purpose of the search (more useful to search
> for things that are NOT in the list than the ones that are displayed…). To
> make it "work" as it is now, you first need to set page size > number of
> events, which is not very practical. Reproduced on /demo.
>

This is in our blueprint and it keeps being pushed. We will prioritize it
for 2.24.


> - In the list with "Show/hide columns", the option to show the UID of the
> event is "Form id", which seems strange. Reproduced on /demo.
>
> *Indicators.*
> - the "number of decimals" option is not respected in the indicator box in
> EC. Reproduced on /demo.
> - the indicator box takes up a lot of space (33% of the width?), which can
> be a lot when you have a custom form. It also takes takes up spaces even
> though it is empty, i.e. there are no indicators. The fact that it is "a
> box in a box" also makes it perhaps wider than necessary.
>
> *Program rules.*
> - the pop-up when a value is cleared because of a program rule has some
> issues (the text that appears). It uses "formName" without falling back to
> name, so unless you use form name it will read "UndefinedWas cleared…"
> (notice also missing space and capital W). Found in EC/scripts/controllers.js,
> with a "TODO" comment…
>
> *Data entry form.*
> - dropdowns seems to now be "hardcoded" to 80% or 85% width, which might
> be good for the default forms, but complicates things with custom forms.
> What would be nice is if we could 1) set the width of the  of custom
> forms easily if the default is not appropriate, and 2) that the audit icon
> was then "integrated" into that width. If I make the dropdown 100% as it is
> now, the audit symbol will end up on a new line.
>

Yes, this happened because of the audit icons. In 2.23 we have removed the
audit icons and put back width to 100%.


>
>
> I’ve also had some issues where I’m told I have data offline even though
> I’m pretty sure I’ve not been offline, and if I try to upload it just hangs
> while displaying the "your data is being uploaded" message, but I need to
> investigate that a bit more before I can confirm that it’s a bug.
>
> Thanks
> Olav
>
>
>
>
> ___
> 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] [Bug 1570263] Re: Event capture android app not displaying any data in registered events grid

2016-04-15 Thread Dave Palmer (MSI)
Thanks Erling, you were absolutely correct! Was a configuration issue.

** Changed in: dhis2
   Status: New => Invalid

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1570263

Title:
  Event capture android app not displaying any data in registered events
  grid

Status in DHIS:
  Invalid

Bug description:
  Discovered in 0.3.3-2.22, this seemed to be working in prior versions
  (we last tested & was working in v0.3.1)

  On the initial screen is a summary grid of registered events. This
  grid is now blank except for the status column which displays whether
  the event has been synced to the server.

  Screenshot of nerfed grid attached.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1570263/+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


Re: [Dhis2-devs] 2.22 tracker capture show error/warning not working?

2016-04-15 Thread Markus Bekken
Thanks Olav - You're absolutely right. Tested now, and we have the same bug in 
older versions. 

A workaround is adding a dummy program indicator that is set to "Display in 
form", but new builds are triggering for 2.22 and 2.21 now!

Markus

> 15. apr. 2016 kl. 10.33 skrev Olav Poppe :
> 
> Hi, 
> was the commit I just saw a fix to related to this? If yes, is it possible to 
> get it in 2.22 as well?
> 
> To summarise, I get "show error" to work in EC but not "show warning", and 
> neither works in TC. And (as I saw in the commit), neither program has any 
> indicators displayed in data entry.
> 
> Olav
> 
> 
>> 14. apr. 2016 kl. 22.56 skrev Markus Bekken :
>> 
>> Hi there Olav,
>> if you look at the actions in the rule, which field is the warning connected 
>> to? If the warning is connected to a field that is not part of the program 
>> stage you are in, you will currently not see the error.
>> 
>> Markus
>> 
>>> 14. apr. 2016 kl. 14.14 skrev Olav Poppe :
>>> 
>>> Hi, I'm trying to set up a program rule to an show error message in tracker 
>>> capture. The rule evaluation seems to work (I see the rule in the web 
>>> console with ”evaluated as true”), but there is not message/warning.
>>> 
>>> I also have the exact same rule in an anonymous program, and in event 
>>> capture it works.
>>> 
>>> Any advise?
>>> 
>>> Olav
>>> ___
>>> 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] 2.22 tracker capture show error/warning not working?

2016-04-15 Thread Olav Poppe
Hi, 
was the commit I just saw a fix to related to this? If yes, is it possible to 
get it in 2.22 as well?

To summarise, I get "show error" to work in EC but not "show warning", and 
neither works in TC. And (as I saw in the commit), neither program has any 
indicators displayed in data entry.

Olav


> 14. apr. 2016 kl. 22.56 skrev Markus Bekken :
> 
> Hi there Olav,
> if you look at the actions in the rule, which field is the warning connected 
> to? If the warning is connected to a field that is not part of the program 
> stage you are in, you will currently not see the error.
> 
> Markus
> 
>> 14. apr. 2016 kl. 14.14 skrev Olav Poppe :
>> 
>> Hi, I'm trying to set up a program rule to an show error message in tracker 
>> capture. The rule evaluation seems to work (I see the rule in the web 
>> console with ”evaluated as true”), but there is not message/warning.
>> 
>> I also have the exact same rule in an anonymous program, and in event 
>> capture it works.
>> 
>> Any advise?
>> 
>> Olav
>> ___
>> 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] 2.22 Event Capture issues

2016-04-15 Thread Olav Poppe
Hi, wanted to "bump" this message from a couple of months back, as I think most 
of these things are still applicable.

One is a very obvious bug:
> - the pop-up when a value is cleared because of a program rule has some 
> issues (the text that appears). It uses "formName" without falling back to 
> name, so unless you use form name it will read "UndefinedWas cleared…" 
> (notice also missing space and capital W). Found in 
> EC/scripts/controllers.js, with a "TODO" comment…

Regards
Olav




> 22. jan. 2016 kl. 13.54 skrev Olav Poppe :
> 
> Hi devs, after working quite intensively with 2.22 EC the last few days, I 
> have gather a list of issues (bugs?) and suggestions:
> 
> Loading of EC app
> We have program with a large optionset, and that seems to create problems for 
> the loading of event capture. I see the below error in the console, the list 
> of events fail to load, and dropdowns in the form are empty. One theory is 
> that it tries to initiate things before optionsets have been downloaded. 
> After refreshing/reloading the page a second time things are okay until the 
> cache is cleared again. I can give access to a server with this program if 
> someone wants to debug.
>> TypeError: Cannot read property 'options' of undefined
>> at Object.formatDataValue (dhis2.angular.services.js:293)
>> at controllers.js:342
>> at Object.r [as forEach] (angular.js:7)
>> at controllers.js:335
>> at Object.r [as forEach] (angular.js:7)
>> at controllers.js:329
>> at angular.js:112
>> at n.$eval (angular.js:126)
>> at n.$digest (angular.js:123)
>> at n.$apply (angular.js:126)(anonymous function) @ 
>> angular.js:102(anonymous function) @ angular.js:76(anonymous function) @ 
>> angular.js:112n.$eval @ angular.js:126n.$digest @ angular.js:123n.$apply @ 
>> angular.js:126l @ angular.js:81M @ angular.js:85F.onload @ angular.js:86
> 
> Paging and list of events. 
> - The "No of rows per page:" is always empty. Reproduced on /demo. 
> - If you select an orgunit without any programs, then one with programs, the 
> page size i 1 (i.e. 7 events = 7 pages of 1 event). Reproduced on /demo.
> - Searching and sorting the list of events (using the looking-glass symbol) 
> only searches/sorts the current page, which I think is misleading and more or 
> less defeats the purpose of the search (more useful to search for things that 
> are NOT in the list than the ones that are displayed…). To make it "work" as 
> it is now, you first need to set page size > number of events, which is not 
> very practical. Reproduced on /demo.
> - In the list with "Show/hide columns", the option to show the UID of the 
> event is "Form id", which seems strange. Reproduced on /demo.
> 
> Indicators. 
> - the "number of decimals" option is not respected in the indicator box in 
> EC. Reproduced on /demo. 
> - the indicator box takes up a lot of space (33% of the width?), which can be 
> a lot when you have a custom form. It also takes takes up spaces even though 
> it is empty, i.e. there are no indicators. The fact that it is "a box in a 
> box" also makes it perhaps wider than necessary.
> 
> Program rules.
> - the pop-up when a value is cleared because of a program rule has some 
> issues (the text that appears). It uses "formName" without falling back to 
> name, so unless you use form name it will read "UndefinedWas cleared…" 
> (notice also missing space and capital W). Found in 
> EC/scripts/controllers.js, with a "TODO" comment…
> 
> Data entry form.
> - dropdowns seems to now be "hardcoded" to 80% or 85% width, which might be 
> good for the default forms, but complicates things with custom forms. What 
> would be nice is if we could 1) set the width of the  of custom forms 
> easily if the default is not appropriate, and 2) that the audit icon was then 
> "integrated" into that width. If I make the dropdown 100% as it is now, the 
> audit symbol will end up on a new line.
> 
> 
> I’ve also had some issues where I’m told I have data offline even though I’m 
> pretty sure I’ve not been offline, and if I try to upload it just hangs while 
> displaying the "your data is being uploaded" message, but I need to 
> investigate that a bit more before I can confirm that it’s a bug.
> 
> Thanks
> Olav
> 
> 
> 
> ___
> 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