Page MenuHomePhabricator

Phame - move over post creation and edit to use an editor
ClosedPublic

Authored by btrahan on May 15 2015, 7:36 PM.
Tags
None
Referenced Files
F13085550: D12864.diff
Wed, Apr 24, 11:51 PM
Unknown Object (File)
Tue, Apr 23, 10:19 AM
Unknown Object (File)
Sun, Apr 21, 10:28 AM
Unknown Object (File)
Thu, Apr 11, 8:06 AM
Unknown Object (File)
Mon, Apr 8, 10:46 AM
Unknown Object (File)
Tue, Apr 2, 2:18 PM
Unknown Object (File)
Sun, Mar 31, 5:25 AM
Unknown Object (File)
Mar 10 2024, 2:02 AM
Subscribers

Details

Summary

This adds the bare minimum transaction set for editing posts. Fixes T7626 because now files will be correctly attached to phame posts on subsequent edits. Future work here should be adding transaction types like TYPE_BLOG for when posts are moved between blogs, TYPE_VISIBILITY for when posts are moved to published, etc. Nothing too tricky there but keeping this diff relatively small seems prudent.

Test Plan

made posts successfully. also made errors like no title, no phame title, and duplicate phame title and got correct errors. added a file to a post and verified file has phame post in "attached" tab, which should fix T7626.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

btrahan retitled this revision from to Phame - move over post creation and edit to use an editor.
btrahan updated this object.
btrahan edited the test plan for this revision. (Show Details)
btrahan added a reviewer: epriestley.
src/applications/phame/editor/PhameBlogEditor.php
79–80

I had thought I want Comment transactions when I was doing the blog version of this and noticed I left them in there while doing this work. basically unrelated cleanup.

epriestley edited edge metadata.
This revision is now accepted and ready to land.May 15 2015, 7:46 PM
This revision was automatically updated to reflect the committed changes.