Bug fixes and Pull Requests — GSoC 2021 Week 4

Piumal Rathnayake
2 min readJul 4, 2021

--

Lines vector created by sentavio — www.freepik.com

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.

Small Preview of 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.

Small Preview of Upgraded Run Reports UI

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.

--

--

Piumal Rathnayake
Piumal Rathnayake

Written by Piumal Rathnayake

I'm a Computer Engineering Undergraduate at University of Peradeniya, Sri Lanka. And I also work as a software engineer at Sustainable Education Foundation.

No responses yet