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

Program validator is inefficient when checking for duplicates

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Could
    • Resolution: Fixed
    • Affects Version/s: OpenMRS 1.9.3
    • Fix Version/s: Platform 2.0.0
    • Component/s: None
    • Labels:
    • Complexity:
      Low

      Description

      To check for duplicates, it gets all of them and iterates instead of doing a query.

      See ProgramValidator.getName

      Should use ProgramWorkflowService.getProgramByName instead.

        Attachments

          Activity

            People

            Assignee:
            gwasilwa Geoffrey Wasilwa
            Reporter:
            lluismf Lluis Martinez
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 hour Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 30 minutes
                3h 30m