Split/auto publish

LMS-11017 https://openedx.atlassian.net/browse/LMS-11017
Also note:  The replace method has a different behavior for SlashSeparatedKeys and Locators.  The old implementation actually clears out all fields other than org, course, and run.  The new implementation doesn't.  Since our codebase currently has both live in use, we have to be careful.

Sent from my iPhone

> On Jul 25, 2014, at 1:09 PM, Calen Pennington <notifications@github.com> wrote:
> 
> In common/lib/xmodule/xmodule/modulestore/split_mongo/split_draft.py:
> 
> >          Returns the newly published item.
> >          """
> >          SplitMongoModuleStore.copy(
> >              self,
> >              user_id,
> > -            location.course_key.for_branch(ModuleStoreEnum.BranchName.draft),
> > +            # replace in order to still check if location is from head of its branch
> Hm. I thought that I was replicating the previous for_branch behavior when I updated it to use replace.
> 
> —
> Reply to this email directly or view it on GitHub.