[Dhis2-devs] Auto-generated events not appearing for non-admin in TC in latest 2.29

2018-06-11 Thread Olav Poppe
Hi devs, seeing some strange behaviour in the recent 2.29 builds, including:
fb88d26  from 2018-06-10 06:45
53a6293 from 2018-06-11 09:07

The issue is that for a non-superuser, existing and auto-generated events for 
tracker programmes simply don’t appear in data entry. Enrolling works fine, but 
in TC data entry the auto-generated stages are simply not there in data entry, 
even though the are actually created and stored in the database. Similarly, 
opening an existing enrolment will not show the existing events. Trying to add 
new events manually works except if they are non-repeateable and an event 
already exists.

Investigating, I found that this query (done by TC when it loads an enrolment) 
returns no events for a non-superuser, which seems to be the problem:
/api/events.json?ouMode=ACCESSIBLE&trackedEntityInstance=nMAv87EUfTT

However, this query for the event linked to the above TEI does return the 
event..:
/api/events/Xz1YweK2pYM.json

The fact that the non-superuser can add events, edit data, access the 
"invisible" events via the API etc lead me to be leave it’s not a 
sharing/permission issue OR a permission issue. In fact, it seems to only be 
this specific query that creates problems:
/api/events.json?ouMode=ACCESSIBLE&trackedEntityInstance=nMAv87EUfTT

On the other hand I’m not able to reproduce on 2.29 as far as I can see (which 
is running the fb88d26 build). Ideas?

Regards
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


Re: [Dhis2-devs] Customising timely submissions to a specific time

2018-06-11 Thread Jasper Timm
Thanks Calle.

Issue created: https://jira.dhis2.org/browse/DHIS2-3992

On Sat, Jun 9, 2018 at 12:28 PM Calle Hedberg  wrote:

> Jasper,
>
> I did make a note about it - will try to follow it up when in Oslo during
> the next two weeks (this weeks I'm on leave with my family in Norway)
>
> And yes, please add an improvement JIRA issue for it.
>
> Regards
> Calle
>
> *Carl-Anders (Calle) Hedberg*
> HISP
>
> Strategic Advisor & Technical Specialist
>
> Health Information Systems Programme – South Africa
>
> Tel/fax:  +27 (0)21 685 6472 <+27%2021%20685%206472>
>
> Cell:+27 (0)82 853 5352
>
> Iridium SatPhone: +8816-315-19119 <+881%206%20315%2019119> (usually OFF)
>
> E-mail1: ca...@hisp.org
>
> E-mail2: calle.hedb...@gmail.com
>
> E-mail3: chedb...@telkomsa.net
>
> Skype:  calle_hedberg
>
> On 7 June 2018 at 19:31, Jasper Timm 
> wrote:
>
>> Surprised there wasn't any discussion on this.
>>
>> Calle, I know you spoke about it with Les recently. This seems like a
>> sensible feature to add don't you agree?
>>
>> There's certainly a need for it in Sierra Leone and the MoH in Liberia
>> asked for the same thing as well.
>>
>> Maybe I should just put a JIRA feature request for it in?
>>
>> On Fri, Jun 1, 2018 at 4:11 PM Jasper Timm 
>> wrote:
>>
>>> Hi there DHIS2 folks,
>>>
>>> At the moment there is a field within aggregate dataSets for "days after
>>> period to qualify for timely submissions".
>>>
>>> Is there any plan to make this a little more customisable, so that we
>>> could for instance list a specific time as well? i.e. Monday at 12pm.
>>>
>>> We're currently using custom external scripts to calculate our own
>>> 'timely' values because this isn't possible, but it would be great to use
>>> the built in Reporting Rate Summary.
>>>
>>> Thanks,
>>>
>>> - Jasper
>>> --
>>>
>>> Jasper Timm
>>>
>>> Lead Software Developer
>>>
>>> 
>>>
>>> eHealth Africa
>>> 4A Renner Drive
>>> Off Wilkinson Road (behind Monoprix Supermarket)
>>> Freetown, Sierra Leone
>>>
>>> mobile +232 99891119 <+232%2099%20891119>
>>>
>>> --
>>>
>>> 
>>> 
>>> 
>>> 
>>> 
>>>
>> --
>>
>> Jasper Timm
>>
>> Lead Software Developer
>>
>> 
>>
>> eHealth Africa
>> 4A Renner Drive
>> Off Wilkinson Road (behind Monoprix Supermarket)
>> Freetown, Sierra Leone
>>
>> mobile +232 99891119 <+232%2099%20891119>
>>
>> --
>>
>> 
>> 
>> 
>> 
>> 
>>
>
>
> *This message and any attachments are subject to a disclaimer published at
> http://www.hisp.org/policies.html#comms_disclaimer
> .  Please read the
> disclaimer before opening any attachment or taking any other action in
> terms of this electronic transmission.  If you cannot access the
> disclaimer, kindly send an email to disclai...@hisp.org
>  and a copy will be provided to you. By replying to
> this e-mail or opening any attachment you agree to be bound by the
> provisions of the disclaimer.*
>
-- 

Jasper Timm

Lead Software Developer



eHealth Africa
4A Renner Drive
Off Wilkinson Road (behind Monoprix Supermarket)
Freetown, Sierra Leone

mobile +232 99891119

--






___
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] Data Set Completion on 2.29

2018-06-11 Thread Barnabas Akumba
Hello Devs,

When I try to submit data on version 2.29 (i.e. click on "complete")
button, the submission is not completed.
I looked at the Browser console and found the following errors:



Any suggestion as to how to get around this?

Regards


-- 

Barnabas AKUMBA

*Mobile:* +2348036195778
*Skype:* barnabas.akumba
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Analytics error in 2.29

2018-06-11 Thread Knut Staring
Perhaps you could try with the latest build of 2.29, in case this is
related to a bug that was recently fixed:
https://jira.dhis2.org/browse/DHIS2-3844

Knut

On Mon, Jun 11, 2018 at 9:49 AM Barnabas Akumba 
wrote:

> Hello All,
>
> I've been having some issues with Analytics since I upgraded from 2.28 to
> 2.29.
> The scheduled Analytics which is supposed to run at 12:00 midnight always
> fails with the following error (Screen shot):
>
>
> I've always had to drop the analytics table manually using the CASCADE
> option and afterwards have to re-run analytics and it works.
> Has any one experienced this? How can it be solved?
>
> Regards
> --
>
> Barnabas AKUMBA
>
> *Mobile:* +2348036195778
> *Skype:* barnabas.akumba
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>


-- 
Knut Staring

Department of Information, Evidence and Research
World Health Organization, Geneva, Switzerland
Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
Skype: knutstar
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] Analytics error in 2.29

2018-06-11 Thread Barnabas Akumba
Hello All,

I've been having some issues with Analytics since I upgraded from 2.28 to
2.29.
The scheduled Analytics which is supposed to run at 12:00 midnight always
fails with the following error (Screen shot):


I've always had to drop the analytics table manually using the CASCADE
option and afterwards have to re-run analytics and it works.
Has any one experienced this? How can it be solved?

Regards
-- 

Barnabas AKUMBA

*Mobile:* +2348036195778
*Skype:* barnabas.akumba
___
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