GSoC week 05: Upgrade The Patient Flag Module
I’m now on the 05 th week of my Google Summer of Code (GSoC) journey, and Week 5 was filled with coding, gathering some new knowledge, and facing some unexpected challenges. Here’s a look at what I did this past week.
This week, I focused on aligning the code with the current OpenMRS standards and adding java 17 support to the project. I updated the OpenMRS platform version of the project from 1.9.9 to 2.0.0, ensuring that it aligns with the latest OpenMRS standards. This was a crucial step in keeping the project up-to-date and compatible with current openMRS platform.
Another objective I focused on this week is Adding support for Java 17 to the current module without removing support for Java 8. This dual compatibility ensures that new developers with new Java versions can still contribute to the module seamlessly. As you know OpenMRS is a community driven platform, adding java 17 support can helps to reach more contributors to the organization. To do add java 17 support I added new profile for java 17 in pom.xml
file.
<profile>
<id>java-17</id>
<activation>
<jdk>17</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>17</source>
<target>17</target>
</configuration>
</plugin>
</plugins>
</build>
</profile>
One important thing I learned was how to keep our code working on different versions of Java. Making sure our module runs well on both Java 8 and Java 17 meant I had to understand the differences between these versions and fix any problems that came up. While attempting to run unit tests on java 17, some failed due to the inability to pass the user context properly. After discussing with my mentor, we decided to keep the unit tests as they are for now since they are not executing on Java 8.
Plan for week 06
- Update documentations
- Review the opened PR with the mentor fix the review comment of parallel process.
- Open new PR’s for changes I made past week
- Collect the requirements of mapping openMRS flag data model with FHIR flag resource.
Each week, I feel more confident and excited about my project. I look forward to the challenges and successes in the weeks ahead. Stay tuned for more updates, and thank you for following along with my GSoC journey!
Thank you for the reading, Join me on this tech adventure! Follow my profile to stay updated on the cool world of technology and innovation. Your support means a lot, and I can’t wait to share more exciting stuff with you. Let’s stay connected for more insights and fun discoveries ahead!
Github: https://github.com/ManojLL
LinkedIn : https://www.linkedin.com/in/manoj-lakshan/