[Bug 1523838] [NEW] Decimal numbers lost in Event Capture

Public bug reported:

After storing decimal numbers in Event Capture, if you reload the Event
Capture list of Events, the decimal value is lost.

To recreate:
- Create a single event program with a number data element as "display in list".
- Create an event, and save a decimal value in the data element.
- Save and go back.
- Now you should see your event in the list, with the decimal value.
- Reload the page. (The page refers to the page where you see a list of events, and where you select the program/org unit)
- Now you will see the decimal number is lost, and only the integer is left.

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

Title:
  Decimal numbers lost in Event Capture

Status in DHIS:
  New

Bug description:
  After storing decimal numbers in Event Capture, if you reload the
  Event Capture list of Events, the decimal value is lost.

  To recreate:
  - Create a single event program with a number data element as "display in list".
  - Create an event, and save a decimal value in the data element.
  - Save and go back.
  - Now you should see your event in the list, with the decimal value.
  - Reload the page. (The page refers to the page where you see a list of events, and where you select the program/org unit)
  - Now you will see the decimal number is lost, and only the integer is left.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1523838/+subscriptions

Same problem in Tracker Capture, both for attributes and data elements.
- The decimals are missing through the API, but not sure if they disappear during storage or retrieval.

···

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

Title:
  Decimal numbers lost in Event Capture

Status in DHIS:
  New

Bug description:
  After storing decimal numbers in Event Capture, if you reload the
  Event Capture list of Events, the decimal value is lost.

  To recreate:
  - Create a single event program with a number data element as "display in list".
  - Create an event, and save a decimal value in the data element.
  - Save and go back.
  - Now you should see your event in the list, with the decimal value.
  - Reload the page. (The page refers to the page where you see a list of events, and where you select the program/org unit)
  - Now you will see the decimal number is lost, and only the integer is left.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1523838/+subscriptions

** Changed in: dhis2
     Assignee: (unassigned) => Morten Olav Hansen (mortenoh)

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

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

···

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

Title:
  Decimal numbers lost in Event Capture

Status in DHIS:
  New

Bug description:
  After storing decimal numbers in Event Capture, if you reload the
  Event Capture list of Events, the decimal value is lost.

  To recreate:
  - Create a single event program with a number data element as "display in list".
  - Create an event, and save a decimal value in the data element.
  - Save and go back.
  - Now you should see your event in the list, with the decimal value.
  - Reload the page. (The page refers to the page where you see a list of events, and where you select the program/org unit)
  - Now you will see the decimal number is lost, and only the integer is left.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1523838/+subscriptions

I'm not able to reproduce this in TC. Could you please provide more
info, saving/loading of event with data element of decimal type is no
issue.

This is also fixed in EC.

That said, these are app issues, not web-api issues. The web-api don't
care about decimals points etc, it just take the data value string and
validates it against the data element value type, if it is OK, it will
just store the value.

···

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

Title:
  Decimal numbers lost in Event Capture

Status in DHIS:
  New

Bug description:
  After storing decimal numbers in Event Capture, if you reload the
  Event Capture list of Events, the decimal value is lost.

  To recreate:
  - Create a single event program with a number data element as "display in list".
  - Create an event, and save a decimal value in the data element.
  - Save and go back.
  - Now you should see your event in the list, with the decimal value.
  - Reload the page. (The page refers to the page where you see a list of events, and where you select the program/org unit)
  - Now you will see the decimal number is lost, and only the integer is left.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1523838/+subscriptions

I just tested on EC and TC on the demo and dev servers, and it seems
that decimal data element values are working.

Decimal numbers in Tracked entity attribute values on the other hand, is
not working.

To reproduce, on the dev server:
- Register a new TEI in the MNCH/PNC program with decimals for weight and height.
- Save and continue
- Click Edit in Profile widget to see the missing decimals

···

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

Title:
  Decimal numbers lost in Event Capture

Status in DHIS:
  New

Bug description:
  After storing decimal numbers in Event Capture, if you reload the
  Event Capture list of Events, the decimal value is lost.

  To recreate:
  - Create a single event program with a number data element as "display in list".
  - Create an event, and save a decimal value in the data element.
  - Save and go back.
  - Now you should see your event in the list, with the decimal value.
  - Reload the page. (The page refers to the page where you see a list of events, and where you select the program/org unit)
  - Now you will see the decimal number is lost, and only the integer is left.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1523838/+subscriptions

Ok, moving bug to Abyot, probably needs same fix as he did for data
values there...

** Changed in: dhis2
     Assignee: Morten Olav Hansen (mortenoh) => Abyot Asalefew Gizaw (abyot)

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

···

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

Title:
  Decimal numbers lost in Event Capture

Status in DHIS:
  Confirmed

Bug description:
  After storing decimal numbers in Event Capture, if you reload the
  Event Capture list of Events, the decimal value is lost.

  To recreate:
  - Create a single event program with a number data element as "display in list".
  - Create an event, and save a decimal value in the data element.
  - Save and go back.
  - Now you should see your event in the list, with the decimal value.
  - Reload the page. (The page refers to the page where you see a list of events, and where you select the program/org unit)
  - Now you will see the decimal number is lost, and only the integer is left.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1523838/+subscriptions

Moved to Markus, as Abyot is away, and I think someone in Kvam fixed the
one for data values.

** Changed in: dhis2
     Assignee: Abyot Asalefew Gizaw (abyot) => Markus Bekken (markus-bekken)

···

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

Title:
  Decimal numbers lost in Event Capture

Status in DHIS:
  Confirmed

Bug description:
  After storing decimal numbers in Event Capture, if you reload the
  Event Capture list of Events, the decimal value is lost.

  To recreate:
  - Create a single event program with a number data element as "display in list".
  - Create an event, and save a decimal value in the data element.
  - Save and go back.
  - Now you should see your event in the list, with the decimal value.
  - Reload the page. (The page refers to the page where you see a list of events, and where you select the program/org unit)
  - Now you will see the decimal number is lost, and only the integer is left.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1523838/+subscriptions

Fixed in trunk - R 21779

** Changed in: dhis2
       Status: Confirmed => 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/1523838

Title:
  Decimal numbers lost in Event Capture

Status in DHIS:
  Fix Committed

Bug description:
  After storing decimal numbers in Event Capture, if you reload the
  Event Capture list of Events, the decimal value is lost.

  To recreate:
  - Create a single event program with a number data element as "display in list".
  - Create an event, and save a decimal value in the data element.
  - Save and go back.
  - Now you should see your event in the list, with the decimal value.
  - Reload the page. (The page refers to the page where you see a list of events, and where you select the program/org unit)
  - Now you will see the decimal number is lost, and only the integer is left.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1523838/+subscriptions

** Changed in: dhis2
       Status: Fix Committed => Fix Released

···

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

Title:
  Decimal numbers lost in Event Capture

Status in DHIS:
  Fix Released

Bug description:
  After storing decimal numbers in Event Capture, if you reload the
  Event Capture list of Events, the decimal value is lost.

  To recreate:
  - Create a single event program with a number data element as "display in list".
  - Create an event, and save a decimal value in the data element.
  - Save and go back.
  - Now you should see your event in the list, with the decimal value.
  - Reload the page. (The page refers to the page where you see a list of events, and where you select the program/org unit)
  - Now you will see the decimal number is lost, and only the integer is left.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1523838/+subscriptions