hackforla / hackforla/knowledgebase

Data: Tool - populate

Đang mở
#52 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
category: populate complexity: small dependency draft feature: table: tool milestone: missing role: back end dev size: 1pt
Ngôn ngữ chính
Python
Star
2
Fork
5
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### 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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Start by comparing phases_data.json with the requested JSON structure, then inspect data/migrations/0004_populate_phase as the stated model. Use source ./start-dev.sh from django_root, log into the kb app, and verify that records appear on the Tool screen; automated tests are explicitly deferred to another issue.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
django, python
Lĩnh vực
database
Loại issue
Tính năng
Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
50/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.