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
9dfd3945
Commit
9dfd3945
authored
Aug 14, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix conflicts related to export disabling option
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
681d1e20
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
57 deletions
+8
-57
app/controllers/projects_controller.rb
app/controllers/projects_controller.rb
+0
-3
app/views/admin/application_settings/_form.html.haml
app/views/admin/application_settings/_form.html.haml
+7
-9
app/views/projects/edit.html.haml
app/views/projects/edit.html.haml
+0
-39
spec/requests/api/settings_spec.rb
spec/requests/api/settings_spec.rb
+1
-6
No files found.
app/controllers/projects_controller.rb
View file @
9dfd3945
...
...
@@ -7,12 +7,9 @@ class ProjectsController < Projects::ApplicationController
before_action
:project
,
except:
[
:index
,
:new
,
:create
]
before_action
:repository
,
except:
[
:index
,
:new
,
:create
]
before_action
:assign_ref_vars
,
only:
[
:show
],
if: :repo_exists?
<<<<<<<
HEAD
before_action
:assign_tree_vars
,
only:
[
:show
],
if:
[
:repo_exists?
,
:project_view_files?
]
=======
before_action
:tree
,
only:
[
:show
],
if:
[
:repo_exists?
,
:project_view_files?
]
before_action
:project_export_enabled
,
only:
[
:export
,
:download_export
,
:remove_export
,
:generate_new_export
]
>>>>>>>
ce
-
com
/
master
# Authorize
before_action
:authorize_admin_project!
,
only:
[
:edit
,
:update
,
:housekeeping
,
:download_export
,
:export
,
:remove_export
,
:generate_new_export
]
...
...
app/views/admin/application_settings/_form.html.haml
View file @
9dfd3945
...
...
@@ -48,7 +48,13 @@
=
select
(
:application_setting
,
:enabled_git_access_protocol
,
[[
'Both SSH and HTTP(S)'
,
nil
],
[
'Only SSH'
,
'ssh'
],
[
'Only HTTP(S)'
,
'http'
]],
{},
class:
'form-control'
)
%span
.help-block
#clone-protocol-help
Allow only the selected protocols to be used for Git access.
<
<<<<<<
HEAD
.form-group
.col-sm-offset-2.col-sm-10
.checkbox
=
f
.
label
:project_export_enabled
do
=
f
.
check_box
:project_export_enabled
Project export enabled
-
if
ldap_enabled?
.form-group
=
f
.
label
:allow_group_owners_to_manage_ldap
,
'LDAP settings'
,
class:
'control-label col-sm-2'
...
...
@@ -60,14 +66,6 @@
%span
.help-block
If checked, group owners can manage LDAP group links and LDAP member overrides
=
link_to
icon
(
'question-circle'
),
help_page_path
(
'administration/auth/ldap-ee'
)
==
=====
.form-group
.col-sm-offset-2.col-sm-10
.checkbox
=
f
.
label
:project_export_enabled
do
=
f
.
check_box
:project_export_enabled
Project
export
enabled
>
>>>>>> ce-com/master
%fieldset
%legend
Account and Limit Settings
...
...
app/views/projects/edit.html.haml
View file @
9dfd3945
...
...
@@ -167,7 +167,6 @@
=
render
'merge_request_settings'
,
form:
f
=
f
.
submit
'Save changes'
,
class:
"btn btn-save"
<
<<<<<<
HEAD
-
if
EE
::
Gitlab
::
ServiceDesk
.
enabled?
(
project:
@project
)
%section
.settings.js-service-desk-setting-wrapper
.settings-header
...
...
@@ -183,45 +182,7 @@
enabled:
"#{@project.service_desk_enabled}"
,
incoming_email:
(
@project
.
service_desk_address
if
@project
.
service_desk_enabled
)
}
}
%section
.settings
.settings-header
%h4
Export
project
%button
.btn.js-settings-toggle
=
expanded
?
'Collapse'
:
'Expand'
%p
Export
this
project
with
all
its
related
data
in
order
to
move
your
project
to
a
new
GitLab
instance
.
Once
the
export
is
finished
,
you
can
import
the
file
from
the
"
New
Project
"
page
.
.settings-content.no-animate
{
class:
(
'expanded'
if
expanded
)
}
.bs-callout.bs-callout-info
%p
.append-bottom-0
%p
The
following
items
will
be
exported:
%ul
%li
Project
and
wiki
repositories
%li
Project
uploads
%li
Project
configuration
including
web
hooks
and
services
%li
Issues
with
comments
,
merge
requests
with
diffs
and
comments
,
labels
,
milestones
,
snippets
,
and
other
project
entities
%p
The
following
items
will
NOT
be
exported:
%ul
%li
Job
traces
and
artifacts
%li
LFS
objects
%li
Container
registry
images
%li
CI
variables
%li
Any
encrypted
tokens
%p
Once
the
exported
file
is
ready
,
you
will
receive
a
notification
email
with
a
download
link
.
-
if
@project
.
export_project_path
=
link_to
'Download export'
,
download_export_project_path
(
@project
),
rel:
'nofollow'
,
download:
''
,
method: :get
,
class:
"btn btn-default"
=
link_to
'Generate new export'
,
generate_new_export_project_path
(
@project
),
method: :post
,
class:
"btn btn-default"
-
else
=
link_to
'Export project'
,
export_project_path
(
@project
),
method: :post
,
class:
"btn btn-default"
==
=====
=
render
'export'
,
project:
@project
>
>>>>>> ce-com/master
%section
.settings.advanced-settings
.settings-header
...
...
spec/requests/api/settings_spec.rb
View file @
9dfd3945
...
...
@@ -45,14 +45,9 @@ describe API::Settings, 'Settings' do
default_artifacts_expire_in:
'2 days'
,
help_page_text:
'custom help text'
,
help_page_hide_commercial_content:
true
,
<<<<<<<
HEAD
project_export_enabled:
false
,
help_page_support_url:
'http://example.com/help'
=======
help_page_support_url:
'http://example.com/help'
,
project_export_enabled:
false
>>>>>>>
ce
-
com
/
master
expect
(
response
).
to
have_http_status
(
200
)
expect
(
json_response
[
'default_projects_limit'
]).
to
eq
(
3
)
expect
(
json_response
[
'signin_enabled'
]).
to
be_falsey
...
...
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