[Bug 1537107] [NEW] 2.22 - events with audit history can not be deleted

Public bug reported:

Events with an audit history cannot be deleted, trying to do so (over
API or with EC) leads to an exception.

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

Title:
  2.22 - events with audit history can not be deleted

Status in DHIS:
  New

Bug description:
  Events with an audit history cannot be deleted, trying to do so (over
  API or with EC) leads to an exception.

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

Ths is solved temporarily in Tracker Capture by giving an informative
error message to the user that tries to delete an event with an audit
history. The ultimate plan is to make the event-delete just being a
soft-delete that keeps the event history, but until then we should make
an error message that explains what went wrong in the save. You can look
at the tracker implementation for the same.

** Changed in: dhis2
     Assignee: (unassigned) => Jiju K Jose (jijukjose)

···

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

Title:
  2.22 - events with audit history can not be deleted

Status in DHIS:
  New

Bug description:
  Events with an audit history cannot be deleted, trying to do so (over
  API or with EC) leads to an exception.

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

In Tracker capture when I try to delete an event with audit history, the server returns
error = Object {data: "", status: 500, config: Object, statusText: "Server Error"} as expected and the print as part of the temporary fix is displayed but in Event capture when I try to delete an event with audit history the client gets "Undefined data" instead of error since there is an exception in the server.

···

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

Title:
  2.22 - events with audit history can not be deleted

Status in DHIS:
  New

Bug description:
  Events with an audit history cannot be deleted, trying to do so (over
  API or with EC) leads to an exception.

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

The exception in the back end is fixed and the handling of the error
message is completed in the removeEvent function in the controller.
There was a bug in the DHIS2EventFactory.delete function which is also
fixed in commit 21823.

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

Title:
  2.22 - events with audit history can not be deleted

Status in DHIS:
  Fix Committed

Bug description:
  Events with an audit history cannot be deleted, trying to do so (over
  API or with EC) leads to an exception.

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