Page MenuHomePhabricator

Update PhamePost to EditEngine
ClosedPublic

Authored by chad on Dec 16 2015, 9:14 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 17, 7:35 PM
Unknown Object (File)
Sat, Dec 14, 3:45 PM
Unknown Object (File)
Thu, Dec 12, 4:55 PM
Unknown Object (File)
Mon, Dec 9, 4:36 PM
Unknown Object (File)
Fri, Dec 6, 11:08 AM
Unknown Object (File)
Fri, Dec 6, 10:54 AM
Unknown Object (File)
Tue, Dec 3, 5:20 AM
Unknown Object (File)
Mon, Dec 2, 10:42 AM
Subscribers

Details

Reviewers
epriestley
Commits
Restricted Diffusion Commit
rP10ed33052361: Update PhamePost to EditEngine
Summary

Allows create and edit workflows through EditEngine. Not sure I did the 'blog' stuff correct.

Test Plan

Create a new post, edit a post, move a post.

Diff Detail

Repository
rP Phabricator
Branch
phame-post-edit-engine (branched from master)
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 9828
Build 11828: Run Core Tests
Build 11827: arc lint + arc unit

Event Timeline

chad retitled this revision from to Update PhamePost to EditEngine.
chad updated this object.
chad edited the test plan for this revision. (Show Details)
chad added a reviewer: epriestley.

I should note this need to wait on a document preview as well.

I think the blog stuff is OK. We might be able to clean up the part where it loads it eventually, but that seems fine for now.

Let me take a look at hooking up previews on top of this.

src/applications/phame/controller/post/PhamePostEditController.php
34

We should have a if (!$blog) { return new Aphront404Response(); } bit here.

chad edited edge metadata.
  • !blog

I'm tentatively going to see if I can move forward with T3967 to provide previews.

epriestley edited edge metadata.

You should be able to use setPreviewPanel() to get the previews working now after D14887, let me know if you run into issues.

This revision is now accepted and ready to land.Dec 27 2015, 4:18 PM
chad edited edge metadata.
  • !blog
  • update to new edit stuff
src/applications/phame/editor/PhamePostEditEngine.php
34

This causes issues if actually trying to create a new blog post form, since $blog is required for a new post. Not sure what the correct fix is.

I think you can probably do something like this:

$viewer = $this->getViewer();

if ($this->blog) {
  $blog = $this->blog;
} else {
  $blog = PhameBlog::initializeNewBlog($viewer);
}

return PhamePost::initializePost($viewer, $blog);

Basically, just make a dummy empty blog for the meta-edit-form-edit stuff.

This revision was automatically updated to reflect the committed changes.