-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This was a nice idea in principle, but the only use case we had for it was for creating a preview version of the ministers page after publishing a maintenance message on the live stack. The nature of using workers for this meant that they could run out of order and we'd end up overriding the maintenance message on live. We've now changed how we apply the live and draft payloads, and this method is no longer called. Rather than keep it 'just in case' something in the future wants it, we'll delete it and this commit can be reverted in future if a need for it arises.
- Loading branch information
1 parent
a578dcd
commit 707f2bf
Showing
6 changed files
with
10 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
class PresentPageToPublishingApiWorker < WorkerBase | ||
def perform(presenter, update_live = true) | ||
if update_live | ||
PresentPageToPublishingApi.new.publish(presenter.constantize) | ||
else | ||
PresentPageToPublishingApi.new.save_draft(presenter.constantize) | ||
end | ||
def perform(presenter) | ||
PresentPageToPublishingApi.new.publish(presenter.constantize) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters