anitab-org / anitab-org/mentorship-backend

Setup an initial database for local development

Offen
#275 3 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @bartekpacia Auf GitHub ansehen
Category: Coding Type: Enhancement
Vorherrschende Sprache
Python
Sterne
200
Forks
449
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

**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_

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.