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
Unknown Object (File)
Tue, Dec 17, 3:04 PM
Unknown Object (File)
Thu, Nov 28, 12:33 PM
Unknown Object (File)
Thu, Nov 28, 12:33 PM
Unknown Object (File)
Thu, Nov 28, 12:33 PM
Unknown Object (File)
Thu, Nov 28, 12:07 PM
Unknown Object (File)
Wed, Nov 27, 2:56 AM
Unknown Object (File)
Sat, Nov 23, 6:34 AM
Unknown Object (File)
Nov 19 2024, 3:01 PM
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.