diff options
| author | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-07-24 17:20:54 +0800 |
|---|---|---|
| committer | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-07-25 15:35:06 +0800 |
| commit | 1ce5bcacdbf56682e05fa63875203bf4d10584bc (patch) | |
| tree | d46baea2e6f30ff63553f76624fe0b314227a732 /lib/api/groups.rb | |
| parent | ba997f3c428d94adfc9a2eb4eb0daaa3d759c4df (diff) | |
| download | gitlab-ce-remove-nested-groups-checks.tar.gz | |
Remove code related to object hierarchy in MySQLremove-nested-groups-checks
These are not required because MySQL is not
supported anymore
Diffstat (limited to 'lib/api/groups.rb')
| -rw-r--r-- | lib/api/groups.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/api/groups.rb b/lib/api/groups.rb index ec1020c7c78..f545f33c06b 100644 --- a/lib/api/groups.rb +++ b/lib/api/groups.rb @@ -114,10 +114,7 @@ module API params do requires :name, type: String, desc: 'The name of the group' requires :path, type: String, desc: 'The path of the group' - - if ::Group.supports_nested_objects? - optional :parent_id, type: Integer, desc: 'The parent group id for creating nested group' - end + optional :parent_id, type: Integer, desc: 'The parent group id for creating nested group' use :optional_params end |
