Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
0f1ca8b3
Commit
0f1ca8b3
authored
Aug 22, 2012
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove DELETE API for Milestones
parent
b0a901fe
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
20 deletions
+0
-20
lib/api/milestones.rb
lib/api/milestones.rb
+0
-12
spec/api/milestones_spec.rb
spec/api/milestones_spec.rb
+0
-8
No files found.
lib/api/milestones.rb
View file @
0f1ca8b3
...
...
@@ -76,18 +76,6 @@ module Gitlab
error!
({
'message'
=>
'404 Not found'
},
404
)
end
end
# Delete a project milestone
#
# Parameters:
# id (required) - The ID or code name of a project
# milestone_id (required) - The ID of a project milestone
# Example Request:
# DELETE /projects/:id/milestones/:milestone_id
delete
":id/milestones/:milestone_id"
do
@milestone
=
user_project
.
milestones
.
find
(
params
[
:milestone_id
])
@milestone
.
destroy
end
end
end
end
spec/api/milestones_spec.rb
View file @
0f1ca8b3
...
...
@@ -42,12 +42,4 @@ describe Gitlab::API do
json_response
[
'title'
].
should
==
'updated title'
end
end
describe
"DELETE /projects/:id/milestones/:milestone_id"
do
it
"should delete a project milestone"
do
expect
{
delete
"
#{
api_prefix
}
/projects/
#{
project
.
code
}
/milestones/
#{
milestone
.
id
}
?private_token=
#{
user
.
private_token
}
"
}.
to
change
{
Milestone
.
count
}.
by
(
-
1
)
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment