1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-28 09:42:41 +01:00
phorge-phorge/src/applications/conpherence
epriestley 06de605992 Extract PHIDs from transactions later, fixing Paste extraction/attachment
Summary:
Fixes T9787. Currently, file PHID extraction logic happens very early, before we normalize/merge/etc the transactions.

In D14390, I changed how the CONTENT transaction works: before, callers would pass in a file PHID. Afterward, they just pass in the content.

Passing in the content is generaly easier and feels more correct, but inadvertenly broke PHID extraction because converting the content into a file PHID now happened after we extracted the PHID. So we'd extract the entire text of the paste as a "file PHID", which wouldn't work.

Instead, extract file PHIDs later. This impacts a couple of other applications (Conpherence, Pholio) which receive an object or have an unusual file-oriented transaction.

Test Plan:
  - Made a new paste, verified the raw file attached to it properly.
  - Made and updated a mock, verified all the files attached properly.
  - Updated a Conpherence room image, verified the files attached properly.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T9787

Differential Revision: https://secure.phabricator.com/D14494
2015-11-17 08:37:07 -08:00
..
__tests__ Various linter fixes 2015-08-11 22:36:55 +10:00
application Conpherence - remove room vs message distinction as far as users are concerned 2015-06-25 13:14:20 -07:00
conduit Various translation improvements 2015-11-03 07:02:46 +11:00
config Add getGroup to ConfigOptions 2015-02-09 13:10:56 -08:00
constants Remove Files Widget from Conpherence 2015-08-20 08:24:42 -07:00
controller Various translation improvements 2015-11-03 07:02:46 +11:00
editor Extract PHIDs from transactions later, fixing Paste extraction/attachment 2015-11-17 08:37:07 -08:00
events Conpherence - remove room vs message distinction as far as users are concerned 2015-06-25 13:14:20 -07:00
mail Add Maniphest Task email creator to CCs 2015-09-09 14:07:07 -07:00
phid Conpherence - remove room vs message distinction as far as users are concerned 2015-06-25 13:14:20 -07:00
policyrule Conpherence - remove room vs message distinction as far as users are concerned 2015-06-25 13:14:20 -07:00
query Fix a broken class reference 2015-07-07 22:53:13 +10:00
remarkup Conpherence - make ZXXX monograms a bit more useful. 2015-04-13 12:45:55 -07:00
search Build a Conpherence thread index 2015-01-06 10:24:30 -08:00
storage Various translation improvements 2015-11-03 07:02:46 +11:00
view Update Conpherence layout for logged out view 2015-08-29 08:29:53 -07:00
ConpherenceTransactionRenderer.php Extend from Phobject 2015-06-15 18:02:27 +10:00