Skip to content

Add more seed data

Tilmann Becker requested to merge add-more-seeds into master

What does this MR do?

Next step towards https://gitlab.com/foodsharing-dev/issues0/issues/285

I merge this now because I figured out the seed API enough to show something. Basic rule is: only need to provide the absolutely necessary data (mostly relations), use Faker for the rest.

At some point in future, it could make sense to split off the Foodsharing.php helper into domain-specific generators.

It's now quite easy to reproduce the "Germany-forum" performance problems by setting the number of generated users to >10000 in SeedCommand.php.

How confident are you it won't break things if deployed?

Very confident

Links to related issues

https://gitlab.com/foodsharing-dev/issues0/issues/285

Checklist

  • added a test, or explain why one is not needed/possible...
  • no unrelated changes
  • asked someone for a code review
  • joined #foodsharing-beta channel at https://slackin.yunity.org
  • added an entry to CHANGELOG.md (description, merge request link, username(s))
Edited by Nick Sellen

Merge request reports