Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
35b032f462b9
Commit
07b574b4
authored
Jul 24, 2017
by
Gabriel Mazetto
Browse files
Added some extra TODOs for the Legacy Storage refactor
parent
e4f65cfd0730
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/services/projects/transfer_service.rb
View file @
35b032f4
...
@@ -61,11 +61,13 @@ def attempt_transfer_transaction
...
@@ -61,11 +61,13 @@ def attempt_transfer_transaction
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
...
...
lib/gitlab/import_export/uploads_saver.rb
View file @
35b032f4
...
@@ -24,6 +24,7 @@ def uploads_export_path
...
@@ -24,6 +24,7 @@ def uploads_export_path
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment