Bug fixes and Pull Requests — GSoC 2021 Week 4
Hi everyone! It’s the end of the 4th week of GSoC 2021 and here I’m sharing the experience I gained throughout the week.
During the week I fixed a bug in the OpenMRS Reporting REST module which was causing an error when getting OpenMRS Period Indicator report data.
java.lang.NoSuchMethodException:
Unknown property ‘class’ on class ‘class org.openmrs.module.reporting.dataset.definition.CohortIndicatorDataSetDefinition’ org.apache.commons.beanutils.PropertyUtilsBean.getSimpleProperty(PropertyUtilsBean.java:1270)
The error was due to an update of Apache Commons BeanUtils
.
Version 1.9.4 3 of
Apache Commons BeanUtils
was released primarily as a security bug fix for CVE-2014-0114 to disallow accessing the ‘class’ property.
I tested the solution locally and it was successful. So I sent a pull request by fixing this issue this week and it was merged quickly.
Also, I worked on the Location Mapping UI, and I added the saving/updating functionality for the location mappings. Previously I had tested it locally and I sent the pull request with an optimized structure. It was merged, so now the users can save and update the matching OpenMRS Location — DHIS2 Organization Unit sets using the Location Mapping UI.
Since the bug was fixed, I was able to upgrade the Run Reports UI to work with the Automated Location Mapping Feature. I just created the draft Pull request for it. Need to do few more UI changes before making it Ready for Review.
Also, I created a draft Pull Request with the Upgraded Automation UI which is the UI that allows the users to schedule pushing data to DHIS2.
That's how the week went. Now the location mapping feature is 90% done. Need to complete the rest within the upcoming week. Also, I need to focus on the Role-Based Access Control System.