Bug - cannot schedule events in Tracker Capture

Hi devs,

Just following up on the bug below (DHIS2-1438). I realize Abyot is on leave (congratulations! J ), but this ticket is still assigned to him – is there anyone else who might be able to pick this up?

This bug is quite urgent, as it has effectively crippled the Tracker in 2.26. But I’m guessing that’s it’s just a case of the wrong code being fired, so should hopefully be fairly simple to fix?

Cheers, Sam.

image

···

From: Dhis2-devs dhis2-devs-bounces+samuel.johnson=qebo.co.uk@lists.launchpad.net on behalf of Sam Johnson samuel.johnson@qebo.co.uk

Date: Tuesday, 18 April 2017 at 19:55

To: Abyot Asalefew Gizaw abyot@dhis2.org, DHIS2 Developers dhis2-devs@lists.launchpad.net

Cc:absolom_m@yahoo.comabsolom_m@yahoo.com, Immaculate Ayebazibwe ekassy29@gmail.com

Subject: [Dhis2-devs] Bug - cannot schedule events in Tracker Capture

This sender failed our fraud detection checks and may not be who they appear to be. Learn about spoofing

Feedback

Hi Abyot,

I’ve come across what looks like a new bug introduced into Tracker Capture in 2.26 – I don’t seem to be able to schedule events. Although I’ve not used periods in my Tracker programs, I’m wondering if the fix discussed in the thread below has triggered this new bug?

In 2.26, both the calendar icon and the ‘ask user to create new event when stage is completeoption now generate an open event instead of a scheduled event. (In 2.25, both of these correctly create a scheduled event instead of an open event.) Note that the one thing that still works fine is if the booking is auto-generated on enrolment – this still schedules rather than creates the event.)

To reproduce this in the Play demo website:

  1.  Open Tracker Capture, select Ngelehun CHC, and register a new patient for the WHO RMNCH Tracker (first visit = 2017-01-01).
    
  2.  Complete the ‘First antenatal care visit’, which triggers a prompt to ‘Schedule new event for stage Antenatal care visit’ – **a new ‘open’ visit is created instead of a scheduled visit** (a future ‘open’ event shouldn’t be possible!).
    
  3.  Use the ‘+’ icon to create a new event for 2017-02-01 – a new ‘open’ visit is correctly created.
    
  4.  Use the calendar icon to schedule a new event (booking) for 2017-03-01 – ***a new ‘open’ visit is created, instead of a scheduled visit***.
    

I’ve reported this as [DHIS2-1438] - Jira. This is an extremely important bug, as users in other facilities can only update scheduled events (bookings) – so this bug also breaks the awesomely useful feature you restored in [DHIS2-623] - Jira.

Cheers, Sam.

From: Dhis2-users dhis2-users-bounces+samuel.johnson=qebo.co.uk@lists.launchpad.net on behalf of Absolom MURAMIRA absolom_m@yahoo.com

Reply-To:absolom_m@yahoo.comabsolom_m@yahoo.com

Date: Thursday, 2 March 2017 at 20:03

To: Abyot Asalefew Gizaw abyot@dhis2.org, Immaculate Ayebazibwe ekassy29@gmail.com

Cc: DHIS Users dhis2-users@lists.launchpad.net, DHIS2 Developers dhis2-devs@lists.launchpad.net

Subject: Re: [Dhis2-users] [Dhis2-devs] Fw: Tracker Events period issue

Dear Abyot,

Thank you for the update. We also look forward for the periodic fix.

Absolom

Sent from Yahoo Mail on Android

On Thu, 2 Mar 2017 at 11:34, Abyot Asalefew Gizaw

abyot@dhis2.org wrote:

Hi,

We have now made a limited fix in 2.26.

Here is what is supported at the moment:

  • scheduling periodic events is not supported at the moment
  • creation of events is possible
  • once created, editing the event’s period is not possible
  • normally we store, the end date of the period as event date

Abyot A. Gizaw.

Senior Engineer, DHIS2

University of Oslo

http://www.dhis2.org

On Tue, Feb 28, 2017 at 3:09 PM, Abyot Asalefew Gizaw abyot@dhis2.org wrote:

sorry the other way round - the calendar icon not the plus icon!

Abyot A. Gizaw.

Senior Engineer, DHIS2

University of Oslo

http://www.dhis2.org

On Tue, Feb 28, 2017 at 3:09 PM, Abyot Asalefew Gizaw abyot@dhis2.org wrote:

You need to click the plus icon not the calendar icon

Abyot A. Gizaw.

Senior Engineer, DHIS2

University of Oslo

http://www.dhis2.org

On Tue, Feb 28, 2017 at 2:27 PM, Immaculate Ayebazibwe ekassy29@gmail.com wrote:

Hi Abyot,

Based on your explanation, even when you use only date, it will not go beyond a given year.

For example it will show only dates within 2017, or dates within 2016.

Thank you and Kind Regards

*Immarcqulate. A (Emma Kassy) *

“You miss 100% of the shots you don’t take.”

On Tue, Feb 28, 2017 at 1:31 PM, Abyot Asalefew Gizaw abyot@dhis2.org wrote:

Hi,

Trying to clarify in case there is a misunderstanding in the creation of event in tracker capture

  • events have two types of dates - event date and due date
  • future date is allowed for due date not for event date as the event date is the date where the event has happened
  • the plus icon is to “Add new” while the calendar icon is to “Schedule new”

A problem we have is for those events with period type - like daily, weekly, monthly, yearly… For those without period type, but only date, the system works as expected.

Abyot A. Gizaw.

Senior Engineer, DHIS2

University of Oslo

http://www.dhis2.org

On Tue, Feb 28, 2017 at 11:00 AM, Stanley Kalyati skalyati@gmail.com wrote:

