hackforla / hackforla/knowledgebase

Data: Tool - populate

Offen
#52 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
category: populate complexity: small dependency draft feature: table: tool milestone: missing role: back end dev size: 1pt
Vorherrschende Sprache
Python
Sterne
2
Forks
5
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### Action Items
- [x] Create a json file with id and name for the tool. See phases_data.json as an example
- [x] Create a script named 000[x]_phase_seed.py in data/migrations folder, where x is one more than the highest sequenced script in the folder
- [x] Using 0004_populate_phase as a model
- [x] create a run function that calls update_model_from_json with the model class and file location
- [x] create the migration class that calls run
- [x] update dependencies to specify the previous script

### How to Manually Verify
- Run `source ./start-dev.sh` from django_root directory
- Log into kb app
- Navigate to Tool screen
- Verify records appear

### Automated Tests
This will be done as part of a different issue.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

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