-
Notifications
You must be signed in to change notification settings - Fork 121
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
GitHub Issue #38: truncate payload #167
GitHub Issue #38: truncate payload #167
Conversation
'environment' => 'tests' | ||
)); | ||
|
||
$strategy = new FramesStrategy($databuilder); |
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.
s/databuilder/dataBuilder/
This looks very good, I'll give it another once over to see if we can get this merged today. |
src/Truncation/FramesStrategy.php
Outdated
class FramesStrategy extends AbstractStrategy | ||
{ | ||
|
||
const FRAMES_OPTIMIZATION_RANGE = 150; |
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.
This probably comes from matching what the Gem does, but I feel like it is really large. Maybe we can make this 75 instead so that we get 150 total frames rather than 300 when we truncate.
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.
👍
Tests pass, but lint doesn't like the long lines in the tests. Should be a simple fix then we can merge this and release 1.1 |
Okay, this is ready for merging |
👍 |
Truncation is ready for review. This was implemented to resemble truncation strategies from the Ruby notifier as close as possible.