Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-5741

Out of date Lucene index causes pt search failure if pt deleted

    XMLWordPrintable

Details

    • Bug
    • Status: Ready for Work
    • Should
    • Resolution: Unresolved
    • None
    • None
    • None
    • Low

    Description

      If a patient is deleted and Lucene isn't reindexed, patientSearchWidget will crash, leaving a spinning wheel on the screen and an error in the dev console.

      This happens because the API returns a result for that deleted person (presumably with the data from Lucene), but when it doesn't find database entries for that person it simply puts in `null`. An error is thrown when the frontend attempts to reference a property of that null object.

      Instead, the server should exclude the search result and log an informative WARNING (including patient ID and a suggestion to reindex Lucene).

      Gliffy Diagrams

        Attachments

          Issue Links

            Activity

              People

                aryangypta05 Aryan gupta
                bistenes Brandon Istenes
                Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                  Created:
                  Updated: