ProjectTech4DevAI / ProjectTech4DevAI/kaapi-backend

Seeder: Command for scaled seeding

Offen
#915 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
Python
Sterne
18
Forks
10
Ø Merge
2 T. 20 Std.
Gemergte PRs (30 T.)
14

Beschreibung

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 500 to 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

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Lies zunächst das vorhandene Modul app.seed_data.seed_data und führe uv run python -m app.seed_data.seed_data aus, um den aktuellen Seed-Ablauf zu verstehen. Verfolge, wie Datensätze erstellt werden, und ermittle, wo ein Scale-Argument verfügbar gemacht werden kann. Als erledigt gilt die Aufgabe, wenn ein Befehl wie seed scale 500 einen größeren lokalen Datensatz erstellt, der für Backend- und Frontend-Tests geeignet ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
backend, cli, database
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
48/100

Neue Issues direkt in Ihr Postfach

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