Pular para o conteúdo principal

Configurações de cookies

Utilizamos cookies para garantir as funcionalidades básicas do site e para melhorar sua experiência on-line. Você pode configurar e aceitar o uso dos cookies, e modificar suas opções de consentimento, a qualquer momento.

Essencial

Preferências

Analítica e estatística

Publicidade

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!

Reportar um problema

Este conteúdo é impróprio?

Motivo:
Carregando comentários ...

Entre com sua conta ou inscreva-se para adicionar seu comentário.

Confirmar

É necessário fazer login

Você pode acessar com uma conta externa

Compartilhar