Issue:
The git reference associated to a pull-request can be broken for a few reasons.
When it happens, it is not possible to access the pull-request anymore.
The user gets X 410 Gone: The pull-request is not accessible anymore
errors on the homepage view and the overview page.
Proposition:
We would like to:
- Stop being spammed with X error modals on the homepage, and have a way to flag the broken pull-requests instead.
- Access the broken pull-requests, and be able to abandon them.
For the first point, the broken pull-requests will be identifiable with [Error] badges on the homepage view.
In addition, a warning notification bubble will be displayed next to the number of open pull-requests in the repository, located in the tab label.
For the second point, read actions (GET
routes) will not throw a 410 error anymore in order to allow the user to access the pull-request.
The PATCH pull_requests:id
won't throw a 410 error ONLY if the PATCH
action is made on the pull-request status with the abandon
status.