Completing the OCL Subscription Component — GSoC 2022 Week 2
It’s the second week of Google Summer of Code 2022, and I continued to work on the Subscription Component of the OCL Subscription Module. Last week I almost completed the UI of that component, and the remaining work was fixing some bugs and and minor issues. This week, with the help of my mentors, I was able to fix those issues and complete the component.
One of the main issues I had was related to SWR. SWR is a React Hooks library used for data fetching. With the mutate
function provided by SWR, it is possible to update the local data in the application programmatically, while revalidating and finally replace it with the latest data. Using that technology, the component was upgraded to make the changes feel faster in user’s perspective.
After completing the component, I sent the Pull request and it was reviewed by my mentors.
This is a video preview of the subscription component I created.
However, I had missed one thing while developing this component. That is writing tests for the component. Therefore, in the latter part of the week, I started developing the test cases of the module. But I couldn't proceed with it due to some errors with the test configuration. So next week, I hope to fix that and write the tests.
Meanwhile, I started planning the next task that is creating the Import component. There I had some trouble figuring out how the authentication token works when triggering an import. So I initiated a thread to request the answers for the doubts I had.
That’s how the second week went. Follow my OMRS Talk thread for more updates. See you next week!