ProjectTech4DevAI / ProjectTech4DevAI/kaapi-backend
Seeder: Command for scaled seeding
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 18
- Fork
- 10
- Merge medio
- 2g 20h
- PR unite (30g)
- 14
Descrizione
Is your feature request related to a problem?
As the platform expands with more features and tables, we need to continuously update the seeder files. This leads to challenges in testing new features and changes locally, especially at scale.
we are using this command to seed database with basic data
uv run python -m app.seed_data.seed_data
so we should add another such command to populate the db with larger set of records
Describe the solution you'd like
- Introduce a command like
seed scale 500to populate data with seed data. - Ensure that this functionality supports testing from both backend and frontend perspectives.
- Facilitate local testing when new features are introduced or modifications are made
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia leggendo il modulo esistente app.seed_data.seed_data ed eseguendo uv run python -m app.seed_data.seed_data per comprendere il flusso attuale di seed. Traccia il modo in cui vengono creati i record e determina dove può essere esposto un argomento di scala. Il lavoro è completo quando un comando come seed scale 500 popola un dataset locale più ampio, adatto ai test del backend e del frontend.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- backend, cli, database
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 48/100