anitab-org / anitab-org/mentorship-backend

Setup an initial database for local development

Abierto
#275 3 comentarios 0 reacciones 1 asignado Reclamado por @bartekpacia Ver en GitHub
Category: Coding Type: Enhancement
Lenguaje dominante
Python
Estrellas
200
Forks
449
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

**Is your feature request related to a problem?**

This feature is to ease a developer's life when running the app for simple testing, or to test a specific feature.

I want to have a way to setup an initial database, when I run the project. If I run the project I don't want to have always to setup the entire dataset, I want the option to use an existing database.

Example: I want to clone run the project with the option to use dataset 1 with 3 users, 2 of them in a mentorship relation with a couple of tasks. Once this is loaded, when I run the project, I can test the local app knowing I have these already created.

**Describe the solution you'd like**

Not sure about the solution to be honest. Open for suggestions!

**Describe alternatives you've considered**

Broadly speaking... have a local environment variable to say if a data is to be loaded, and have a part of the code, such as feature toggle, that if that is set a specific dataset is loaded.

Be aware that, for user emails, this can be configured at anytime. Imagining i'm using temporary emails, not everyday I will have the same emails to work with, so emails should not be "set in stone".

**Additional context**

Maybe this can be solved in a way with #78 ... I'm not sure, but its worth mentioning.

_If anyone needs more clarification I'd be more than happy to help with this_

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.