Page MenuHomePhabricator

When creating a File storage object for a Paste, try to give it the same name as the Paste
ClosedPublic

Authored by epriestley on May 1 2020, 1:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 23, 1:36 AM
Unknown Object (File)
Mon, Nov 18, 7:39 PM
Unknown Object (File)
Thu, Nov 14, 10:05 PM
Unknown Object (File)
Wed, Nov 13, 6:11 AM
Unknown Object (File)
Mon, Nov 11, 5:37 AM
Unknown Object (File)
Thu, Nov 7, 2:35 PM
Unknown Object (File)
Thu, Nov 7, 3:26 AM
Unknown Object (File)
Fri, Nov 1, 4:56 AM
Subscribers
None

Details

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.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.May 1 2020, 4:10 PM
This revision was automatically updated to reflect the committed changes.