Commit 13f9d700 authored by Felipe Artur's avatar Felipe Artur

Merge branch 'ce-to-ee' of gitlab.com:gitlab-org/gitlab-ee into ce-to-ee

parents 88886eaf 3037be1f
...@@ -20,13 +20,10 @@ module SystemNoteHelper ...@@ -20,13 +20,10 @@ module SystemNoteHelper
'moved' => 'arrow-right', 'moved' => 'arrow-right',
'outdated' => 'pencil', 'outdated' => 'pencil',
'duplicate' => 'issue-duplicate', 'duplicate' => 'issue-duplicate',
<<<<<<< HEAD
'approved' => 'approval', 'approved' => 'approval',
'unapproved' => 'unapproval', 'unapproved' => 'unapproval',
'relate' => 'link', 'relate' => 'link',
'unrelate' => 'unlink', 'unrelate' => 'unlink',
=======
>>>>>>> ce-com/master
'locked' => 'lock', 'locked' => 'lock',
'unlocked' => 'lock-open' 'unlocked' => 'lock-open'
}.freeze }.freeze
......
...@@ -106,14 +106,13 @@ Example response: ...@@ -106,14 +106,13 @@ Example response:
"web_url": "http://example.com/example/example/issues/6", "web_url": "http://example.com/example/example/issues/6",
"confidential": false, "confidential": false,
"weight": null, "weight": null,
"discussion_locked": false,
"time_stats": { "time_stats": {
"time_estimate": 0, "time_estimate": 0,
"total_time_spent": 0, "total_time_spent": 0,
"human_time_estimate": null, "human_time_estimate": null,
"human_total_time_spent": null "human_total_time_spent": null
}, },
"confidential": false,
"discussion_locked": false
} }
] ]
``` ```
...@@ -215,14 +214,13 @@ Example response: ...@@ -215,14 +214,13 @@ Example response:
"web_url": "http://example.com/example/example/issues/1", "web_url": "http://example.com/example/example/issues/1",
"confidential": false, "confidential": false,
"weight": null, "weight": null,
"discussion_locked": false,
"time_stats": { "time_stats": {
"time_estimate": 0, "time_estimate": 0,
"total_time_spent": 0, "total_time_spent": 0,
"human_time_estimate": null, "human_time_estimate": null,
"human_total_time_spent": null "human_total_time_spent": null
}, },
"confidential": false,
"discussion_locked": false
} }
] ]
``` ```
...@@ -325,14 +323,13 @@ Example response: ...@@ -325,14 +323,13 @@ Example response:
"web_url": "http://example.com/example/example/issues/1", "web_url": "http://example.com/example/example/issues/1",
"confidential": false, "confidential": false,
"weight": null, "weight": null,
"discussion_locked": false,
"time_stats": { "time_stats": {
"time_estimate": 0, "time_estimate": 0,
"total_time_spent": 0, "total_time_spent": 0,
"human_time_estimate": null, "human_time_estimate": null,
"human_total_time_spent": null "human_total_time_spent": null
}, },
"confidential": false,
"discussion_locked": false
} }
] ]
``` ```
...@@ -416,10 +413,7 @@ Example response: ...@@ -416,10 +413,7 @@ Example response:
"human_total_time_spent": null "human_total_time_spent": null
}, },
"confidential": false, "confidential": false,
<<<<<<< HEAD
"weight": null, "weight": null,
=======
>>>>>>> ce-com/master
"discussion_locked": false, "discussion_locked": false,
"_links": { "_links": {
"self": "http://example.com/api/v4/projects/1/issues/2", "self": "http://example.com/api/v4/projects/1/issues/2",
...@@ -497,10 +491,7 @@ Example response: ...@@ -497,10 +491,7 @@ Example response:
"human_total_time_spent": null "human_total_time_spent": null
}, },
"confidential": false, "confidential": false,
<<<<<<< HEAD
"weight": null, "weight": null,
=======
>>>>>>> ce-com/master
"discussion_locked": false, "discussion_locked": false,
"_links": { "_links": {
"self": "http://example.com/api/v4/projects/1/issues/2", "self": "http://example.com/api/v4/projects/1/issues/2",
...@@ -535,13 +526,8 @@ PUT /projects/:id/issues/:issue_iid ...@@ -535,13 +526,8 @@ PUT /projects/:id/issues/:issue_iid
| `state_event` | string | no | The state event of an issue. Set `close` to close the issue and `reopen` to reopen it | | `state_event` | string | no | The state event of an issue. Set `close` to close the issue and `reopen` to reopen it |
| `updated_at` | string | no | Date time string, ISO 8601 formatted, e.g. `2016-03-11T03:45:40Z` (requires admin or project owner rights) | | `updated_at` | string | no | Date time string, ISO 8601 formatted, e.g. `2016-03-11T03:45:40Z` (requires admin or project owner rights) |
| `due_date` | string | no | Date time string in the format YEAR-MONTH-DAY, e.g. `2016-03-11` | | `due_date` | string | no | Date time string in the format YEAR-MONTH-DAY, e.g. `2016-03-11` |
<<<<<<< HEAD
| `weight` | integer | no | The weight of the issue in range 0 to 9 | | `weight` | integer | no | The weight of the issue in range 0 to 9 |
| `discussion_locked` | boolean | no | Flag indicating if the issue's discussion is locked. If the discussion is locked only project members can add or edit comments. | | `discussion_locked` | boolean | no | Flag indicating if the issue's discussion is locked. If the discussion is locked only project members can add or edit comments. |
=======
| `discussion_locked` | boolean | no | Flag indicating if the issue's discussion is locked. If the discussion is locked only project members can add or edit comments. |
>>>>>>> ce-com/master
```bash ```bash
curl --request PUT --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v4/projects/4/issues/85?state_event=close curl --request PUT --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v4/projects/4/issues/85?state_event=close
...@@ -585,10 +571,7 @@ Example response: ...@@ -585,10 +571,7 @@ Example response:
"human_total_time_spent": null "human_total_time_spent": null
}, },
"confidential": false, "confidential": false,
<<<<<<< HEAD
"weight": null, "weight": null,
=======
>>>>>>> ce-com/master
"discussion_locked": false, "discussion_locked": false,
"_links": { "_links": {
"self": "http://example.com/api/v4/projects/1/issues/2", "self": "http://example.com/api/v4/projects/1/issues/2",
...@@ -689,10 +672,7 @@ Example response: ...@@ -689,10 +672,7 @@ Example response:
"human_total_time_spent": null "human_total_time_spent": null
}, },
"confidential": false, "confidential": false,
<<<<<<< HEAD
"weight": null, "weight": null,
=======
>>>>>>> ce-com/master
"discussion_locked": false, "discussion_locked": false,
"_links": { "_links": {
"self": "http://example.com/api/v4/projects/1/issues/2", "self": "http://example.com/api/v4/projects/1/issues/2",
...@@ -772,10 +752,7 @@ Example response: ...@@ -772,10 +752,7 @@ Example response:
"human_total_time_spent": null "human_total_time_spent": null
}, },
"confidential": false, "confidential": false,
<<<<<<< HEAD
"weight": null, "weight": null,
=======
>>>>>>> ce-com/master
"discussion_locked": false, "discussion_locked": false,
"_links": { "_links": {
"self": "http://example.com/api/v4/projects/1/issues/2", "self": "http://example.com/api/v4/projects/1/issues/2",
...@@ -938,10 +915,7 @@ Example response: ...@@ -938,10 +915,7 @@ Example response:
"due_date": null, "due_date": null,
"web_url": "http://example.com/example/example/issues/110", "web_url": "http://example.com/example/example/issues/110",
"confidential": false, "confidential": false,
<<<<<<< HEAD "weight": null,
"weight": null
=======
>>>>>>> ce-com/master
"discussion_locked": false "discussion_locked": false
}, },
"target_url": "https://gitlab.example.com/gitlab-org/gitlab-ci/issues/10", "target_url": "https://gitlab.example.com/gitlab-org/gitlab-ci/issues/10",
......
...@@ -532,10 +532,7 @@ PUT /projects/:id/merge_requests/:merge_request_iid ...@@ -532,10 +532,7 @@ PUT /projects/:id/merge_requests/:merge_request_iid
| `labels` | string | no | Labels for MR as a comma-separated list | | `labels` | string | no | Labels for MR as a comma-separated list |
| `milestone_id` | integer | no | The ID of a milestone | | `milestone_id` | integer | no | The ID of a milestone |
| `remove_source_branch` | boolean | no | Flag indicating if a merge request should remove the source branch when merging | | `remove_source_branch` | boolean | no | Flag indicating if a merge request should remove the source branch when merging |
<<<<<<< HEAD
| `squash` | boolean| no | Squash commits into a single commit when merging | | `squash` | boolean| no | Squash commits into a single commit when merging |
=======
>>>>>>> ce-com/master
| `discussion_locked` | boolean | no | Flag indicating if the merge request's discussion is locked. If the discussion is locked only project members can add, edit or resolve comments. | | `discussion_locked` | boolean | no | Flag indicating if the merge request's discussion is locked. If the discussion is locked only project members can add, edit or resolve comments. |
Must include at least one non-required attribute from above. Must include at least one non-required attribute from above.
......
...@@ -49,13 +49,10 @@ module API ...@@ -49,13 +49,10 @@ module API
optional :due_date, type: String, desc: 'Date string in the format YEAR-MONTH-DAY' optional :due_date, type: String, desc: 'Date string in the format YEAR-MONTH-DAY'
optional :confidential, type: Boolean, desc: 'Boolean parameter if the issue should be confidential' optional :confidential, type: Boolean, desc: 'Boolean parameter if the issue should be confidential'
optional :discussion_locked, type: Boolean, desc: " Boolean parameter indicating if the issue's discussion is locked" optional :discussion_locked, type: Boolean, desc: " Boolean parameter indicating if the issue's discussion is locked"
<<<<<<< HEAD
end end
params :issue_params_ee do params :issue_params_ee do
optional :weight, type: Integer, values: 0..9, desc: 'The weight of the issue' optional :weight, type: Integer, values: 0..9, desc: 'The weight of the issue'
=======
>>>>>>> ce-com/master
end end
params :issue_params do params :issue_params do
...@@ -202,14 +199,9 @@ module API ...@@ -202,14 +199,9 @@ module API
desc: 'Date time when the issue was updated. Available only for admins and project owners.' desc: 'Date time when the issue was updated. Available only for admins and project owners.'
optional :state_event, type: String, values: %w[reopen close], desc: 'State of the issue' optional :state_event, type: String, values: %w[reopen close], desc: 'State of the issue'
use :issue_params use :issue_params
<<<<<<< HEAD
at_least_one_of :title, :description, :assignee_ids, :assignee_id, :milestone_id, at_least_one_of :title, :description, :assignee_ids, :assignee_id, :milestone_id,
:labels, :created_at, :due_date, :confidential, :state_event, :labels, :created_at, :due_date, :confidential, :state_event,
:weight, :discussion_locked :weight, :discussion_locked
=======
at_least_one_of :title, :description, :assignee_ids, :assignee_id, :milestone_id, :discussion_locked,
:labels, :created_at, :due_date, :confidential, :state_event
>>>>>>> ce-com/master
end end
put ':id/issues/:issue_iid' do put ':id/issues/:issue_iid' do
issue = user_project.issues.find_by!(iid: params.delete(:issue_iid)) issue = user_project.issues.find_by!(iid: params.delete(:issue_iid))
......
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