alphagov/whitehall — pull request #1921 by tekin (2014-12-18 13:22:01+00:00)
Title: Unscheduling publishing 2 0

This adds the wiring for unscheduling editions with the Publishing 2.0 stack.

When a scheduled edition is unscheduled, we remove the publish intent from content store. If the edition is also a first-edition (i.e. "coming_soon" item(s) will have been published for it), then we also replace those with "gone" items.

Note that the removal of publish intents and replacing "coming_soon" items are done in separate jobs. By separating them, we can insure that failure of one won't impact the other and they can be retried independently. This is different to how the scheduling code works (where both publishing the publish intent and publishing the "coming_soon" are done as part of a single job). I _think_ this might be a better approach because it separates concerns a bit better , but would appreciate feedback.

Story: https://trello.com/c/gkxMVXtW/77-unscheduling-a-document-from-publication