Homec4science

Make posts 1:1 with blogs and implement policy controls

Authored by epriestley <git@epriestley.com> on Oct 15 2012, 23:50.

Description

Make posts 1:1 with blogs and implement policy controls

Summary:
This leaves the UI in a pretty rough state, but implements blog policy controls and queries, and 1:1 relationships between posts and blogs. Needs a bunch more cleanup but seemed like an okayish breaking point in terms of cohesiveness.

Posts have these rules:

  • Drafts are visible only to the author.
  • Published posts are visible to anyone who can see the blog they appear on.
  • Posts are only editable by the author.

...so we don't need any special policy UI or state to accommodate these rules.

Posts may have no blog if they're grandfathered in or you write a post to a blog and then lose the ability to see the blog. This is the messiest edge case -- specifically:

  • You write a post to blog A.
  • You publish the post.
  • I edit the "Visible To:" for blog A and set it to exclude you.

What we do in this case is let you see the post in "My Posts", but you can no longer see the blog and you'll see the post as not being part of a blog. We can maybe give you some UI to let you move it later or something.

Test Plan: Hit all (I think?) of the interfaces without issues. Definitely some UI problems still right now.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T1373

Differential Revision: https://secure.phabricator.com/D3694

Details

Committed
epriestley <git@epriestley.com>Oct 15 2012, 23:50
Pushed
aubortJan 31 2017, 17:16
Parents
rPHdbcf2e44e890: Make PhameBlogs respect policies
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHa50b8e39b12c: Make posts 1:1 with blogs and implement policy controls (authored by epriestley <git@epriestley.com>).Oct 15 2012, 23:50