I have the same issue but i have resorted to using the Mobile Tracker Capture instead as it gives an opportunity to backtrack dates.

Unless there is another way round but I find the mobile version ideal in this scenario

On Feb 27, 2017 8:27 PM, “Absolom MURAMIRA” absolom_m@yahoo.com wrote:

Someone please help

On Friday, February 24, 2017 8:01 AM, Absolom MURAMIRA absolom_m@yahoo.com wrote:

Dear Community,

I have a program in Tracker (DHIS v2.26) configured with 2 repeatable program stages. My issue is that when i try to add new events, I am not able to see months/year for 2017. it is only stuck in 2016. Has anyone encountered this before and willing to advise how i can resolve it?

Thank you.

Absolom


Mailing list: https://launchpad.net/~dhis2-u sers

Post to : dhis2-users@lists.launchpad.ne t

Unsubscribe : https://launchpad.net/~dhis2-u sers

More help : https://help.launchpad.net/Lis tHelp


Mailing list: https://launchpad.net/~dhis2-d evs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-d evs

More help : https://help.launchpad.net/Lis tHelp


Mailing list: https://launchpad.net/~dhis2-u sers

Post to : dhis2-users@lists.launchpad.ne t

Unsubscribe : https://launchpad.net/~dhis2-u sers

More help : https://help.launchpad.net/Lis tHelp

Hey Sam!
Thanks for pushing this up the priority list. It was a relatively small fix, new versions of 2.26 and 2.27 snapshot are ready to download.

Best regards,
Markus

···

25. apr. 2017 kl. 17.35 skrev Sam Johnson <samuel.johnson@qebo.co.uk>:

Hi devs,

Just following up on the bug below (DHIS2-1438 <https://jira.dhis2.org/browse/DHIS2-1438&gt;\). I realize Abyot is on leave (congratulations! J), but this ticket is still assigned to him – is there anyone else who might be able to pick this up?

This bug is quite urgent, as it has effectively crippled the Tracker in 2.26. But I’m guessing that’s it’s just a case of the wrong code being fired, so should hopefully be fairly simple to fix?

Cheers, Sam.

From: Dhis2-devs <dhis2-devs-bounces+samuel.johnson=qebo.co.uk@lists.launchpad.net <mailto:dhis2-devs-bounces+samuel.johnson=qebo.co.uk@lists.launchpad.net>> on behalf of Sam Johnson <samuel.johnson@qebo.co.uk <mailto:samuel.johnson@qebo.co.uk>>
Date: Tuesday, 18 April 2017 at 19:55
To: Abyot Asalefew Gizaw <abyot@dhis2.org <mailto:abyot@dhis2.org>>, DHIS2 Developers <dhis2-devs@lists.launchpad.net <mailto:dhis2-devs@lists.launchpad.net>>
Cc: "absolom_m@yahoo.com <mailto:absolom_m@yahoo.com>" <absolom_m@yahoo.com <mailto:absolom_m@yahoo.com>>, Immaculate Ayebazibwe <ekassy29@gmail.com <mailto:ekassy29@gmail.com>>
Subject: [Dhis2-devs] Bug - cannot schedule events in Tracker Capture

This sender failed our fraud detection checks and may not be who they appear to be. Learn about spoofing <Bing;
Feedback <Bing;
Hi Abyot,

I’ve come across what looks like a new bug introduced into Tracker Capture in 2.26 – I don’t seem to be able toschedule events. Although I’ve not used periods in my Tracker programs, I’m wondering if the fix discussed in the thread below has triggered this new bug?

In 2.26, both the calendar icon and the ‘ask user to create new event when stage is complete’ option now generate an open event instead of a scheduled event. (In 2.25, both of these correctly create a scheduled event instead of an open event.) Note that the one thing that still works fine is if the booking is auto-generated on enrolment – this still schedules rather than creates the event.)

To reproduce this in the Play demo website:
1. Open Tracker Capture, select Ngelehun CHC, and register a new patient for the WHO RMNCH Tracker (first visit = 2017-01-01).
2. Complete the ‘First antenatal care visit’, which triggers a prompt to ‘Schedule new event for stage Antenatal care visit’ – a new ‘open’ visit is created instead of a scheduled visit (a future ‘open’ event shouldn’t be possible!).
3. Use the ‘+’ icon to create a new event for 2017-02-01 – a new ‘open’ visit is correctly created.
4. Use the calendar icon to schedule a new event (booking) for 2017-03-01 – a new ‘open’ visit is created, instead of a scheduled visit.

I’ve reported this as https://jira.dhis2.org/browse/DHIS2-1438\. This is an extremely important bug, as users in other facilities can only update scheduled events (bookings) – so this bug also breaks the awesomely useful feature you restored in https://jira.dhis2.org/browse/DHIS2-623\.

Cheers, Sam.

From: Dhis2-users <dhis2-users-bounces+samuel.johnson=qebo.co.uk@lists.launchpad.net> on behalf of Absolom MURAMIRA <absolom_m@yahoo.com>
Reply-To: "absolom_m@yahoo.com" <absolom_m@yahoo.com>
Date: Thursday, 2 March 2017 at 20:03
To: Abyot Asalefew Gizaw <abyot@dhis2.org>, Immaculate Ayebazibwe <ekassy29@gmail.com>
Cc: DHIS Users <dhis2-users@lists.launchpad.net>, DHIS2 Developers <dhis2-devs@lists.launchpad.net>
Subject: Re: [Dhis2-users] [Dhis2-devs] Fw: Tracker Events period issue

Dear Abyot,

Thank you for the update. We also look forward for the periodic fix.

Absolom

Sent from Yahoo Mail on Android <Yahoo Mail — Go further;

On Thu, 2 Mar 2017 at 11:34, Abyot Asalefew Gizaw > <abyot@dhis2.org> wrote:
Hi,

