Skip to content

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.

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.

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