-
Notifications
You must be signed in to change notification settings - Fork 505
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RESTWS-707: Fix bug in encounterRole endpoint #332
Conversation
@larrystone did you take a look at the ticket description? It has the exact classes and changes that you need. |
@@ -12,4 +12,6 @@ | |||
public class RestTestConstants1_11 { | |||
|
|||
public static final String DRUG_UUID = "05ec820a-d297-44e3-be6e-698531d9dd3f"; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this used anywhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it's been used in the test files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you point me to the exact line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import org.springframework.mock.web.MockHttpServletRequest; | ||
import org.springframework.web.bind.annotation.RequestMethod; | ||
|
||
public class EncounterRoleController1_11 extends MainResourceControllerTest { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you update this class name to be like the one i put in the ticket description?
36fe583
to
41b70a6
Compare
@@ -51,8 +51,6 @@ | |||
|
|||
public static final String CONCEPT_UUID = "c607c80f-1ea9-4da3-bb88-6276ce8868dd"; | |||
|
|||
public final static String ENCOUNTER_ROLE_UUID = "a0b03050-c99b-11e0-9572-0800200c9a66"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you remove this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was being duplicated, I already have it in the RestTestConstans1_11.java
file
Did you take a look at the travis failure? |
Just leave the auto modified files. |
I will look into it. Thanks @dkayiwa |
8667f4e
to
a3006a2
Compare
@dkayiwa The tests are now passing but I noticed coverage decreased even though the file I created had 100% coverage. Please is there anything I should do about this? |
8c2746a
to
60b22c7
Compare
Fix bug with
encounterRole
endpoint causing empty set[ ]
to be returned when a query paramter in provider in API calle.g
v1/encounterRole?q=unknown
Issue: RESTWS-707