Releases: migratetoflarum/fake-data
1.4.0
Flarum 1.3 compatibility
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
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
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
- 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
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
Adds compatibility with the upcoming Flarum 1.0 release.
Tag and date options
- 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