Google Summer of Code
#GSoC Empowering Tomorrow's Coders: Igniting, Innovating, and Inspiring Mauticians of the Future with Google Summer of Code.
Keep up to date with the latest news from our Summer of Code students via this blog.
Welcome to week 8
I started working on the tests
First I created a simple code that tests the sample JSON data like it only inserts the data into a mocked database! Mock Database helps to identify the proper structure that data has or not without connecting with the actual database.
I'm able to store the sample JSON data successfully.
Then I tried the testing with the actual function of the main script which is fetching the data from Packagist and storing it in Supabase
First I made a code for each function test and once it is completed I switch to another!
some code is prepared and ready to discus...
Read more
Welcome to week 7
After setting the cron job and things we are coming to week 7th.
I checked the results of the cron job and noted it's showing the things in the log.
This week was too busy and exciting because there is MautiCon 2024! And I'm a speaker in the conference!
I'm presenting about my GSoC project for which I made the ppt. My mentors helped me to improve my presentation. I'm prepared for my presentation.
I made myself known to the community! I talk with them about what project they are working on and how the community contributes to mautic growth. I had the opportunity to meet new people...
Read more
Welcome to week 6
This week we started discussing the cron job!
We are planning that we don't want to run the script every time.
By setting the cron job, our function is automatically invoked at a specific time
So I started exploring the cron job platform but my mentors suggested to me that supabase has its own scheduling option. So I started exploring how to use the supabase for cron jobs.
I found some initial steps :
So first we have to deploy our function and we can later use that deployed function to set the cron job.
So I used the supabase CLI to deploy the function. To deploy the function you ...
Read more
Welcome to week 5
On week 5 I tried the upsert and we noticed that upsert is useful to avoid the data duplication.
The data is inserted and when I run the script again, I check to make sure that the data is not repeated or duplicated.
We have to give the onConflict in the script on that condition where upsert performs!
Basically, what we right in onConflict that is followed as unique
Then I began conversing with my mentors about endpoints! I already created some end points and I'm testing those endpoints and others but then we found out that supabase has a built-in rest API
The supabase auto generat...
Read more