1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-02 03:32:42 +01:00
phorge-phorge/src/applications/paste
epriestley d6928a3c26 When creating a File storage object for a Paste, try to give it the same name as the Paste
Summary:
Ref T13528. Paste data is stored in files, but the files are always named "raw.txt".

Now that Paste provides a hint to use Files for "DocumentEngine" rendering, try to use the same name as the paste instead.

Test Plan:
  - Created a paste named "staggering-insight.ipynb".
  - Clicked "View as Jupyter Notebook" from Paste.
  - Saw a file named "staggering-insight.ipynb", not "raw.txt".
  - Created a paste with no name, saw a file named "raw-paste-data.txt" get created.

Maniphest Tasks: T13528

Differential Revision: https://secure.phabricator.com/D21197
2020-05-01 09:10:31 -07:00
..
application Update Phurl to use EditEngine 2016-09-20 09:38:49 -04:00
capability Paste: Add edit policy 2014-12-31 08:24:57 -08:00
conduit Fix "arc paste" to stop creating pastes with an empty string ("") as the "language" 2018-05-09 13:22:58 -07:00
controller When a Paste has a useful alternative rendering in Files, provide a hint 2020-05-01 09:09:42 -07:00
editor When creating a File storage object for a Paste, try to give it the same name as the Paste 2020-05-01 09:10:31 -07:00
engine Add Ferret support to Paste 2020-04-16 14:10:23 -07:00
engineextension Give "owners.search" a "paths" attachment and a default "owners" value 2015-12-14 11:53:50 -08:00
lipsum Fix Lipsum generators for Differential Revisions and Pastes 2018-07-23 15:05:51 -05:00
mail Remove "metamta.*.subject-prefix" options 2019-01-17 19:18:50 -08:00
phid Mark PhabricatorPHIDType::getPHIDTypeApplicationClass() as abstract 2015-11-03 06:47:12 +11:00
query Add Ferret support to Paste 2020-04-16 14:10:23 -07:00
remarkup Add some missing type hints 2015-05-05 07:33:00 +10:00
snippet Display paste line count alongside snippets 2017-01-26 19:06:23 -05:00
storage Add Ferret support to Paste 2020-04-16 14:10:23 -07:00
typeahead Converted Paste language selection to a typeahead 2016-08-30 00:41:47 +00:00
view Return $this from setter methods 2015-07-06 22:53:43 +10:00
xaction When creating a File storage object for a Paste, try to give it the same name as the Paste 2020-05-01 09:10:31 -07:00