We have now made a limited fix in 2.26.

Here is what is supported at the moment:

- scheduling periodic events is not supported at the moment
- creation of events is possible
- once created, editing the event's period is not possible
- normally we store, the end date of the period as event date

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

On Tue, Feb 28, 2017 at 3:09 PM, Abyot Asalefew Gizaw <abyot@dhis2.org <>> wrote:
sorry the other way round - the calendar icon not the plus icon!

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

On Tue, Feb 28, 2017 at 3:09 PM, Abyot Asalefew Gizaw <abyot@dhis2.org <>> wrote:
You need to click the plus icon not the calendar icon

<image001.png>

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

On Tue, Feb 28, 2017 at 2:27 PM, Immaculate Ayebazibwe <ekassy29@gmail.com <>> wrote:
Hi Abyot,

Based on your explanation, even when you use only date, it will not go beyond a given year.
For example it will show only dates within 2017, or dates within 2016.

Thank you and Kind Regards
Immarcqulate. A (Emma Kassy)

"You miss 100% of the shots you don't take."

On Tue, Feb 28, 2017 at 1:31 PM, Abyot Asalefew Gizaw <abyot@dhis2.org <>> wrote:
Hi,

Trying to clarify in case there is a misunderstanding in the creation of event in tracker capture
events have two types of dates - event date and due date
future date is allowed for due date not for event date as the event date is the date where the event has happened
the plus icon is to "Add new" while the calendar icon is to "Schedule new"
A problem we have is for those events with period type - like daily, weekly, monthly, yearly.... For those without period type, but only date, the system works as expected.

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

On Tue, Feb 28, 2017 at 11:00 AM, Stanley Kalyati <skalyati@gmail.com <>> wrote:
I have the same issue but i have resorted to using the Mobile Tracker Capture instead as it gives an opportunity to backtrack dates.

Unless there is another way round but I find the mobile version ideal in this scenario

On Feb 27, 2017 8:27 PM, "Absolom MURAMIRA" <absolom_m@yahoo.com <>> wrote:
Someone please help

On Friday, February 24, 2017 8:01 AM, Absolom MURAMIRA <absolom_m@yahoo.com <>> wrote:

Dear Community,

I have a program in Tracker (DHIS v2.26) configured with 2 repeatable program stages. My issue is that when i try to add new events, I am not able to see months/year for 2017. it is only stuck in 2016. Has anyone encountered this before and willing to advise how i can resolve it?
Thank you.

Absolom

______________________________ _________________
Mailing list: https://launchpad.net/~dhis2-u sers
Post to : dhis2-users@lists.launchpad.ne <> t
Unsubscribe : https://launchpad.net/~dhis2-u sers
More help : https://help.launchpad.net/Lis tHelp

______________________________ _________________
Mailing list: https://launchpad.net/~dhis2-d evs <https://launchpad.net/~dhis2-devs&gt;
Post to : dhis2-devs@lists.launchpad.net <>
Unsubscribe : https://launchpad.net/~dhis2-d evs <https://launchpad.net/~dhis2-devs&gt;
More help : https://help.launchpad.net/Lis tHelp <https://help.launchpad.net/ListHelp&gt;

______________________________ _________________
Mailing list: https://launchpad.net/~dhis2-u sers <https://launchpad.net/~dhis2-users&gt;
Post to : dhis2-users@lists.launchpad.ne t <>
Unsubscribe : https://launchpad.net/~dhis2-u sers <https://launchpad.net/~dhis2-users&gt;
More help : https://help.launchpad.net/Lis tHelp <https://help.launchpad.net/ListHelp&gt;

_______________________________________________
Mailing list: DHIS 2 developers in Launchpad
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : DHIS 2 developers in Launchpad
More help : ListHelp - Launchpad Help

Hi Markus,

Although I tested your fix for this when it was released, and it worked well in update 9a5f6d0 (25 April), this bug appears to have returned in the latest update 2e93869 (1 May) of 2.26. What’s odd is that I can’t see any commits to the origin/v26 branch of tracker-capture-app since you made that change on 25 April – is this now possibly a build error, or perhaps an underlying API issue?

This bug is very straightforward to reproduce – just use the calendar icon to schedule an event, and it instead creates the event. I’ve updated the existing Jira issue (DHIS2-1438) with a comment – would it be possible to also re-open this issue?

Another bug also appears to have been introduced in both versions: the ‘Display generate event box after completed’ option no longer seems to be working. This should (for repeatable program stages) prompt the user to schedule a future event at the appropriate interval – but now nothing happens at all. (You can replicate this on Play Demo in the RMNCH Tracker, by first setting the ‘standard interval days’ of the ‘Antenatal care visit’ program stage, then creating an event and ‘completing’ it – it fails to prompt you to schedule a follow-up ‘Antenatal care visit’.) I’ve logged this as DHIS2-1507.

I’d be very grateful if you’re able to find time to look at this again, as these two bugs have once again broken the Tracker in 2.26.

Many thanks, Sam.

···

From: Markus Bekken markus@dhis2.org

Date: Tuesday, 25 April 2017 at 23:21

To: Sam Johnson samuel.johnson@qebo.co.uk

Cc: DHIS2 Developers dhis2-devs@lists.launchpad.net, “absolom_m@yahoo.comabsolom_m@yahoo.com, Immaculate Ayebazibwe ekassy29@gmail.com

Subject: Re: [Dhis2-devs] Bug - cannot schedule events in Tracker Capture

Hey Sam!

Thanks for pushing this up the priority list. It was a relatively small fix, new versions of 2.26 and 2.27 snapshot are ready to download.

Best regards,

Markus

  1. apr. 2017 kl. 17.35 skrev Sam Johnson samuel.johnson@qebo.co.uk:

Hi devs,

