Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove the live flag population task.

First off, it's been run on production, so it's no longer necessary.
Second, we have cleared the live flag from all artefacts whose owning apps
aren't using the new API adapters, so this task is actively dangerous.
  • Loading branch information...
commit 05153093f4a7f45b805c792fef8d4e5c67ce4804 1 parent 375b65b
@fatbusinessman fatbusinessman authored
Showing with 0 additions and 12 deletions.
  1. +0 −12 lib/tasks/live_flag.rake
12 lib/tasks/live_flag.rake
@@ -1,12 +0,0 @@
-namespace :live_flag do
- task :populate => :environment do
- # Disable the search observer to avoid a mass update of Rummager
- Artefact.observers.disable :update_search_observer do
- Artefact.where( => "publisher").update(live: true)
- Artefact.where(owning_app: "publisher").each do |artefact|
- = artefact.any_editions_published?
- end
- end
- end
Please sign in to comment.
Something went wrong with that request. Please try again.