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
F18080800: D21197.id50490.diff
Mon, Aug 4, 10:10 PM
F17825644: D21197.id.diff
Sat, Jul 26, 6:38 AM
F17812645: D21197.diff
Fri, Jul 25, 7:36 PM
Unknown Object (File)
Jun 17 2025, 5:27 AM
Unknown Object (File)
Jun 16 2025, 11:21 AM
Unknown Object (File)
Jun 16 2025, 12:36 AM
Unknown Object (File)
May 20 2025, 9:04 PM
Unknown Object (File)
May 20 2025, 3:51 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
Branch
paste2
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 24296
Build 33469: Run Core Tests
Build 33468: arc lint + arc unit

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.