Just following up on the bug below (DHIS2-1438 ). I realize Abyot is on leave (congratulations! J ), but this ticket is still assigned to him – is there anyone else who might be able to pick this up?

This bug is quite urgent, as it has effectively crippled the Tracker in 2.26. But I’m guessing that’s it’s just a case of the wrong code being fired, so should hopefully be fairly simple to fix?

Cheers, Sam.

**From: **Dhis2-devs <dhis2-devs-bounces+samuel.johnson=qebo.co.uk@lists.launchpad.net > on behalf of Sam Johnson samuel.johnson@qebo.co.uk

**Date: **Tuesday, 18 April 2017 at 19:55

**To: **Abyot Asalefew Gizaw abyot@dhis2.org, DHIS2 Developers dhis2-devs@lists.launchpad.net

**Cc: **“absolom_m@yahoo.com” <absolom_m@yahoo.com >, Immaculate Ayebazibwe ekassy29@gmail.com

**Subject: **[Dhis2-devs] Bug - cannot schedule events in Tracker Capture

This sender failed our fraud detection checks and may not be who they appear to be. Learn about spoofing

Feedback

Hi Abyot,

I’ve come across what looks like a new bug introduced into Tracker Capture in 2.26 – I don’t seem to be able toschedule events. Although I’ve not used periods in my Tracker programs, I’m wondering if the fix discussed in the thread below has triggered this new bug?

In 2.26, both the calendar icon ** and the**‘ask user to create new event when stage is complete’******option now ** generate an open event instead of a scheduled event. (In 2.25, both of these correctly create a scheduled event instead of an open event.) Note that the one thing that still works fine is if the booking is auto-generated on enrolment – this still schedules rather than creates the event.)

To reproduce this in the Play demo website:

  1.   Open Tracker Capture, select Ngelehun CHC, and register a new patient for the WHO RMNCH Tracker (first visit = 2017-01-01).
    
  1.   Complete the ‘First antenatal care visit’, which triggers a prompt to ‘Schedule new event for stage Antenatal care visit’ – **a new ‘open’ visit is created instead of a scheduled visit** (a future ‘open’ event shouldn’t be possible!).
    
  1.   Use the ‘+’ icon to create a new event for 2017-02-01 – a new ‘open’ visit is correctly created.
    
  1.   Use the calendar icon to schedule a new event (booking) for 2017-03-01 – ***a new ‘open’ visit is created, instead of a scheduled visit***.
    

I’ve reported this as https://jira.dhis2.org/browse/DHIS2-1438 . This is an extremely important bug, as users in other facilities can only update scheduled events (bookings) – so this bug also breaks the awesomely useful feature you restored in https://jira.dhis2.org/browse/DHIS2-623.

Cheers, Sam.

**From: **Dhis2-users <dhis2-users-bounces+samuel.johnson=qebo.co.uk@lists.launchpad.net > on behalf of Absolom MURAMIRA absolom_m@yahoo.com

**Reply-To: **“absolom_m@yahoo.comabsolom_m@yahoo.com

**Date: **Thursday, 2 March 2017 at 20:03

**To: **Abyot Asalefew Gizaw abyot@dhis2.org, Immaculate Ayebazibwe ekassy29@gmail.com

**Cc: **DHIS Users dhis2-users@lists.launchpad.net, DHIS2 Developers dhis2-devs@lists.launchpad.net

**Subject: **Re: [Dhis2-users] [Dhis2-devs] Fw: Tracker Events period issue

Dear Abyot,

Thank you for the update. We also look forward for the periodic fix.

Absolom

Sent from Yahoo Mail on Android

On Thu, 2 Mar 2017 at 11:34, Abyot Asalefew Gizaw

abyot@dhis2.org wrote:

Hi,

We have now made a limited fix in 2.26.

Here is what is supported at the moment:

  • scheduling periodic events is not supported at the moment
  • creation of events is possible
  • once created, editing the event’s period is not possible
  • normally we store, the end date of the period as event date

Abyot A. Gizaw.

Senior Engineer, DHIS2

University of Oslo

http://www.dhis2.org

On Tue, Feb 28, 2017 at 3:09 PM, Abyot Asalefew Gizaw abyot@dhis2.org wrote:

sorry the other way round - the calendar icon not the plus icon!

Abyot A. Gizaw.

Senior Engineer, DHIS2

University of Oslo

http://www.dhis2.org

On Tue, Feb 28, 2017 at 3:09 PM, Abyot Asalefew Gizaw abyot@dhis2.org wrote:

You need to click the plus icon not the calendar icon

<image001.png>

Abyot A. Gizaw.

Senior Engineer, DHIS2

University of Oslo

http://www.dhis2.org

On Tue, Feb 28, 2017 at 2:27 PM, Immaculate Ayebazibwe ekassy29@gmail.com wrote:

Hi Abyot,

Based on your explanation, even when you use only date, it will not go beyond a given year.

For example it will show only dates within 2017, or dates within 2016.

Thank you and Kind Regards

*Immarcqulate. A (Emma Kassy) *

“You miss 100% of the shots you don’t take.”

On Tue, Feb 28, 2017 at 1:31 PM, Abyot Asalefew Gizaw abyot@dhis2.org wrote:

Hi,

Trying to clarify in case there is a misunderstanding in the creation of event in tracker capture

  • events have two types of dates - event date and due date
  • future date is allowed for due date not for event date as the event date is the date where the event has happened
  • the plus icon is to “Add new” while the calendar icon is to “Schedule new”

A problem we have is for those events with period type - like daily, weekly, monthly, yearly… For those without period type, but only date, the system works as expected.

Abyot A. Gizaw.

Senior Engineer, DHIS2

University of Oslo

http://www.dhis2.org

On Tue, Feb 28, 2017 at 11:00 AM, Stanley Kalyati skalyati@gmail.com wrote:

