Skip to content
Snippets Groups Projects

Return 40x error codes if branch could not be deleted in UI

Merged Stan Hu requested to merge stanhu/gitlab-ce:report-delete-branch-error-codes into master

What does this MR do?

This MR makes BranchesController return the proper status code in case of a failure to delete a branch.

Why was this MR needed?

Deleting a branch would always return status 200, even if the branch could not be found or deleted for some reason. This was confusing because while trying to debug an issue with encoded slashes, it looked like the deletion was successful when it had failed.

What are the relevant issue numbers?

This issue was uncovered in #1804 (closed)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading