Skip to content

Commit

Permalink
Obey hound and eugenk.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eileen Bolloff committed Aug 10, 2016
1 parent ba60721 commit 628995a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/models/repository/git.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ def save_file_only(tmp_file, filepath, message, user)
def commit_for!(commit_oid, pusher)
instance = Commit.where(repository_id: self,
commit_oid: commit_oid).
first_or_initialize(pusher_id: pusher.try(:id),
pusher_name: pusher.try(:name))
first_or_initialize(pusher_id: pusher.try(:id),
pusher_name: pusher.try(:name))
instance.fill_commit_instance! unless instance.persisted?
instance
end
Expand Down
2 changes: 1 addition & 1 deletion lib/ontology_parsing_migration_worker.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
class OntologyParsingMigrationWorker < OntologyParsingWorker
sidekiq_options queue: 'hets-migration'
end
end
3 changes: 2 additions & 1 deletion lib/tasks/ontology.rake
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
namespace :ontology do
desc 'Reanalyze old ontologies'
task :reanalyze_all => :environment do
Ontology.where(parent_id: nil, present: true).find_each do |ontology|
Ontology.where(parent_id: nil, present: true).order('updated_at desc').
find_each do |ontology|
if ontology.current_version.nil?
commit_oid = ontology.repository.git.get_file!(ontology.path).oid
ontology_version_options = OntologyVersionOptions.new(ontology.path,
Expand Down

0 comments on commit 628995a

Please sign in to comment.