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
F12828929: D21197.diff
Thu, Mar 28, 11:10 AM
Unknown Object (File)
Feb 9 2024, 12:12 PM
Unknown Object (File)
Feb 2 2024, 12:36 AM
Unknown Object (File)
Jan 10 2024, 4:54 AM
Unknown Object (File)
Jan 9 2024, 8:12 AM
Unknown Object (File)
Jan 5 2024, 1:23 PM
Unknown Object (File)
Dec 30 2023, 10:21 PM
Unknown Object (File)
Dec 25 2023, 6:36 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.