mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-13 10:22:42 +01:00
181bfffaa1
Summary: A few users have hit cases where Herald transcripts of large commits exceed the MySQL packet limit, because one of the fields in the transcript is an enomrous textual diff. There's no value in saving these huge amounts of data. Transcripts are useful for understanding the action of Herald rules, but can be reconstructed later. Instead of saving all of the data, limit each field to 4KB of data. For strings, we just truncate at 4KB. For arrays, we truncate after 4KB of values. Test Plan: Ran unit tests. Artificially decreased limit and ran transcripts, saw them truncate properly. Reviewers: btrahan Reviewed By: btrahan CC: frgtn, aran Differential Revision: https://secure.phabricator.com/D7783 |
||
---|---|---|
.. | ||
__tests__ | ||
transcript | ||
HeraldAction.php | ||
HeraldCondition.php | ||
HeraldDAO.php | ||
HeraldRule.php | ||
HeraldRuleEdit.php | ||
HeraldRuleTransaction.php | ||
HeraldRuleTransactionComment.php |