Week 04: GSoC’23 with OpenMRS
Hello Everyone,
Welcome back to my blog, where I share all the progress and updates regarding my GSoC project. The week four has been concluded and I am excited to share my progress report with you. This week has been incredibly fulfilling, as it was filled with valuable learnings and focused work. Let’s delve into the details and highlights of this eventful week.
Updates For the Week:
In the Previous week, I was working on fixing the existing tests of patient-management repo and has moved a draft PR #709 to “ready to review”. On this PR all the tests was passing but we were getting some console errors in the test output. Dennis suggested to remove them and there were few suggestion from my mentors which I fixed and pushed the code. This PR is still in review and will be merged in few days.
As you all know I was working on improving the skipped tests of the patient-management repo. I found a new component i.e. identifier-input component which has the skipped tests. I was able to fix few of the tests but the functionalities are not completely covered and need to write few more tests to cover those. I am facing blocker on the tests, mainly the issue with rendered ui, Initially I thought it was due to missing mocks of the UserHasAccess component and started to find ways for mocking this but Ian suggested me to mock as less as possible and we do not need to mock the whole component for that only mocking the getCurrentUser will do the job. I followed that it was done after mocking some other stuffs. But still the ui is not there and I am little confused on this and will discuss more on the coffee break.
As this was the only component that has the skipped tests so I went ahead with writing the new tests and created an Epic for this. I also started working on one of the issue and wrote new tests but one of the tests is failing due to the missing mock data. I am unable to get the data yet as the core v5 migration is going on and localhost is not working due to the CORS issue. This was all for the updates from the past week. Let’s move to the goals for the next week.
Goals for the Next week:
In this week I will be writing new tests for the uncovered components of esm-patient-registration-app for patient-management repo.
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 to everyone, and have a fantastic week ahead!