LMS-11185 Split implementation of revert_to_published

@dmitchell Please review.
Very confusing


On Wed, Aug 27, 2014 at 12:52 PM, Nimisha Asthagiri <
notifications@github.com> wrote:

> In common/lib/xmodule/xmodule/modulestore/split_mongo/split_draft.py:
>
> > @@ -277,7 +279,22 @@ def revert_to_published(self, location, user_id):
> >
> >          :raises InvalidVersionError: if no published version exists for the location specified
> >          """
> > -        raise NotImplementedError()
> > +        if location.category in DIRECT_ONLY_CATEGORIES:
>
> That's the current behavior of Mongo. It is tested in
> test_revert_to_published_direct_only in test_mixed_modulestore.py with a
> Sequential. And it explicitly makes sure that a child Draft is *not*
> reverted.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/edx/edx-platform/pull/4989/files#r16788503>.
>