distributeaid / toolbox

DistributeAid Toolbox
http://distributeaid.org
GNU Affero General Public License v3.0
3 stars 1 forks source link

Database seeds #17

Open pedro-gutierrez opened 4 years ago

pedro-gutierrez commented 4 years ago

Is your feature request related to a problem? Please describe.

We currently don't have a high level way to seed databases with groups, or taxonomy data.

Describe the solution you'd like

A seed system that consumes a GraphQL seed file. Should be runnable using a mix command. Should be idempotent and not return an error code when run repeatedly.

Describe alternatives you've considered

We had a seed script at development/seed-test-group.sh. This script is written in shell and runs psql to add a single row to the groups table.

How we may solve this

Additional context