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
F18431006: D21197.id.diff
Sun, Aug 31, 4:42 AM
F18417120: D21197.diff
Sat, Aug 30, 11:25 AM
F18374864: D21197.id50481.diff
Thu, Aug 28, 9:16 AM
F18374769: D21197.id50490.diff
Thu, Aug 28, 9:11 AM
F18370711: D21197.id.diff
Thu, Aug 28, 4:09 AM
F18370664: D21197.id50490.diff
Thu, Aug 28, 4:06 AM
F18370656: D21197.id50481.diff
Thu, Aug 28, 4:05 AM
F18370565: D21197.diff
Thu, Aug 28, 3: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.