Home >Backend Development >Python Tutorial >Progress on Automatic Feedback Loop

Progress on Automatic Feedback Loop

Patricia Arquette
Patricia ArquetteOriginal
2024-11-30 04:29:17266browse

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 in mongoClient.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

Progress on Automatic Feedback Loop

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.

The above is the detailed content of Progress on Automatic Feedback Loop. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn