Skip to content

Commit

Permalink
Skip unpublishing one smokey licence
Browse files Browse the repository at this point in the history
busking-licence is used in our smoke tests but Smokey can't be
deployed currently due to chromedriver version issues. This means that
we can't update smokey to point at the new busking-licence path
(/find-licences/busking-licence) and thus Smokey would start failing if
we unpublished the original licence. Temporary fix to leave the busking
licence published while unpublishing all other licence.
  • Loading branch information
1pretz1 committed Jul 19, 2023
1 parent 194d91e commit f99d5fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/tasks/once_off/unpublish_licences.rake
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@ PATHS_NOT_TO_MIGRATE = [
"pet-shop-licence-wales-scotland",
].freeze

PATH_NOT_TO_UNPUBLISH = "busking-licence".freeze

namespace :once_off do
desc "Archives and unpublishes licences after they've been migrated to Specialist Publisher"
task unpublish_licences: :environment do
LicenceEdition.where(state: "published").each do |licence_edition|
next if licence_edition.slug == PATH_NOT_TO_UNPUBLISH

if licence_edition.exact_route?
puts("WARNING: #{licence_edition.slug} skipped as it unexpectedly has an exact route")
next
Expand Down

0 comments on commit f99d5fb

Please sign in to comment.