1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-21 01:38:48 +02:00
phorge-phorge/src
epriestley 181bfffaa1 Truncate object fields in Herald transcripts
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
2013-12-18 11:59:53 -08:00
..
aphront When stopping on redirect, show a full stack trace 2013-11-21 14:38:29 -08:00
applications Truncate object fields in Herald transcripts 2013-12-18 11:59:53 -08:00
docs Add "r <name>" to jump nav to locate repositories by name 2013-12-05 14:26:38 -08:00
extensions Add src/extensions/ to Phabricator 2013-08-14 15:38:06 -07:00
infrastructure Assign PHIDs to PushLogs 2013-12-17 15:23:23 -08:00
view Implement policies in Phragment 2013-12-13 14:42:12 +11:00
__celerity_resource_map__.php Add Herald support for blocking ref changes 2013-12-17 15:23:55 -08:00
__phutil_library_init__.php Delete license headers from files 2012-11-05 11:16:51 -08:00
__phutil_library_map__.php Truncate object fields in Herald transcripts 2013-12-18 11:59:53 -08:00