Commit 5f043540 authored by GitLab Bot's avatar GitLab Bot

Merge remote-tracking branch 'upstream/master' into ce-to-ee-2018-05-25

parents 429848e9 6f4935bc
...@@ -24,7 +24,7 @@ module API ...@@ -24,7 +24,7 @@ module API
optional :state_event, type: String, values: %w[close activate], optional :state_event, type: String, values: %w[close activate],
desc: 'The state event of the milestone ' desc: 'The state event of the milestone '
use :optional_params use :optional_params
at_least_one_of :title, :description, :due_date, :state_event at_least_one_of :title, :description, :start_date, :due_date, :state_event
end end
def list_milestones_for(parent) def list_milestones_for(parent)
......
...@@ -196,6 +196,12 @@ shared_examples_for 'group and project milestones' do |route_definition| ...@@ -196,6 +196,12 @@ shared_examples_for 'group and project milestones' do |route_definition|
expect(json_response['state']).to eq('closed') expect(json_response['state']).to eq('closed')
end end
it 'updates milestone with only start date' do
put api(resource_route, user), start_date: Date.tomorrow
expect(response).to have_gitlab_http_status(200)
end
end end
describe "GET #{route_definition}/:milestone_id/issues" do describe "GET #{route_definition}/:milestone_id/issues" do
......
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