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

Drug Search should behave as it used to before switching to lucene

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Information Provided
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Complexity:
      Low

      Description

      DrugController1_10Test fails when run against platform 2.0 because of the changes on the ticket TRUNK-4441
      However the test passes when i revert those changes in the platform.
      Rafal Korytkowski were these changes simply about switching to lucene or did you also change the expected logic?
      I also commented on the commit for the changes in HibernateConceptDAO, asking why the test dataset was changed. Was it part of what is required to simply change the same search logic to lucene?
      Finally, i also tried to create a failing a unit test in ConceptServiceTest as below:

      @Test
      	public void shouldGetAllDrugsThatMatch() {
      		List<Drug> drugs = conceptService.getDrugs("XXXYYYZZZ");
      		assertEquals(1, drugs.size());
      	}
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            dkayiwa Daniel Kayiwa
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: