Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
07b574b4
Commit
07b574b4
authored
Jul 24, 2017
by
Gabriel Mazetto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added some extra TODOs for the Legacy Storage refactor
parent
16107364
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
app/services/projects/transfer_service.rb
app/services/projects/transfer_service.rb
+2
-0
lib/gitlab/import_export/uploads_saver.rb
lib/gitlab/import_export/uploads_saver.rb
+1
-0
No files found.
app/services/projects/transfer_service.rb
View file @
07b574b4
...
@@ -61,11 +61,13 @@ module Projects
...
@@ -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
...
...
lib/gitlab/import_export/uploads_saver.rb
View file @
07b574b4
...
@@ -24,6 +24,7 @@ module Gitlab
...
@@ -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
...
...
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