Commit 3d98c1ea authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'update-repository-size-during-import' into 'master'

Update repository size during import

What does this MR do?
Update the repository size during the import

Are there points in the code the reviewer needs to double check?
Unknown.

Why was this MR needed?
Sometimes there could be an import without getting any pushes all the time or for a long time. The size is only recalculated on a push.
parents 971101b7 ac0763ac
......@@ -14,8 +14,9 @@ class RepositoryImportWorker
project.import_finish
project.save
project.satellite.create unless project.satellite.exists?
project.update_repository_size
else
project.import_fail
end
end
end
end
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment