hackforla / hackforla/knowledgebase
Data: Tool - populate
- 主要语言
- Python
- 星标
- 2
- 派生
- 5
- PR 合并指标
- 30 天内没有已合并 PR
描述
### 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.
贡献指南
调研方向
首先将 phases_data.json 与所请求的 JSON 结构进行比较,然后检查 data/migrations/0004_populate_phase,将其作为所述模型。使用 source ./start-dev.sh(从 django_root 目录执行),登录 kb app,并验证记录是否出现在 Tool 页面上;自动化测试明确推迟到另一个 issue。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- django, python
- 领域
- database
- Issue 类型
- 功能
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 50/100