1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-27 17:22:42 +01:00
phorge-phorge/src/applications/herald
epriestley 814e6d2de9 Add more type checking to transactions queued by Herald
Summary:
See PHI1096. Depends on D20213. An install is reporting a hard-to-reproduce issue where a non-transaction gets queued by Herald somehow. This might be in third-party code.

Sprinkle the relevant parts of the code with `final` and type checking to try to catch the problem before it causes a fatal we can't pull a stack trace out of.

Test Plan: Poked around locally (e.g., edited revisions to cause Herald to trigger), but hard to know if this will do what it's supposed to or not without deploying and seeing if it catches anything.

Reviewers: amckinley

Reviewed By: amckinley

Differential Revision: https://secure.phabricator.com/D20214
2019-02-28 07:10:56 -08:00
..
action Make the default behavior of getApplicationTransactionCommentObject() "return null" instead of "throw" 2019-02-07 14:56:38 -08:00
adapter Add more type checking to transactions queued by Herald 2019-02-28 07:10:56 -08:00
application Document how webhooks work 2018-02-09 13:57:19 -08:00
capability Add skeleton code for webhooks 2018-02-09 13:55:04 -08:00
config Remove "HeraldRepetitionPolicyConfig" and hide storage details inside HeraldRule 2018-01-26 11:03:29 -08:00
contentsource Modularize content sources 2016-03-26 11:59:45 -07:00
controller Replace "URI->setQueryParams()" after initialization with a constructor argument 2019-02-14 11:46:37 -08:00
editor Add a "Rule Detail" link to Herald email 2018-04-30 05:20:12 -07:00
engine Fix a stray qsprintf() in the Herald rules engine when recording rule application to objects 2018-12-12 11:31:36 -08:00
engineextension Fully modularize DestructionEngine 2015-12-21 17:03:44 -08:00
field Add "Content type" and "Rule type" fields to Herald rules for Herald rules 2018-04-25 06:54:48 -07:00
garbagecollector Refine core webhook implementation somewhat 2018-02-09 13:55:55 -08:00
group Make Herald action modularization more aggressive 2015-08-03 14:33:20 -07:00
mail Support Herald rules for Herald rules 2018-04-25 06:47:19 -07:00
management Add a bin/herald test ... for doing test runs via the CLI 2018-11-15 15:48:52 -08:00
phid Trigger all "Firehose" webhooks on all transactional edits 2018-02-09 13:56:34 -08:00
query Add a bin/herald test ... for doing test runs via the CLI 2018-11-15 15:48:52 -08:00
remarkup Rename PhutilRemarkupRule subclasses 2014-08-05 00:55:43 +10:00
state Prepare TransactionEditor for silent transactions via bulk edit 2018-01-19 13:23:38 -08:00
storage In Webhooks, label HTTP response codes as "HTTP Status Code", not "HTTP Error" 2019-02-12 14:41:10 -08:00
typeahead Support querying Herald rules by monogram in typeahead datsources 2018-08-01 17:52:27 -07:00
value Respect token limits for "Assign to" and custom datasource fields in Herald 2018-01-22 11:54:12 -08:00
view In Webhooks, give errors human-readable labels and show reminder text for "Silent Mode" 2018-12-28 00:05:46 -08:00
worker In Webhooks, give errors human-readable labels and show reminder text for "Silent Mode" 2018-12-28 00:05:46 -08:00
xaction Refine core webhook implementation somewhat 2018-02-09 13:55:55 -08:00