summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2019-07-26 14:57:12 +0000
committerLin Jen-Shin <godfat@godfat.org>2019-07-26 14:57:12 +0000
commitbd1a5a9f422df267725bd5fbd254f3c1f16fd596 (patch)
treec32866892bab7a9aeb2def1d76dafd4a17bcb521 /lib/api
parent900ef6fc316c7d4024545b5d08598c61fa9f3936 (diff)
parent1ce5bcacdbf56682e05fa63875203bf4d10584bc (diff)
downloadgitlab-ce-bd1a5a9f422df267725bd5fbd254f3c1f16fd596.tar.gz
Merge branch 'remove-nested-groups-checks' into 'master'
Remove code related to object hierarchy and MySQL Closes #65056 and #65055 See merge request gitlab-org/gitlab-ce!31095
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/entities.rb5
-rw-r--r--lib/api/groups.rb5
2 files changed, 2 insertions, 8 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index 10b4f8934d7..2e78331df6c 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -366,10 +366,7 @@ module API
end
expose :request_access_enabled
expose :full_name, :full_path
-
- if ::Group.supports_nested_objects?
- expose :parent_id
- end
+ expose :parent_id
expose :custom_attributes, using: 'API::Entities::CustomAttribute', if: :with_custom_attributes
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