I have the same issue but i have resorted to using the Mobile Tracker Capture instead as it gives an opportunity to backtrack dates.

Unless there is another way round but I find the mobile version ideal in this scenario

On Feb 27, 2017 8:27 PM, “Absolom MURAMIRA” absolom_m@yahoo.com wrote:

Someone please help

On Friday, February 24, 2017 8:01 AM, Absolom MURAMIRA absolom_m@yahoo.com wrote:

Dear Community,

I have a program in Tracker (DHIS v2.26) configured with 2 repeatable program stages. My issue is that when i try to add new events, I am not able to see months/year for 2017. it is only stuck in 2016. Has anyone encountered this before and willing to advise how i can resolve it?

Thank you.

Absolom


Mailing list: https://launchpad.net/~dhis2-u sers

Post to : dhis2-users@lists.launchpad.ne t

Unsubscribe : https://launchpad.net/~dhis2-u sers

More help : https://help.launchpad.net/Lis tHelp


Mailing list: https://launchpad.net/~dhis2-d evs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-d evs

More help : https://help.launchpad.net/Lis tHelp


Mailing list: https://launchpad.net/~dhis2-u sers

Post to : dhis2-users@lists.launchpad.ne t

Unsubscribe : https://launchpad.net/~dhis2-u sers

More help : https://help.launchpad.net/Lis tHelp


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

Hi Sam,
for the first part on event scheduling is fixed now. A bad version(without the schedule fix) was published inadvertently.

For the generation of the next visit, there seems to be a flag confusion here. There is two flags in the program stage config - one called "Display generate event box after completed" and another one called "Ask user to create new event when stage is complete".

For the moment the tracker only regards the last one - so if you check "Ask user to create new event when stage is complete" it should work.

We will clean this up as part of DHIS2-1507, but then you have a workaround.

Markus

···

1. mai 2017 kl. 13.51 skrev Sam Johnson <samuel.johnson@qebo.co.uk>:

Hi Markus,

Although I tested your fix for this when it was released, and it worked well in update 9a5f6d0 (25 April), this bug appears to have returned in the latest update 2e93869 (1 May) of 2.26. What’s odd is that I can’t see any commits to the origin/v26 branch of tracker-capture-app since you made that change on 25 April – is this now possibly a build error, or perhaps an underlying API issue?

