Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
David Thompson fatbusinessman authored

Showing 1 changed file with 0 additions and 12 deletions. Show diff stats Hide diff stats

  1. +0 12 lib/tasks/live_flag.rake
12 lib/tasks/live_flag.rake
... ... @@ -1,12 +0,0 @@
1   -namespace :live_flag do
2   - task :populate => :environment do
3   - # Disable the search observer to avoid a mass update of Rummager
4   - Artefact.observers.disable :update_search_observer do
5   - Artefact.where(:owning_app.ne => "publisher").update(live: true)
6   - Artefact.where(owning_app: "publisher").each do |artefact|
7   - artefact.live = artefact.any_editions_published?
8   - artefact.save!
9   - end
10   - end
11   - end
12   -end

0 comments on commit 0515309

Please sign in to comment.
Something went wrong with that request. Please try again.