-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add mass pruneable blocks #137
Conversation
PR Description updated to latest commit (4052eba) |
PR Review
Code feedback:
✨ Review tool usage guide:Overview:
With a configuration file, use the following template:
See the review usage page for a comprehensive guide on using this tool. |
PR Code Suggestions
✨ Improve tool usage guide:Overview:
With a configuration file, use the following template:
See the improve usage page for a more comprehensive guide on using this tool. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work :) Most of the PR suggestions that were generated all look sensible to me, maybe get them in too 👍🏻
This suggestion was not implemented, because of how the trait was coded |
Type
enhancement, tests
Description
prune_blocks
to specify the number of days to retain block data before pruning.Changes walkthrough
enjin-platform.php
Add Configuration for Pruning Blocks
config/enjin-platform.php
BlockFactory.php
Update Block Number Generation in Factory
database/factories/BlockFactory.php
without specifying the upper limit.
Block.php
Implement MassPrunable in Block Model
src/Models/Laravel/Block.php
logic based on the configuration.
PruneTest.php
Add Tests for Pruning Expired Blocks
tests/Feature/Commands/PruneTest.php