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

RAD-307 View report templates from list #407

Merged
merged 1 commit into from
Aug 1, 2016
Merged

Conversation

ivange94
Copy link
Contributor

@ivange94 ivange94 commented Aug 1, 2016

RAD-307 View report templates from list

Description

  • Modified the report templates tab. Made the dashboard expandable. Added ability to view template structure

Related Issue

see https://issues.openmrs.org/browse/RAD-307

Checklist:

  • My pull request only contains one single commit.
  • My pull request is based on the latest master branch
    git pull --rebase upstream master.
  • I ran mvn clean package right before creating this pull request and
    added all formatting changes to my commit.
  • My code follows the code style of this project.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@mention-bot
Copy link

@ivange94, thanks for your PR! By analyzing the annotation information on this pull request, we identified @Schwasrz94 to be a potential reviewer

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 93.289% when pulling 986da1e on ivange94:RAD-307 into b5dd79c on openmrs:master.

"Error occured while dispaying template => " + exception.getMessage());
return new ModelAndView("/module/radiology/radiologyDashboardForm");
}
catch (IllegalArgumentException exception) {
Copy link
Member

@teleivo teleivo Aug 1, 2016

Choose a reason for hiding this comment

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

@ivange94 I dont think we should catch that.

you need to make sure that this

mrrtReportTemplate = mrrtReportTemplateService.getMrrtReportTemplateByUuid(templateId);

so add this before the try block

mrrtReportTemplate = mrrtReportTemplateService.getMrrtReportTemplateByUuid(templateId);

if (mrrtReportTemplate == null) {
    throw new IllegalArgumentException("MrrtReportTemplate not found. templateId '" + templateId + "' unknown.");
}

otherwise you mask the actual problem.

Copy link
Member

@teleivo teleivo Aug 1, 2016

Choose a reason for hiding this comment

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

@ivange94 of course we need an ATshould and test for that; but you can then just rewrite the test you already wrote for IllegalArgumentException :)

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 93.289% when pulling 23f0e43 on ivange94:RAD-307 into 088774c on openmrs:master.

@teleivo teleivo merged commit a378c8c into openmrs:master Aug 1, 2016
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.

4 participants