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
56a07e60
Commit
56a07e60
authored
Apr 11, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
d5a2ffc8
79b0bf2a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
app/models/application_setting.rb
app/models/application_setting.rb
+3
-1
app/services/projects/create_service.rb
app/services/projects/create_service.rb
+2
-2
db/fixtures/development/02_application_settings.rb
db/fixtures/development/02_application_settings.rb
+1
-1
No files found.
app/models/application_setting.rb
View file @
56a07e60
...
...
@@ -259,7 +259,9 @@ class ApplicationSetting < ApplicationRecord
after_commit
:expire_performance_bar_allowed_user_ids_cache
,
if:
->
{
previous_changes
.
key?
(
'performance_bar_allowed_group_id'
)
}
def
self
.
create_from_defaults
super
transaction
(
requires_new:
true
)
do
super
end
rescue
ActiveRecord
::
RecordNotUnique
# We already have an ApplicationSetting record, so just return it.
current_without_cache
...
...
app/services/projects/create_service.rb
View file @
56a07e60
...
...
@@ -159,8 +159,8 @@ module Projects
log_message
<<
" Project ID:
#{
@project
.
id
}
"
if
@project
&
.
id
Rails
.
logger
.
error
(
log_message
)
if
@project
@project
.
import_state
.
mark_as_failed
(
message
)
if
@project
.
persisted?
&&
@project
.
import?
if
@project
&&
@project
.
persisted?
&&
@project
.
import_state
@project
.
import_state
.
mark_as_failed
(
message
)
end
@project
...
...
db/fixtures/development/02_application_settings.rb
View file @
56a07e60
# frozen_string_literal: true
puts
"Creating the default ApplicationSetting record."
.
color
(
:green
)
Gitlab
::
CurrentSettings
.
current_application_setting
s
ApplicationSetting
.
create_from_default
s
# Details https://gitlab.com/gitlab-org/gitlab-ce/issues/46241
puts
"Enable hashed storage for every new projects."
.
color
(
:green
)
...
...
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