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
F18744329: D21197.id50490.diff
Fri, Oct 3, 2:35 AM
F18734280: D21197.id.diff
Tue, Sep 30, 10:51 PM
F18672749: D21197.diff
Thu, Sep 25, 8:09 AM
F18661648: D21197.id50481.diff
Tue, Sep 23, 7:48 PM
F18660227: D21197.diff
Tue, Sep 23, 5:43 PM
F18431006: D21197.id.diff
Aug 31 2025, 4:42 AM
F18417120: D21197.diff
Aug 30 2025, 11:25 AM
F18374864: D21197.id50481.diff
Aug 28 2025, 9:16 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.