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
67c042e4
Commit
67c042e4
authored
Aug 29, 2017
by
Robert Schilling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Respect the default visibility level when creating a group
parent
2a8dec2c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
lib/api/groups.rb
lib/api/groups.rb
+3
-1
spec/requests/api/groups_spec.rb
spec/requests/api/groups_spec.rb
+1
-0
No files found.
lib/api/groups.rb
View file @
67c042e4
...
@@ -7,7 +7,9 @@ module API
...
@@ -7,7 +7,9 @@ module API
helpers
do
helpers
do
params
:optional_params_ce
do
params
:optional_params_ce
do
optional
:description
,
type:
String
,
desc:
'The description of the group'
optional
:description
,
type:
String
,
desc:
'The description of the group'
optional
:visibility
,
type:
String
,
values:
Gitlab
::
VisibilityLevel
.
string_values
,
desc:
'The visibility of the group'
optional
:visibility
,
type:
String
,
values:
Gitlab
::
VisibilityLevel
.
string_values
,
default:
Gitlab
::
VisibilityLevel
.
string_level
(
Gitlab
::
CurrentSettings
.
current_application_settings
.
default_group_visibility
),
desc:
'The visibility of the group'
optional
:lfs_enabled
,
type:
Boolean
,
desc:
'Enable/disable LFS for the projects in this group'
optional
:lfs_enabled
,
type:
Boolean
,
desc:
'Enable/disable LFS for the projects in this group'
optional
:request_access_enabled
,
type:
Boolean
,
desc:
'Allow users to request member access'
optional
:request_access_enabled
,
type:
Boolean
,
desc:
'Allow users to request member access'
optional
:share_with_group_lock
,
type:
Boolean
,
desc:
'Prevent sharing a project with another group within this group'
optional
:share_with_group_lock
,
type:
Boolean
,
desc:
'Prevent sharing a project with another group within this group'
...
...
spec/requests/api/groups_spec.rb
View file @
67c042e4
...
@@ -444,6 +444,7 @@ describe API::Groups do
...
@@ -444,6 +444,7 @@ describe API::Groups do
expect
(
json_response
[
"name"
]).
to
eq
(
group
[
:name
])
expect
(
json_response
[
"name"
]).
to
eq
(
group
[
:name
])
expect
(
json_response
[
"path"
]).
to
eq
(
group
[
:path
])
expect
(
json_response
[
"path"
]).
to
eq
(
group
[
:path
])
expect
(
json_response
[
"request_access_enabled"
]).
to
eq
(
group
[
:request_access_enabled
])
expect
(
json_response
[
"request_access_enabled"
]).
to
eq
(
group
[
:request_access_enabled
])
expect
(
json_response
[
"visibility"
]).
to
eq
(
Gitlab
::
VisibilityLevel
.
string_level
(
Gitlab
::
CurrentSettings
.
current_application_settings
.
default_group_visibility
))
end
end
it
"creates a nested group"
,
:nested_groups
do
it
"creates a nested group"
,
:nested_groups
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