Week 05: GSoC`23 with OpenMRS
Hello Everyone!,
I am delighted to have you back for another progress report on my GSoC journey. With each passing week, I find myself more immersed in the project, growing and learning along the way. Let’s dive into the updates and discoveries from this week’s adventures.
Updates for the Week:
The past week has been a flurry of activity and progress. I have been hard at work, dedicating my time and energy to pushing the project forward. It has been a fulfilling and rewarding experience, marked by significant achievements and valuable insights.
Last week I was facing difficulties with few tests which were failing and had bunch of draft PRs open. I do not had idea how can i fix those failing tests but this week had my brain sorted and I fixed almost all of them except the identifier-input component and that is also because I did not give to time to this one and was busy with writing new tests. Identifier Input had few tests passing and few of the functionalities was left only so thought let’s focus on writing new tests for this week and will come to this one in the next week after getting more understanding and confidence.
Now let’s have some light on why the tests were failing and what was the issue?
The tests were failing due to one simple reason which was the missing mocks. As I am currently writing for the esm-patient-registration-app frontend module, this has two context which are getting used throughout the module and different values and properties are responsible for different components to render or to work properly. I was missing on these values due to lack of familiarity with the code. It is quite challenging to write tests for the code that you haven’t written but it is also a wonderful opportunity to get into the intricacies of the code. This is helping me a lot in improving my react skill and even my javascript skills with obvious improvement in the testing skills.
I fixed all the test and marked all the draft PRs to ready to review and also created bunch of PRs. Below is the list of the PRs:
https://github.com/openmrs/openmrs-esm-patient-management/pull/748
https://github.com/openmrs/openmrs-esm-patient-management/pull/741
https://github.com/openmrs/openmrs-esm-patient-management/pull/747
Last week I had also created the one epic named ‘Improve code coverage for esm-patient-registration-app’ I have added new issues to it and started working on them.
Goals for the Next week:
This weeks Goal will be to complete the test coverage for the esm-patient-registration-app and move to the next frontend module.
Before wrapping up this progress report, I would like to express my heartfelt gratitude to the OpenMRS community, my mentors, and everyone who has supported me thus far. Your encouragement, guidance, and constructive feedback have been instrumental in my progress. I am grateful for the opportunity to be part of this incredible program and work alongside such inspiring individuals.
Thank you all for your support and feedback thus far. Your encouragement keeps me motivated as I embark on this exciting journey. Stay tuned for more updates on my progress, challenges, and lessons learned!
Happy Coding!!