Skip to content

Commit

Permalink
Disable delete detection via crawl
Browse files Browse the repository at this point in the history
See #143
  • Loading branch information
thatbudakguy committed May 8, 2024
1 parent 90bc36f commit 8a28c7b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,10 @@ task :update do
updated_docs_since(previous_timestamp) { |doc| write_doc_metadata(doc) }.last
end

puts '== Checking for deleted layers =='
total_deleted = deleted_docs { |doc_id| delete_doc(doc_id) }.compact.length
puts total_deleted.zero? ? '== No deleted layers found ==' : "== Deleted #{total_deleted} layers =="
# TODO: See https://github.com/OpenGeoMetadata/edu.stanford.purl/issues/143
# puts '== Checking for deleted layers =='
# total_deleted = deleted_docs { |doc_id| delete_doc(doc_id) }.compact.length
# puts total_deleted.zero? ? '== No deleted layers found ==' : "== Deleted #{total_deleted} layers =="
end

# Write a JSON file that maps each layer to its directory
Expand Down

0 comments on commit 8a28c7b

Please sign in to comment.