Progress on Automatic Feedback Loop
Kannav Sethi
Posted on November 29, 2024
Introduction
This blog will elaborate on my progress towards contributing to the Automatic Feedback Loop on the repo ORAssistant
to know more about these you can have a look at my previous blog
Well this repo has given me a lot of good experiences, I will briefly discuss some of them over here
Integrating the MongoDB function for feedback
Now in the first PR that I made to this repo, I proposed a design for MongoDB,
In this PR, I am integrating the functionality to submit the feedbacks that the user is getting to the MongoDB collections
My approach was as follows
- Check the existing functionality to find how the parameters were being passed to the google sheets function
- Create a prototype function following a similar logic to the Google Sheets function
- Test it out with dummy data from the frontend
- Check if the data is being loaded to the MongoDB collection
Now this approach actually succeeded but with one major issue and a couple of minor issues
The minor issues were as follows :
- My validator schema for the
context
collection was wrong and because of this my data was not being sent to the collection, - The
submit_feedback
function inmongoClient.py
file was returning None in all the cases, thus leading to error messages even when the result was correct
I will talk about the major issue in the next point
Fork Issue
The major issue that I encountered while submitting a PR was that even though all of my new code in the PR was correct, the CI pipeline wasn't accepting any new PRs due to the fact that the secrets from the upstream
repo were not propagating to the fork repo, thus the CI pipeline was failing
Seeing this issue, the maintainer did grant me the read/write permissions to contribute to the repo , and I did so.
I volunteered to fix this issue and correct the pipeline as not correcting it would lead to all of the potential new contributors having read/write access to the repo which isn't good
Conclusion
my journey with the ORAssistant repo has been an insightful learning experience. Integrating the MongoDB function for feedback has not only enhanced my technical skills but also provided valuable insights into database handling and testing. Although the initial implementation was successful, addressing the encountered issues helped me refine my approach. Moving forward, I plan to continue building on this foundation and contribute further to the project, ensuring smoother functionality and better user experience.
Posted on November 29, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.