Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

PatrickWaweru
Copy link
Contributor

Added the reason why sample is likely to fail if added to manifest

Copy link
Contributor

@ojwanganto ojwanganto left a 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"));
Copy link
Contributor

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

Copy link
Contributor Author

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"));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants