forked from okfde/froide-theme
-
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
Description
Objective
To implement support for seeding the database.
Context
Some of us have gotten the UIPA portal running, however it looks a little weird with zero data. For the purposes of development, it is quite helpful to have an initial seeding of data present to allow for all the normal operations of the portal locally.
This capability was present in the previous iteration of the UIPA portal in the reset.sh script.
Tasks
- Initially seed the database with Hawaii's Public Bodies
- Initially seed the database with some sample requests.
Success Criteria
The ability to seed the database is available, for both public bodies and requests.
Related Items
Parent Epic: #50
- Froide's Docs on Importing Public Bodies: https://froide.readthedocs.io/en/latest/importpublicbodies/#prerequisites
- Django's
loaddatacommand: https://docs.djangoproject.com/en/5.0/ref/django-admin/#loaddata - What the
import_csvcommand runs: https://github.com/CodeWithAloha/uipa/blob/main/froide/publicbody/csv_import.py - Previous "fixtures" or models of the publicbody format: https://github.com/CodeWithAloha/uipa/blob/master/uipa_org/fixtures/publicbody.publicbody.json
Open Questions:
- Do we need to update our list of Hawaii's public bodies? How can we get a more recent list now, and how often do we need to update this list?
Metadata
Metadata
Labels
Type
Projects
Status
In Progress