Added some extra TODOs for the Legacy Storage refactor
This commit is contained in:
parent
16107364b8
commit
07b574b41c
|
@ -61,11 +61,13 @@ module Projects
|
||||||
project.send_move_instructions(@old_path)
|
project.send_move_instructions(@old_path)
|
||||||
|
|
||||||
# Move main repository
|
# Move main repository
|
||||||
|
# TODO: check storage type and NOOP when not using Legacy
|
||||||
unless move_repo_folder(@old_path, @new_path)
|
unless move_repo_folder(@old_path, @new_path)
|
||||||
raise TransferError.new('Cannot move project')
|
raise TransferError.new('Cannot move project')
|
||||||
end
|
end
|
||||||
|
|
||||||
# Move wiki repo also if present
|
# Move wiki repo also if present
|
||||||
|
# TODO: check storage type and NOOP when not using Legacy
|
||||||
move_repo_folder("#{@old_path}.wiki", "#{@new_path}.wiki")
|
move_repo_folder("#{@old_path}.wiki", "#{@new_path}.wiki")
|
||||||
|
|
||||||
# Move missing group labels to project
|
# Move missing group labels to project
|
||||||
|
|
|
@ -24,6 +24,7 @@ module Gitlab
|
||||||
end
|
end
|
||||||
|
|
||||||
def uploads_path
|
def uploads_path
|
||||||
|
# TODO: decide what to do with uploads. We will use UUIDs here too?
|
||||||
File.join(Rails.root.join('public/uploads'), @project.path_with_namespace)
|
File.join(Rails.root.join('public/uploads'), @project.path_with_namespace)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue