Skip to content

Commit

Permalink
Remove guard statement for Worldwide Corporate Information Pages
Browse files Browse the repository at this point in the history
There is currently a guard statement which prevents any Corporate Information
Pages still rendered by Whitehall (only the ones associated with Worldwide
Organisations) from being published.

Now that we want to publish these pages, we can remove the guard statement.
  • Loading branch information
jkempster34 committed Jun 12, 2023
1 parent 738f222 commit 33fc5bd
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions app/services/edition_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@ def past_participle

private

def is_whitehall_corp_info_page?
edition.type == "CorporateInformationPage" &&
edition.rendering_app == Whitehall::RenderingApp::WHITEHALL_FRONTEND
end

def notify!
# reload the edition to strip the LocalisedModel, as this can
# cause problems later with localisation.
Expand All @@ -56,8 +51,6 @@ def notify!
end

def update_publishing_api!
return if is_whitehall_corp_info_page?

ServiceListeners::PublishingApiPusher
.new(edition.reload)
.push(event: verb, options:)
Expand Down

0 comments on commit 33fc5bd

Please sign in to comment.