This bug is very straightforward to reproduce – just use the calendar icon to schedule an event, and it instead creates the event. I’ve updated the existing Jira issue (DHIS2-1438 <https://jira.dhis2.org/browse/DHIS2-1438&gt;\) with a comment – would it be possible to also re-open this issue?

Another bug also appears to have been introduced in both versions: the ‘Display generate event box after completed’ option no longer seems to be working. This should (for repeatable program stages) prompt the user to schedule a future event at the appropriate interval – but now nothing happens at all. (You can replicate this on Play Demo in the RMNCH Tracker, by first setting the ‘standard interval days’ of the ‘Antenatal care visit’ program stage, then creating an event and ‘completing’ it – it fails to prompt you to schedule a follow-up ‘Antenatal care visit’.) I’ve logged this as DHIS2-1507 <https://jira.dhis2.org/browse/DHIS2-1507&gt;\.

I’d be very grateful if you’re able to find time to look at this again, as these two bugs have once again broken the Tracker in 2.26.

Many thanks, Sam.

From: Markus Bekken <markus@dhis2.org>
Date: Tuesday, 25 April 2017 at 23:21
To: Sam Johnson <samuel.johnson@qebo.co.uk>
Cc: DHIS2 Developers <dhis2-devs@lists.launchpad.net>, "absolom_m@yahoo.com" <absolom_m@yahoo.com>, Immaculate Ayebazibwe <ekassy29@gmail.com>
Subject: Re: [Dhis2-devs] Bug - cannot schedule events in Tracker Capture

Hey Sam!
Thanks for pushing this up the priority list. It was a relatively small fix, new versions of 2.26 and 2.27 snapshot are ready to download.

Best regards,
Markus

25. apr. 2017 kl. 17.35 skrev Sam Johnson <samuel.johnson@qebo.co.uk <mailto:samuel.johnson@qebo.co.uk>>:

Hi devs,

Just following up on the bug below (DHIS2-1438 <https://jira.dhis2.org/browse/DHIS2-1438&gt;\). I realize Abyot is on leave (congratulations! J), but this ticket is still assigned to him – is there anyone else who might be able to pick this up?

This bug is quite urgent, as it has effectively crippled the Tracker in 2.26. But I’m guessing that’s it’s just a case of the wrong code being fired, so should hopefully be fairly simple to fix?

Cheers, Sam.

From: Dhis2-devs <dhis2-devs-bounces+samuel.johnson=qebo.co.uk@lists.launchpad.net <mailto:dhis2-devs-bounces+samuel.johnson=qebo.co.uk@lists.launchpad.net>> on behalf of Sam Johnson <samuel.johnson@qebo.co.uk <mailto:samuel.johnson@qebo.co.uk>>
Date: Tuesday, 18 April 2017 at 19:55
To: Abyot Asalefew Gizaw <abyot@dhis2.org <mailto:abyot@dhis2.org>>, DHIS2 Developers <dhis2-devs@lists.launchpad.net <mailto:dhis2-devs@lists.launchpad.net>>
Cc: "absolom_m@yahoo.com <mailto:absolom_m@yahoo.com>" <absolom_m@yahoo.com <mailto:absolom_m@yahoo.com>>, Immaculate Ayebazibwe <ekassy29@gmail.com <mailto:ekassy29@gmail.com>>
Subject: [Dhis2-devs] Bug - cannot schedule events in Tracker Capture

This sender failed our fraud detection checks and may not be who they appear to be. Learn about spoofing <Bing;
Feedback <Bing;
Hi Abyot,

I’ve come across what looks like a new bug introduced into Tracker Capture in 2.26 – I don’t seem to be able toschedule events. Although I’ve not used periods in my Tracker programs, I’m wondering if the fix discussed in the thread below has triggered this new bug?

In 2.26, both the calendar icon and the ‘ask user to create new event when stage is complete’ option now generate an open event instead of a scheduled event. (In 2.25, both of these correctly create a scheduled event instead of an open event.) Note that the one thing that still works fine is if the booking is auto-generated on enrolment – this still schedules rather than creates the event.)

To reproduce this in the Play demo website:
1. Open Tracker Capture, select Ngelehun CHC, and register a new patient for the WHO RMNCH Tracker (first visit = 2017-01-01).
2. Complete the ‘First antenatal care visit’, which triggers a prompt to ‘Schedule new event for stage Antenatal care visit’ – a new ‘open’ visit is created instead of a scheduled visit (a future ‘open’ event shouldn’t be possible!).
3. Use the ‘+’ icon to create a new event for 2017-02-01 – a new ‘open’ visit is correctly created.
4. Use the calendar icon to schedule a new event (booking) for 2017-03-01 – a new ‘open’ visit is created, instead of a scheduled visit.

I’ve reported this as https://jira.dhis2.org/browse/DHIS2-1438\. This is an extremely important bug, as users in other facilities can only update scheduled events (bookings) – so this bug also breaks the awesomely useful feature you restored in https://jira.dhis2.org/browse/DHIS2-623\.

Cheers, Sam.

From: Dhis2-users <dhis2-users-bounces+samuel.johnson=qebo.co.uk@lists.launchpad.net <mailto:dhis2-users-bounces+samuel.johnson=qebo.co.uk@lists.launchpad.net>> on behalf of Absolom MURAMIRA <absolom_m@yahoo.com <mailto:absolom_m@yahoo.com>>
Reply-To: "absolom_m@yahoo.com <mailto:absolom_m@yahoo.com>" <absolom_m@yahoo.com <mailto:absolom_m@yahoo.com>>
Date: Thursday, 2 March 2017 at 20:03
To: Abyot Asalefew Gizaw <abyot@dhis2.org <mailto:abyot@dhis2.org>>, Immaculate Ayebazibwe <ekassy29@gmail.com <mailto:ekassy29@gmail.com>>
Cc: DHIS Users <dhis2-users@lists.launchpad.net <mailto:dhis2-users@lists.launchpad.net>>, DHIS2 Developers <dhis2-devs@lists.launchpad.net <mailto:dhis2-devs@lists.launchpad.net>>
Subject: Re: [Dhis2-users] [Dhis2-devs] Fw: Tracker Events period issue

Dear Abyot,

Thank you for the update. We also look forward for the periodic fix.

Absolom

Sent from Yahoo Mail on Android <Yahoo Mail — Go further;

On Thu, 2 Mar 2017 at 11:34, Abyot Asalefew Gizaw > <abyot@dhis2.org <mailto:abyot@dhis2.org>> wrote:
Hi,

We have now made a limited fix in 2.26.

Here is what is supported at the moment:

- scheduling periodic events is not supported at the moment
- creation of events is possible
- once created, editing the event's period is not possible
- normally we store, the end date of the period as event date

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

On Tue, Feb 28, 2017 at 3:09 PM, Abyot Asalefew Gizaw <abyot@dhis2.org> wrote:
sorry the other way round - the calendar icon not the plus icon!

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

On Tue, Feb 28, 2017 at 3:09 PM, Abyot Asalefew Gizaw <abyot@dhis2.org> wrote:
You need to click the plus icon not the calendar icon

<image001.png>

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

On Tue, Feb 28, 2017 at 2:27 PM, Immaculate Ayebazibwe <ekassy29@gmail.com> wrote:
Hi Abyot,

Based on your explanation, even when you use only date, it will not go beyond a given year.
For example it will show only dates within 2017, or dates within 2016.

Thank you and Kind Regards
Immarcqulate. A (Emma Kassy)

"You miss 100% of the shots you don't take."

On Tue, Feb 28, 2017 at 1:31 PM, Abyot Asalefew Gizaw <abyot@dhis2.org> wrote:
Hi,

Trying to clarify in case there is a misunderstanding in the creation of event in tracker capture
events have two types of dates - event date and due date
future date is allowed for due date not for event date as the event date is the date where the event has happened
the plus icon is to "Add new" while the calendar icon is to "Schedule new"
A problem we have is for those events with period type - like daily, weekly, monthly, yearly.... For those without period type, but only date, the system works as expected.

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

On Tue, Feb 28, 2017 at 11:00 AM, Stanley Kalyati <skalyati@gmail.com> wrote:
I have the same issue but i have resorted to using the Mobile Tracker Capture instead as it gives an opportunity to backtrack dates.

Unless there is another way round but I find the mobile version ideal in this scenario

On Feb 27, 2017 8:27 PM, "Absolom MURAMIRA" <absolom_m@yahoo.com> wrote:
Someone please help

On Friday, February 24, 2017 8:01 AM, Absolom MURAMIRA <absolom_m@yahoo.com> wrote:

Dear Community,

I have a program in Tracker (DHIS v2.26) configured with 2 repeatable program stages. My issue is that when i try to add new events, I am not able to see months/year for 2017. it is only stuck in 2016. Has anyone encountered this before and willing to advise how i can resolve it?
Thank you.

Absolom

______________________________ _________________
Mailing list: https://launchpad.net/~dhis2-u sers
Post to : dhis2-users@lists.launchpad.ne t
Unsubscribe : https://launchpad.net/~dhis2-u sers
More help : https://help.launchpad.net/Lis tHelp

______________________________ _________________
Mailing list: https://launchpad.net/~dhis2-d evs <https://launchpad.net/~dhis2-devs&gt;
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-d evs <https://launchpad.net/~dhis2-devs&gt;
More help : https://help.launchpad.net/Lis tHelp <https://help.launchpad.net/ListHelp&gt;

______________________________ _________________
Mailing list: https://launchpad.net/~dhis2-u sers <https://launchpad.net/~dhis2-users&gt;
Post to : dhis2-users@lists.launchpad.ne t
Unsubscribe : https://launchpad.net/~dhis2-u sers <https://launchpad.net/~dhis2-users&gt;
More help : https://help.launchpad.net/Lis tHelp <https://help.launchpad.net/ListHelp&gt;

_______________________________________________
Mailing list: DHIS 2 developers in Launchpad
Post to : dhis2-devs@lists.launchpad.net <mailto:dhis2-devs@lists.launchpad.net>
Unsubscribe : DHIS 2 developers in Launchpad
More help : ListHelp - Launchpad Help

Hi Markus,

Many thanks for this – you’re right, I’ve just tested it, and despite the name, the flag “Ask user to create new event when stage is complete” in fact seems to prompt the user even when just the event is complete (ie the stage is still open), which provides me with a workaround. :slight_smile:

Cheers, Sam.

···

From: Markus Bekken markus@dhis2.org

Date: Tuesday, 2 May 2017 at 08:35

To: Sam Johnson samuel.johnson@qebo.co.uk

Cc: DHIS2 Developers dhis2-devs@lists.launchpad.net, “absolom_m@yahoo.comabsolom_m@yahoo.com, Immaculate Ayebazibwe ekassy29@gmail.com

Subject: Re: [Dhis2-devs] Bug - cannot schedule events in Tracker Capture

Hi Sam,

for the first part on event scheduling is fixed now. A bad version(without the schedule fix) was published inadvertently.

For the generation of the next visit, there seems to be a flag confusion here. There is two flags in the program stage config - one called “Display generate event box after completed” and another one called “Ask user to create new event when stage is complete”.

For the moment the tracker only regards the last one - so if you check “Ask user to create new event when stage is complete” it should work.

We will clean this up as part of DHIS2-1507, but then you have a workaround.

Markus

  1. mai 2017 kl. 13.51 skrev Sam Johnson samuel.johnson@qebo.co.uk:

Hi Markus,

Although I tested your fix for this when it was released, and it worked well in update 9a5f6d0 (25 April), this bug appears to have returned in the latest update 2e93869 (1 May) of 2.26. What’s odd is that I can’t see any commits to the origin/v26 branch of tracker-capture-app since you made that change on 25 April – is this now possibly a build error, or perhaps an underlying API issue?

This bug is very straightforward to reproduce – just use the calendar icon to schedule an event, and it instead creates the event. I’ve updated the existing Jira issue (DHIS2-1438 ) with a comment – would it be possible to also re-open this issue?

Another bug also appears to have been introduced in both versions: the ‘Display generate event box after completed’ option no longer seems to be working. This should (for repeatable program stages) prompt the user to schedule a future event at the appropriate interval – but now nothing happens at all. (You can replicate this on Play Demo in the RMNCH Tracker, by first setting the ‘standard interval days’ of the ‘Antenatal care visit’ program stage, then creating an event and ‘completing’ it – it fails to prompt you to schedule a follow-up ‘Antenatal care visit’.) I’ve logged this as DHIS2-1507.

I’d be very grateful if you’re able to find time to look at this again, as these two bugs have once again broken the Tracker in 2.26.

Many thanks, Sam.

**From: **Markus Bekken markus@dhis2.org

**Date: **Tuesday, 25 April 2017 at 23:21

**To: **Sam Johnson samuel.johnson@qebo.co.uk

**Cc: **DHIS2 Developers dhis2-devs@lists.launchpad.net, “absolom_m@yahoo.com” <absolom_m@yahoo.com >, Immaculate Ayebazibwe ekassy29@gmail.com

**Subject: **Re: [Dhis2-devs] Bug - cannot schedule events in Tracker Capture

Hey Sam!

Thanks for pushing this up the priority list. It was a relatively small fix, new versions of 2.26 and 2.27 snapshot are ready to download.

Best regards,

Markus

  1. apr. 2017 kl. 17.35 skrev Sam Johnson samuel.johnson@qebo.co.uk:

Hi devs,

Just following up on the bug below (DHIS2-1438 ). I realize Abyot is on leave (congratulations! J ), but this ticket is still assigned to him – is there anyone else who might be able to pick this up?

This bug is quite urgent, as it has effectively crippled the Tracker in 2.26. But I’m guessing that’s it’s just a case of the wrong code being fired, so should hopefully be fairly simple to fix?

Cheers, Sam.

**From: **Dhis2-devs <dhis2-devs-bounces+samuel.johnson=qebo.co.uk@lists.launchpad.net > on behalf of Sam Johnson samuel.johnson@qebo.co.uk

**Date: **Tuesday, 18 April 2017 at 19:55

**To: **Abyot Asalefew Gizaw abyot@dhis2.org, DHIS2 Developers dhis2-devs@lists.launchpad.net

**Cc: **“absolom_m@yahoo.com” <absolom_m@yahoo.com >, Immaculate Ayebazibwe ekassy29@gmail.com

**Subject: **[Dhis2-devs] Bug - cannot schedule events in Tracker Capture

This sender failed our fraud detection checks and may not be who they appear to be. Learn about spoofing

Feedback

Hi Abyot,

I’ve come across what looks like a new bug introduced into Tracker Capture in 2.26 – I don’t seem to be able toschedule events. Although I’ve not used periods in my Tracker programs, I’m wondering if the fix discussed in the thread below has triggered this new bug?

In 2.26, both the calendar icon ** and the**‘ask user to create new event when stage is complete’******option now ** generate an open event instead of a scheduled event. (In 2.25, both of these correctly create a scheduled event instead of an open event.) Note that the one thing that still works fine is if the booking is auto-generated on enrolment – this still schedules rather than creates the event.)

