-
Notifications
You must be signed in to change notification settings - Fork 33
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
Added the reason why sample is likely to fail if added to manifest #313
base: master
Are you sure you want to change the base?
Added the reason why sample is likely to fail if added to manifest #313
Conversation
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.
Thanks, @PatrickWaweru. Please address the comments.
@@ -292,7 +292,9 @@ public Set<SimpleObject> getActiveViralLoadOrdersNotInManifest(Integer manifestI | |||
Order o = orderService.getOrder(orderId); | |||
if (o != null) { | |||
SimpleObject ret = new SimpleObject(); | |||
ret.put("hasProblem", checkIfOrderHasAProblem(o, LabManifest.VL_TYPE)); | |||
SimpleObject problems = checkIfOrderHasAProblem(o, LabManifest.VL_TYPE); | |||
ret.put("hasProblem", problems.get("hasProblem")); |
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 we just have one property called validationMessage for the two properties. The frontend can then check if validationMessage is null and displays the message
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.
This is important for backward compatibility with 2.x. Maybe we can remove it after full migration to 3.x.
@@ -333,7 +335,9 @@ public Set<SimpleObject> getActiveEidOrdersNotInManifest(Integer manifestId, Dat | |||
Order o = orderService.getOrder(orderId); | |||
if (o != null) { | |||
SimpleObject ret = new SimpleObject(); | |||
ret.put("hasProblem", checkIfOrderHasAProblem(o, LabManifest.EID_TYPE)); | |||
SimpleObject problems = checkIfOrderHasAProblem(o, LabManifest.EID_TYPE); | |||
ret.put("hasProblem", problems.get("hasProblem")); |
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.
same
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.
This is important for backward compatibility with 2.x. Maybe we can remove it after full migration to 3.x.
Added the reason why sample is likely to fail if added to manifest