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

Fix Validators to compare by uuid when checking for duplicates

    XMLWordPrintable

    Details

    • Complexity:
      Low

      Description

      There is a couple of validators that check for duplicates by looking a for a match by name and then compares the id of the object being validated with that of the possible existing duplicate to be to skip past the object that is being validated. This code needs to do the comparison on uuids instead of ids.

      Known validators with this issue:
      ConceptValidator, ConceptMapTypeValidator, ConceptReferenceTermValidator

      Extra credit:
      Look at other validators and find if they need to be fixed too, by convention validators reside in the org.openmrs.validator package

        Attachments

          Activity

            People

            Assignee:
            k.joseph Kaweesi Joseph
            Reporter:
            wyclif Wyclif Luyima
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2 hours
                2h
                Remaining:
                Remaining Estimate - 2 hours
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified