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)
Fri, Dec 6, 3:44 PM
Unknown Object (File)
Thu, Dec 5, 11:18 PM
Unknown Object (File)
Fri, Nov 29, 6:49 AM
Unknown Object (File)
Wed, Nov 27, 7:45 AM
Unknown Object (File)
Nov 23 2024, 1:36 AM
Unknown Object (File)
Nov 18 2024, 7:39 PM
Unknown Object (File)
Nov 14 2024, 10:05 PM
Unknown Object (File)
Nov 13 2024, 6:11 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.