diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2017-12-21 20:32:08 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2018-01-03 21:13:32 +0300 |
commit | fcb967ac672e224737f6e170693e45331eb4d636 (patch) | |
tree | b0af32c29252d71858ea622839cf4a409a988f9e | |
parent | 93eba91df9af083ea80b3b8ab01986efdeec43a0 (diff) |
Write projects config to all projects inside namespace in batches
-rw-r--r-- | app/models/concerns/storage/legacy_namespace.rb | 2 | ||||
-rw-r--r-- | app/models/namespace.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app/models/concerns/storage/legacy_namespace.rb b/app/models/concerns/storage/legacy_namespace.rb index 22b9ef4e338..99dbd4fbacf 100644 --- a/app/models/concerns/storage/legacy_namespace.rb +++ b/app/models/concerns/storage/legacy_namespace.rb @@ -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 diff --git a/app/models/namespace.rb b/app/models/namespace.rb index efbfc607040..bdcc9159d26 100644 --- a/app/models/namespace.rb +++ b/app/models/namespace.rb @@ -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 |