* Update fake_data to create test Categories and pass those in to
new tags when created. Does not use find_and_create_by! for new
Tags since that could attempt to create another tag with the same
name if the random Category is different.
Update fake_data to use the newer Faker::Lorem syntax, specifying
the parameter name in .sentences() and .paragraphs().
* Update fake_data script to help troubleshoot flags.
Create users that are admins, as well as moderators.
Flag comments and stories from random users.
Add user karma and invite heirarchy.
* Add more realistic data, such as stories with links and text,
saved stories, user moderation, and hat moderation.
Signed-off-by: Three Planets Software <threeplanetssoftware@users.noreply.github.com>
* Add moderation of stories (merging and deleting) to fake data.
* Add story title edits to moderation fake data.
* Update fake_data to store comments and stories in Arrays, instead of
calling the database. Set default values for the generator method.
* fix merge conflicts
* rubocop
Co-authored-by: Peter Bhat Harkins <pushcx@users.noreply.github.com>
Following error happens when running fake_data task:
> ActiveRecord::RecordInvalid: Validation failed: Story is no longer accepting comments.
The fix is do not create deleted stories with is_deleted: true
immediately, but delete them after adding comments.