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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
6af144a1
Commit
6af144a1
authored
Nov 27, 2018
by
Toon Claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update project_repository when moved across shards
parent
7b9cfbc5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
ee/app/services/projects/update_repository_storage_service.rb
...pp/services/projects/update_repository_storage_service.rb
+1
-0
ee/spec/services/projects/update_repository_storage_service_spec.rb
...rvices/projects/update_repository_storage_service_spec.rb
+1
-0
No files found.
ee/app/services/projects/update_repository_storage_service.rb
View file @
6af144a1
...
...
@@ -17,6 +17,7 @@ module Projects
mark_old_paths_for_archive
project
.
update
(
repository_storage:
new_repository_storage_key
,
repository_read_only:
false
)
project
.
track_project_repository
else
project
.
update
(
repository_read_only:
false
)
end
...
...
ee/spec/services/projects/update_repository_storage_service_spec.rb
View file @
6af144a1
...
...
@@ -28,6 +28,7 @@ describe Projects::UpdateRepositoryStorageService do
expect
(
project
).
not_to
be_repository_read_only
expect
(
project
.
repository_storage
).
to
eq
(
'test_second_storage'
)
expect
(
gitlab_shell
.
exists?
(
'default'
,
old_path
)).
to
be
(
false
)
expect
(
project
.
project_repository
.
shard_name
).
to
eq
(
'test_second_storage'
)
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