Commit 843696c5 authored by Marin Jankovski's avatar Marin Jankovski

Merge branch 'security-fix-group-boards-api' into 'master'

Use BasicGroupDetails for rendering a board group

See merge request gitlab/gitlab-ee!881
parents f67f274e a8491706
......@@ -31,32 +31,7 @@ Example response:
"group": {
"id": 5,
"name": "Documentcloud",
"path": "documentcloud",
"owner_id": null,
"created_at": "2018-05-07T06:52:45.788Z",
"updated_at": "2018-07-03T06:48:17.005Z",
"description": "Consequatur aut a aperiam ut.",
"avatar": {
"url": null
},
"membership_lock": false,
"share_with_group_lock": false,
"visibility_level": 20,
"request_access_enabled": false,
"ldap_sync_status": "ready",
"ldap_sync_error": null,
"ldap_sync_last_update_at": null,
"ldap_sync_last_successful_update_at": null,
"ldap_sync_last_sync_at": null,
"lfs_enabled": null,
"parent_id": null,
"shared_runners_minutes_limit": null,
"repository_size_limit": null,
"require_two_factor_authentication": false,
"two_factor_grace_period": 48,
"plan_id": null,
"project_creation_level": 2,
"runners_token": "rgeeL-nv4wa9YdRvuMid"
"web_url": "http://example.com/groups/documentcloud"
},
"milestone": {
"id": 12
......@@ -121,32 +96,7 @@ Example response:
"group": {
"id": 5,
"name": "Documentcloud",
"path": "documentcloud",
"owner_id": null,
"created_at": "2018-05-07T06:52:45.788Z",
"updated_at": "2018-07-03T06:48:17.005Z",
"description": "Consequatur aut a aperiam ut.",
"avatar": {
"url": null
},
"membership_lock": false,
"share_with_group_lock": false,
"visibility_level": 20,
"request_access_enabled": false,
"ldap_sync_status": "ready",
"ldap_sync_error": null,
"ldap_sync_last_update_at": null,
"ldap_sync_last_successful_update_at": null,
"ldap_sync_last_sync_at": null,
"lfs_enabled": null,
"parent_id": null,
"shared_runners_minutes_limit": null,
"repository_size_limit": null,
"require_two_factor_authentication": false,
"two_factor_grace_period": 48,
"plan_id": null,
"project_creation_level": 2,
"runners_token": "rgeeL-nv4wa9YdRvuMid"
"web_url": "http://example.com/groups/documentcloud"
},
"milestone": {
"id": 12
......@@ -210,32 +160,7 @@ Example response:
"group": {
"id": 5,
"name": "Documentcloud",
"path": "documentcloud",
"owner_id": null,
"created_at": "2018-05-07T06:52:45.788Z",
"updated_at": "2018-07-03T06:48:17.005Z",
"description": "Consequatur aut a aperiam ut.",
"avatar": {
"url": null
},
"membership_lock": false,
"share_with_group_lock": false,
"visibility_level": 20,
"request_access_enabled": false,
"ldap_sync_status": "ready",
"ldap_sync_error": null,
"ldap_sync_last_update_at": null,
"ldap_sync_last_successful_update_at": null,
"ldap_sync_last_sync_at": null,
"lfs_enabled": null,
"parent_id": null,
"shared_runners_minutes_limit": null,
"repository_size_limit": null,
"require_two_factor_authentication": false,
"two_factor_grace_period": 48,
"plan_id": null,
"project_creation_level": 2,
"runners_token": "rgeeL-nv4wa9YdRvuMid"
"web_url": "http://example.com/groups/documentcloud"
},
"milestone": {
"id": 12
......@@ -309,32 +234,7 @@ Example response:
"group": {
"id": 5,
"name": "Documentcloud",
"path": "documentcloud",
"owner_id": null,
"created_at": "2018-05-07T06:52:45.788Z",
"updated_at": "2018-07-03T06:48:17.005Z",
"description": "Consequatur aut a aperiam ut.",
"avatar": {
"url": null
},
"membership_lock": false,
"share_with_group_lock": false,
"visibility_level": 20,
"request_access_enabled": false,
"ldap_sync_status": "ready",
"ldap_sync_error": null,
"ldap_sync_last_update_at": null,
"ldap_sync_last_successful_update_at": null,
"ldap_sync_last_sync_at": null,
"lfs_enabled": null,
"parent_id": null,
"shared_runners_minutes_limit": null,
"repository_size_limit": null,
"require_two_factor_authentication": false,
"two_factor_grace_period": 48,
"plan_id": null,
"project_creation_level": 2,
"runners_token": "rgeeL-nv3wa6YdRvuMid"
"web_url": "http://example.com/groups/documentcloud"
},
"milestone": {
"id": 44,
......
---
title: Expose only basic group attributes in boards API.
merge_request:
author:
type: security
......@@ -123,7 +123,7 @@ module EE
prepended do
# Default filtering configuration
expose :name
expose :group
expose :group, using: ::API::Entities::BasicGroupDetails
with_options if: ->(board, _) { board.parent.feature_available?(:scoped_issue_board) } do
expose :milestone do |board|
......
......@@ -12,7 +12,20 @@
"labels"
],
"properties": {
"group": { "type": ["object", null] },
"group": {
"type": ["object", "null"],
"required": [
"id",
"web_url",
"name"
],
"properties": {
"id": { "type": "integer" },
"web_url": { "type": "string" },
"name": { "type": "string" }
},
"additionalProperties": false
},
"name": { "type": "string" },
"weight": { "type": ["integer", "null"] },
"assignee": {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment