Skip to content

Releases: migratetoflarum/fake-data

1.4.0

05 Dec 22:41
45a06cb
Compare
Choose a tag to compare
  • Added reply seed button to blog article pages if v17development/flarum-blog is enabled.

Flarum 1.3 compatibility

11 Jul 00:49
a898e15
Compare
Choose a tag to compare

Added compatibility with Flarum 1.3 new post numbering logic.

This release as well as future releases will only work on Flarum 1.3+

Bugfix for large imports

04 Jul 04:17
2dbd60f
Compare
Choose a tag to compare

This release fixes a PDO error during the meta update when trying to seed more than 65k records at once

Improved performance and show output on the web

09 May 00:18
df3c248
Compare
Choose a tag to compare

Performance improvements

Previously inserting tens or hundred of thousands of discussions and posts was simply not possible due to taking hours. Now it takes only tens of seconds to a few minutes.

  • Inserts in batch of 100 for users and posts: currently not possible for discussions but massively improves users and posts already.
  • Randomization in memory instead of using database, brings massive improvements to non-bulk mode but also speeds up discussion selection for post inserts in bulk mode.
  • Code now wrapped in a database transaction: speeds up operations globally (added optional --no-transaction CLI flag to disable).

Other changes

  • Seeder output now visible from web interface as well (previously command-line only). Only updates once finished!
  • Execution time for each step added to output.
  • Hide reply seeder button for non-admins.
  • No longer pick private discussions as part of random pool when no discussion count was provided.
  • Fix discussion meta sometimes not updated when using command line.

This update requires Flarum 1.2+ due to the upgrade to Webpack 5.

Command line and more meta update

27 Sep 22:10
27ff239
Compare
Choose a tag to compare
  • Add ability to seed from command line (see README for documentation)
  • Support both array and comma-separated for array parameters (REST API)
  • Update tag meta (last discussion and discussion count). Only for newly seeded discussions, not seeded replies
  • Update discussion first post relationship (previously wasn't set on seeded discussions)

Move to Faker Fork

19 May 21:03
56a64ed
Compare
Choose a tag to compare

The original Faker library used by this extension is no longer supported and isn't compatible with PHP 8.

This new version switches to FakerPHP/Faker which supports PHP 8. There is no change in how the extension works.

Ready for Flarum stable

19 May 20:45
e8d644c
Compare
Choose a tag to compare

Adds compatibility with the upcoming Flarum 1.0 release.

Tag and date options

18 Mar 17:58
8c8bca7
Compare
Choose a tag to compare
  • Added tag selection for new discussions
  • Added configurable date seed (start and interval)
  • Fix user meta not updated with new discussion and comment count

Date interval now defaults to 1 seconds, so the content will end up slightly in the future. To seed with the previous behavior, set interval to zero.

Known issue: Tag meta is not updated with new discussion count and latest discussion