To reproduce this in the Play demo website:

  1.   Open Tracker Capture, select Ngelehun CHC, and register a new patient for the WHO RMNCH Tracker (first visit = 2017-01-01).
    
  1.   Complete the ‘First antenatal care visit’, which triggers a prompt to ‘Schedule new event for stage Antenatal care visit’ – **a new ‘open’ visit is created instead of a scheduled visit** (a future ‘open’ event shouldn’t be possible!).
    
  1.   Use the ‘+’ icon to create a new event for 2017-02-01 – a new ‘open’ visit is correctly created.
    
  1.   Use the calendar icon to schedule a new event (booking) for 2017-03-01 – ***a new ‘open’ visit is created, instead of a scheduled visit***.
    

I’ve reported this as https://jira.dhis2.org/browse/DHIS2-1438 . This is an extremely important bug, as users in other facilities can only update scheduled events (bookings) – so this bug also breaks the awesomely useful feature you restored in https://jira.dhis2.org/browse/DHIS2-623.

Cheers, Sam.

**From: **Dhis2-users <dhis2-users-bounces+samuel.johnson=qebo.co.uk@lists.launchpad.net > on behalf of Absolom MURAMIRA absolom_m@yahoo.com

**Reply-To: **“absolom_m@yahoo.comabsolom_m@yahoo.com

