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
F15417451: D21197.id50490.diff
Thu, Mar 20, 5:03 PM
F15410959: D21197.diff
Wed, Mar 19, 8:44 AM
F15393442: D21197.id50490.diff
Sat, Mar 15, 8:57 PM
F15338886: D21197.id50490.diff
Sun, Mar 9, 1:19 PM
F15332995: D21197.diff
Fri, Mar 7, 10:57 PM
F15326047: D21197.id50481.diff
Fri, Mar 7, 3:11 AM
Unknown Object (File)
Mon, Mar 3, 5:02 PM
Unknown Object (File)
Thu, Feb 20, 2:09 PM
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.