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
547ada18
Commit
547ada18
authored
Feb 17, 2021
by
Aakriti Gupta
Committed by
Peter Leitzen
Feb 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Default maintenance_mode value to false if not explicitly set
parent
dea0b7b4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
ee/app/models/ee/application_setting.rb
ee/app/models/ee/application_setting.rb
+1
-0
ee/changelogs/unreleased/ag-fix-db-read-only-check.yml
ee/changelogs/unreleased/ag-fix-db-read-only-check.yml
+5
-0
ee/spec/models/application_setting_spec.rb
ee/spec/models/application_setting_spec.rb
+6
-0
No files found.
ee/app/models/ee/application_setting.rb
View file @
547ada18
...
@@ -157,6 +157,7 @@ module EE
...
@@ -157,6 +157,7 @@ module EE
geo_node_allowed_ips:
'0.0.0.0/0, ::/0'
,
geo_node_allowed_ips:
'0.0.0.0/0, ::/0'
,
git_two_factor_session_expiry:
15
,
git_two_factor_session_expiry:
15
,
lock_memberships_to_ldap:
false
,
lock_memberships_to_ldap:
false
,
maintenance_mode:
false
,
max_personal_access_token_lifetime:
nil
,
max_personal_access_token_lifetime:
nil
,
mirror_capacity_threshold:
Settings
.
gitlab
[
'mirror_capacity_threshold'
],
mirror_capacity_threshold:
Settings
.
gitlab
[
'mirror_capacity_threshold'
],
mirror_max_capacity:
Settings
.
gitlab
[
'mirror_max_capacity'
],
mirror_max_capacity:
Settings
.
gitlab
[
'mirror_max_capacity'
],
...
...
ee/changelogs/unreleased/ag-fix-db-read-only-check.yml
0 → 100644
View file @
547ada18
---
title
:
Default maintenance_mode value to
false
if not explicitly set
merge_request
:
54428
author
:
type
:
fixed
ee/spec/models/application_setting_spec.rb
View file @
547ada18
...
@@ -782,4 +782,10 @@ RSpec.describe ApplicationSetting do
...
@@ -782,4 +782,10 @@ RSpec.describe ApplicationSetting do
it
{
is_expected
.
to
be
true
}
it
{
is_expected
.
to
be
true
}
end
end
end
end
describe
'maintenance mode setting'
do
it
'defaults to false'
do
expect
(
subject
.
maintenance_mode
).
to
be
false
end
end
end
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