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
F15470330: D21197.id50490.diff
Fri, Apr 4, 9:35 PM
F15460382: D21197.id50490.diff
Mon, Mar 31, 10:27 PM
F15452604: D21197.id.diff
Sat, Mar 29, 6:16 AM
F15449936: D21197.diff
Fri, Mar 28, 1:00 PM
F15445037: D21197.id50490.diff
Thu, Mar 27, 12:20 PM
F15428447: D21197.diff
Sun, Mar 23, 8:24 PM
F15417451: D21197.id50490.diff
Thu, Mar 20, 5:03 PM
F15410959: D21197.diff
Wed, Mar 19, 8:44 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
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.