Add seed data for users, diary entries and iD#3030
Add seed data for users, diary entries and iD#3030tordans wants to merge 1 commit intoopenstreetmap:masterfrom
Conversation
This will bootstrap a dev database with initial data.
|
What's the purpose of creating random noise though? I might accept a way to create an initial user and the OAuth clients needed for the builtin oauth clients but I don't see any advantage to going beyond that. |
While working on CSS updates and such I noticed I need blogposts and comments by different users that allow me to see long list (for pagination) and different cases of text length and user permission. Instead of logging in as separate users manually to create the content I used those seed. In this spirit this PR is not finished; I would create a separate PR for additional seed data once I need them for other parts of the app. Having the seed create some of each objects in different configurations on a Dev setup sounds like a good and helpful idea to me. Using the seed data is optional, after all. |
|
We should have a way to separate out two concepts:
For the development data, I would like to see this myself! Adding stuff to an empty database is no fun for new developers. But:
I wrote all that, and then I found these posts which probably explain it better than me! |
This will seed a dev database with initial data.
To use this with the WIP Docker setup #2409, run