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
d05604f6
Commit
d05604f6
authored
Feb 02, 2017
by
James Edwards-Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove ‘EE-specific’ comments related to Pages feature
parent
eaeb73ad
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
12 deletions
+8
-12
app/controllers/admin/application_settings_controller.rb
app/controllers/admin/application_settings_controller.rb
+1
-1
app/policies/project_policy.rb
app/policies/project_policy.rb
+3
-5
config/routes/project.rb
config/routes/project.rb
+0
-2
config/sidekiq_queues.yml
config/sidekiq_queues.yml
+1
-1
lib/api/settings.rb
lib/api/settings.rb
+3
-3
No files found.
app/controllers/admin/application_settings_controller.rb
View file @
d05604f6
...
...
@@ -118,6 +118,7 @@ class Admin::ApplicationSettingsController < Admin::ApplicationController
:plantuml_url
,
:max_artifacts_size
,
:max_attachment_size
,
:max_pages_size
,
:metrics_enabled
,
:metrics_host
,
:metrics_method_call_threshold
,
...
...
@@ -158,7 +159,6 @@ class Admin::ApplicationSettingsController < Admin::ApplicationController
def
application_setting_params_ee
[
:help_text
,
:max_pages_size
,
:elasticsearch_host
,
:elasticsearch_indexing
,
:elasticsearch_port
,
...
...
app/policies/project_policy.rb
View file @
d05604f6
...
...
@@ -117,12 +117,12 @@ class ProjectPolicy < BasePolicy
can!
:admin_pipeline
can!
:admin_environment
can!
:admin_deployment
# EE-only
can!
:admin_path_locks
can!
:admin_pages
can!
:read_pages
can!
:update_pages
# EE-only
can!
:admin_path_locks
end
def
public_access!
...
...
@@ -149,8 +149,6 @@ class ProjectPolicy < BasePolicy
can!
:remove_fork_project
can!
:destroy_merge_request
can!
:destroy_issue
# EE-only
can!
:remove_pages
end
...
...
config/routes/project.rb
View file @
d05604f6
...
...
@@ -39,11 +39,9 @@ constraints(ProjectUrlConstrainer.new) do
end
end
## EE-specific
resource
:pages
,
only:
[
:show
,
:destroy
]
do
resources
:domains
,
only:
[
:show
,
:new
,
:create
,
:destroy
],
controller:
'pages_domains'
,
constraints:
{
id:
/[^\/]+/
}
end
## EE-specific
resources
:compare
,
only:
[
:index
,
:create
]
do
collection
do
...
...
config/sidekiq_queues.yml
View file @
d05604f6
...
...
@@ -50,8 +50,8 @@
- [reactive_caching, 1]
- [cronjob, 1]
- [default, 1]
# EE specific queues
- [pages, 1]
# EE specific queues
- [elasticsearch, 1]
- [geo, 1]
- [project_mirror, 1]
...
...
lib/api/settings.rb
View file @
d05604f6
...
...
@@ -57,6 +57,7 @@ module API
requires
:shared_runners_text
,
type:
String
,
desc:
'Shared runners text '
end
optional
:max_artifacts_size
,
type:
Integer
,
desc:
"Set the maximum file size each build's artifacts can have"
optional
:max_pages_size
,
type:
Integer
,
desc:
'Maximum size of pages in MB'
optional
:container_registry_token_expire_delay
,
type:
Integer
,
desc:
'Authorization token duration (minutes)'
optional
:metrics_enabled
,
type:
Boolean
,
desc:
'Enable the InfluxDB metrics'
given
metrics_enabled:
->
(
val
)
{
val
}
do
...
...
@@ -109,7 +110,6 @@ module API
end
# GitLab-EE specific settings
optional
:help_text
,
type:
String
,
desc:
'GitLab server administrator information'
optional
:max_pages_size
,
type:
Integer
,
desc:
'Maximum size of pages in MB'
optional
:elasticsearch_indexing
,
type:
Boolean
,
desc:
'Enable Elasticsearch indexing'
given
elasticsearch_indexing:
->
(
val
)
{
val
}
do
optional
:elasticsearch_search
,
type:
Boolean
,
desc:
'Enable Elasticsearch search'
...
...
@@ -129,13 +129,13 @@ module API
:send_user_confirmation_email
,
:domain_whitelist
,
:domain_blacklist_enabled
,
:after_sign_up_text
,
:signin_enabled
,
:require_two_factor_authentication
,
:home_page_url
,
:after_sign_out_path
,
:sign_in_text
,
:help_page_text
,
:shared_runners_enabled
,
:max_artifacts_size
,
:container_registry_token_expire_delay
,
:shared_runners_enabled
,
:max_artifacts_size
,
:
max_pages_size
,
:
container_registry_token_expire_delay
,
:metrics_enabled
,
:sidekiq_throttling_enabled
,
:recaptcha_enabled
,
:akismet_enabled
,
:admin_notification_email
,
:sentry_enabled
,
:repository_checks_enabled
,
:koding_enabled
,
:housekeeping_enabled
,
:plantuml_enabled
,
:version_check_enabled
,
:email_author_in_body
,
:html_emails_enabled
,
# GitLab-EE specific settings
:help_text
,
:
max_pages_size
,
:
elasticsearch_indexing
,
:usage_ping_enabled
,
:help_text
,
:elasticsearch_indexing
,
:usage_ping_enabled
,
:repository_storage
,
:repository_storages
,
:repository_size_limit
end
put
"application/settings"
do
...
...
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