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
Jérome Perrin
gitlab-ce
Commits
fcb967ac
Commit
fcb967ac
authored
Dec 21, 2017
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Write projects config to all projects inside namespace in batches
parent
93eba91d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/models/concerns/storage/legacy_namespace.rb
app/models/concerns/storage/legacy_namespace.rb
+1
-1
app/models/namespace.rb
app/models/namespace.rb
+2
-2
No files found.
app/models/concerns/storage/legacy_namespace.rb
View file @
fcb967ac
...
...
@@ -34,7 +34,7 @@ module Storage
# So we basically we mute exceptions in next actions
begin
send_update_instructions
write_projects_
full_path
_config
write_projects_
repository
_config
true
rescue
...
...
app/models/namespace.rb
View file @
fcb967ac
...
...
@@ -269,8 +269,8 @@ class Namespace < ActiveRecord::Base
RedirectRoute
.
permanent
.
exists?
(
path:
path
)
end
def
write_projects_
full_path
_config
all_projects
.
each
do
|
project
|
def
write_projects_
repository
_config
all_projects
.
find_
each
do
|
project
|
project
.
expires_full_path_cache
# we need to clear cache to validate renames correctly
project
.
write_repository_config
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