Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Roadmap
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Robert Goldmann
Roadmap
Commits
46aa747e
Commit
46aa747e
authored
Jul 28, 2019
by
Robert Goldmann
Browse files
Options
Downloads
Patches
Plain Diff
api: fixed milestone delete route
parent
cfe91d1f
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
api/blueprints/MilestoneAPI.py
+2
-2
2 additions, 2 deletions
api/blueprints/MilestoneAPI.py
with
2 additions
and
2 deletions
api/blueprints/MilestoneAPI.py
+
2
−
2
View file @
46aa747e
...
...
@@ -83,11 +83,11 @@ def construct_blueprint(database):
@milestone_api.route
(
'
/milestone/<int:milestoneID>
'
,
methods
=
[
'
DELETE
'
])
@jwt_required
def
delete_mi
e
lstone
(
milestoneID
):
def
delete_mil
e
stone
(
milestoneID
):
if
not
__milestone_exists
(
milestoneID
):
return
jsonify
({
"
success
"
:
False
,
"
msg
"
:
"
No milestone with id
'
{}
'
existing
"
.
format
(
milestoneID
)}),
400
database
.
delete_
roadmap
(
milestoneID
)
database
.
delete_
milestone
(
milestoneID
)
return
jsonify
({
"
success
"
:
True
})
@milestone_api.route
(
'
/milestone
'
,
methods
=
[
'
PUT
'
])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment