Skip to main content

Cookie settings

We use cookies to ensure the basic functionalities of the website and to enhance your online experience. You can configure and accept the use of the cookies, and modify your consent options, at any time.

Essential

Preferences

Analytics and statistics

Marketing

Week 8 : Mautic Marketplace : Working on unit test

Avatar: Kgitman Kgitman

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!

Report inappropriate content

Is this content inappropriate?

Reason:

Loading comments ...

Log in or create an account to add your comment.

Confirm

Please log in

You can access with your Mautic Forums account or create an account here.

Share