#2471 Add a configuration key to disable deleting branches from the UI
Merged by pingou. Opened by pingou.
delete_branch  into  master

Download 2471.patch

In some sensible pagure deployment, such as a the one running on the top
of dist-git in Fedora, it is important that the history of git repos are
not modified and that information isn't lost, this means it is not allowed
to delete a branch that was created.

This commit introduces a configuration key allowing to disable deleting
a branch from pagure's UI.

Fixes #2458
Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr

:thumbsup:

I would recommend doing this in the setUp method of the test class.

Same here :)

I agree but to make this properly we should consider more of the tests present in this file to split them according to whether or not they need this in setUp() and it is a little out of the scope of this PR imho (+ this is a little time sensitive :()

Thanks for the review!

Pull-Request has been merged by pingou

Metadata