**Date: **Thursday, 2 March 2017 at 20:03

**To: **Abyot Asalefew Gizaw abyot@dhis2.org, Immaculate Ayebazibwe ekassy29@gmail.com

**Cc: **DHIS Users dhis2-users@lists.launchpad.net, DHIS2 Developers dhis2-devs@lists.launchpad.net

**Subject: **Re: [Dhis2-users] [Dhis2-devs] Fw: Tracker Events period issue

Dear Abyot,

Thank you for the update. We also look forward for the periodic fix.

Absolom

Sent from Yahoo Mail on Android

On Thu, 2 Mar 2017 at 11:34, Abyot Asalefew Gizaw

abyot@dhis2.org wrote:

Hi,

We have now made a limited fix in 2.26.

Here is what is supported at the moment:

  • scheduling periodic events is not supported at the moment
  • creation of events is possible
  • once created, editing the event’s period is not possible
  • normally we store, the end date of the period as event date

Abyot A. Gizaw.

Senior Engineer, DHIS2

University of Oslo

http://www.dhis2.org

On Tue, Feb 28, 2017 at 3:09 PM, Abyot Asalefew Gizaw abyot@dhis2.org wrote:

sorry the other way round - the calendar icon not the plus icon!

Abyot A. Gizaw.

Senior Engineer, DHIS2

University of Oslo

http://www.dhis2.org

On Tue, Feb 28, 2017 at 3:09 PM, Abyot Asalefew Gizaw abyot@dhis2.org wrote:

You need to click the plus icon not the calendar icon

<image001.png>

Abyot A. Gizaw.

Senior Engineer, DHIS2

University of Oslo

http://www.dhis2.org

On Tue, Feb 28, 2017 at 2:27 PM, Immaculate Ayebazibwe ekassy29@gmail.com wrote:

Hi Abyot,

Based on your explanation, even when you use only date, it will not go beyond a given year.

For example it will show only dates within 2017, or dates within 2016.

Thank you and Kind Regards

*Immarcqulate. A (Emma Kassy) *

“You miss 100% of the shots you don’t take.”

On Tue, Feb 28, 2017 at 1:31 PM, Abyot Asalefew Gizaw abyot@dhis2.org wrote:

Hi,

Trying to clarify in case there is a misunderstanding in the creation of event in tracker capture

  • events have two types of dates - event date and due date
  • future date is allowed for due date not for event date as the event date is the date where the event has happened
  • the plus icon is to “Add new” while the calendar icon is to “Schedule new”

A problem we have is for those events with period type - like daily, weekly, monthly, yearly… For those without period type, but only date, the system works as expected.

Abyot A. Gizaw.

Senior Engineer, DHIS2

University of Oslo

http://www.dhis2.org

On Tue, Feb 28, 2017 at 11:00 AM, Stanley Kalyati skalyati@gmail.com wrote:

I have the same issue but i have resorted to using the Mobile Tracker Capture instead as it gives an opportunity to backtrack dates.

Unless there is another way round but I find the mobile version ideal in this scenario

On Feb 27, 2017 8:27 PM, “Absolom MURAMIRA” absolom_m@yahoo.com wrote:

Someone please help

On Friday, February 24, 2017 8:01 AM, Absolom MURAMIRA absolom_m@yahoo.com wrote:

Dear Community,

I have a program in Tracker (DHIS v2.26) configured with 2 repeatable program stages. My issue is that when i try to add new events, I am not able to see months/year for 2017. it is only stuck in 2016. Has anyone encountered this before and willing to advise how i can resolve it?

Thank you.

Absolom


Mailing list: https://launchpad.net/~dhis2-u sers

Post to : dhis2-users@lists.launchpad.ne t

Unsubscribe : https://launchpad.net/~dhis2-u sers

More help : https://help.launchpad.net/Lis tHelp


Mailing list: https://launchpad.net/~dhis2-d evs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-d evs

More help : https://help.launchpad.net/Lis tHelp


Mailing list: https://launchpad.net/~dhis2-u sers

Post to : dhis2-users@lists.launchpad.ne t

Unsubscribe : https://launchpad.net/~dhis2-u sers

More help : https://help.launchpad.net/Lis tHelp


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