Uploaded image for project: 'Legacy UI Module'
  1. Legacy UI Module
  2. LUI-135

Deleting complex obs should not lead to loss of data

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Should
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: 1.3.4
    • Complexity:
      Low

      Description

      When a complex obs is deleted or voided, the file is deleted from the file system. On unvoiding, you get a server side FileNotFoundException because the file no longer exists.

      For data that is stored in the database, we mark it with the voided flag on deleting. For data stored on the file system, deleting could move the file to some sort of voided complex obs folder, from which it can be restored on un voiding the obs.

      This problem was discovered while working on ---LUI-134---

      You could take a look at: ObsServiceImpl.voidExistingObs()

      The legacyui module's code can be found at: https://github.com/openmrs/openmrs-module-legacyui

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                odorajonathan JONATHAN AJAL ODORA
                Reporter:
                dkayiwa Daniel Kayiwa
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - 3 weeks
                    3w
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 3 weeks
                    3w