Google Summer of Code
#GSoC Empowering Tomorrow's Coders: Igniting, Innovating, and Inspiring Mauticians of the Future with Google Summer of Code.
Week 8 : Mautic Marketplace : Working on unit test
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 discuss with my mentors! and they suggested some changes!
I started working on the suggestions provided by mentors so I can improve the tests
I'm also working on the row level security for the database!
I just simply use the RLS option in the table to secure the database.
Basically, RLS policies improve the security of the table but we have to define them properly. we have to manage the auth policies in RLS helps to manage the access that who can just see the data! who can insert the data and many more! It gives the control over the database!
We also discussed the auth0 with mentors!
Next Week :
From next week I will start working on the readme of setup for the future contributors! I will also look into auth0 with Supabase that we will planning to use for the project!
Anything you want to ask related to my project, please do comment below!
Thanks for your valuable time!
Reportar contingut inapropiat
Aquest contingut no és apropiat?
0 comentaris
Carregant els comentaris ...
Deixa el teu comentari
Inicia la sessió amb el teu compte o registra't per afegir el teu comentari.
Carregant els comentaris ...