Commit 047aa493 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch '46241-enable-hashed-storage-for-new-projects-by-default-in-development' into 'master'

Resolve "Enable hashed storage for new projects by default in development"

Closes #46241

See merge request gitlab-org/gitlab-ce!19488
parents 290ca339 5484ad78
...@@ -67,6 +67,10 @@ Sidekiq::Testing.inline! do ...@@ -67,6 +67,10 @@ Sidekiq::Testing.inline! do
skip_disk_validation: true skip_disk_validation: true
} }
if i % 2 == 0
params[:storage_version] = Project::LATEST_STORAGE_VERSION
end
project = Projects::CreateService.new(User.first, params).execute project = Projects::CreateService.new(User.first, params).execute
# Seed-Fu runs this entire fixture in a transaction, so the `after_commit` # Seed-Fu runs this entire fixture in a transaction, so the `after_commit`
# hook won't run until after the fixture is loaded. That is too late # hook won't run until after the fixture is loaded. That is too late
......
# We want to enable hashed storage for every new project in development
# Details https://gitlab.com/gitlab-org/gitlab-ce/issues/46241
Gitlab::Seeder.quiet do
ApplicationSetting.create_from_defaults unless ApplicationSetting.current_without_cache
ApplicationSetting.current_without_cache.update!(hashed_storage_enabled: true)
print '.'
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment