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
Léo-Paul Géneau
gitlab-ce
Commits
5484ad78
Commit
5484ad78
authored
Jun 06, 2018
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable hashed storage for new projects by default in development
parent
96747556
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
db/fixtures/development/04_project.rb
db/fixtures/development/04_project.rb
+4
-0
db/fixtures/development/08_settings.rb
db/fixtures/development/08_settings.rb
+7
-0
No files found.
db/fixtures/development/04_project.rb
View file @
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
...
...
db/fixtures/development/08_settings.rb
0 → 100644
View file @
5484ad78
# 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
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