mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-11 01:12:41 +01:00
49570cb1c4
Summary: Fixes an issue where mentioning an event name (like `E999`) in a revision summary (and probably elsewhere) would produce an error like this: ``` 2015/06/08 17:30:22 [error] 27702#0: *307450 FastCGI sent in stderr: "PHP message: [2015-06-08 17:30:22] EXCEPTION: (Exception) Transaction ("PHID-XACT-CEVT-zglgzy36aote5ja", of type "core:edge") requires a handle ("PHID-DREV-4m6vorimvg4bm3ltskca") that it did not load. at [<phabricator>/src/applications/transactions/storage/PhabricatorApplicationTransaction.php:285] PHP message: arcanist(head=master, ref.master=8c589f1f759f), phabricator(head=master, ref.master=b4de79741ceb), phutil(head=master, ref.master=4a0e1b47a584) PHP message: #0 <#2> PhabricatorApplicationTransaction::getHandle(string) called at [<phabricator>/src/applications/transactions/storage/PhabricatorApplicationTransaction.php:474] PHP message: #1 <#2> PhabricatorApplicationTransaction::shouldHide() called at [<phabricator>/src/applications/calendar/storage/PhabricatorCalendarEventTransaction.php:82] PHP message: #2 <#2> PhabricatorCalendarEventTransaction::shouldHide() called at [<phutil>/src/utils/utils.php:428] PHP message: #3 <#2> mfilter(array, string, boolean) called at [<phabricator>/src/applications/calendar/editor/PhabricatorCalendarEventEditor.php:350] PHP message: #4 <#2> PhabricatorCalendarEventEditor::shouldSendMail(PhabricatorCalendarEvent, array) called at [<phabricator>/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php:990] PHP message: #5 <#2> PhabricatorApplicationTransactionEditor::applyTransactions(PhabricatorCalendarEvent, array) called at [<phabricator>/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php:2937] PHP message: #6 <#2> PhabricatorApplicationTransactionEditor::applyInverseEdgeTransactions(DifferentialRevision, DifferentialTransaction, integer) called at [<phabricator>/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php:602] ... ``` This is similar to rP98aae51c / rP0fc0af64, but for Calendar. (Likely, I copy/pasted the Editor from Maniphest a while ago.) We don't need to do this filtering here because we do it later before sending mail. Additionally, because some transactions may hide or show depending on the viewer, it's strictly incorrect to do it here. Test Plan: - Created a revision which mentioned a bunch of events. - Grepped for other implementations of `shouldSendMail()` and verified that none try to perform similar filtering. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley, lpriestley Differential Revision: https://secure.phabricator.com/D13210 |
||
---|---|---|
.. | ||
almanac | ||
aphlict | ||
arcanist/conduit | ||
audit | ||
auth | ||
base | ||
cache | ||
calendar | ||
celerity | ||
chatlog | ||
conduit | ||
config | ||
conpherence | ||
console | ||
countdown | ||
daemon | ||
dashboard | ||
differential | ||
diffusion | ||
diviner | ||
doorkeeper | ||
draft/storage | ||
drydock | ||
fact | ||
feed | ||
files | ||
flag | ||
fund | ||
harbormaster | ||
help | ||
herald | ||
home | ||
legalpad | ||
lipsum | ||
macro | ||
mailinglists/storage | ||
maniphest | ||
meta | ||
metamta | ||
multimeter | ||
notification | ||
nuance | ||
oauthserver | ||
owners | ||
passphrase | ||
paste | ||
people | ||
phame | ||
phid | ||
phlux | ||
pholio | ||
phortune | ||
phpast | ||
phragment | ||
phrequent | ||
phriction | ||
policy | ||
ponder | ||
project | ||
releeph | ||
remarkup/conduit | ||
repository | ||
search | ||
settings | ||
slowvote | ||
spaces | ||
subscriptions | ||
support/application | ||
system | ||
tokens | ||
transactions | ||
typeahead | ||
uiexample | ||
xhprof |