Added option to disable deleting of non empty repositories through the u... - #180
Added option to disable deleting of non empty repositories through the u...#180peto268 wants to merge 1 commit into
Conversation
|
This is a reasonable request. My preference, however, is to not add the delete link in the first place instead of checking in the action handler. I think eventually I will remove edit & delete from these pages in favor of editing and deleting within the repository subpages. |
|
Checking in the action handler is just because of race condition that could occur between the rendering of the link and execution of the handler. If the repository cannot be deleted the link just gets disabled. Do you plan to remove the delete link and place the functionality to another page? Still i would like to have the option to disable deleting through the gui. |
|
Ah, of course. Good point. I'm thinking of moving Delete into the Edit Repository page. This makes it much less accessible and will probably make many folks happy. I may move Edit too. Both of those complicate the repositories panel which is a complex piece of code and it is due for an overhaul. Delete is especially bothersome because of it's reliance on the Wicket session for an otherwise stateless page. I'll probably merge your suggestion, but the location of Delete may change before 1.6.0 is released. |
|
I'm hacking on this a bit. I've eliminated the delete links from the repositories page and the user page. The only place you can delete a repository is from inside the Edit Repository page and there is still the pop-up confirmation prompt. Do you still require the setting to disable deletion of non-empty repositories? |
|
I've merged this into develop with your proposed setting. |
|
Thanks On Fri, May 9, 2014 at 3:56 PM, James Moger notifications@github.comwrote:
|

Hello, i dont really like the idea of using federation to protect repositories against unintentional deletion as suggested in: https://groups.google.com/forum/#!topic/gitblit/qfsxQSUD79c.
This commit adds a new option which disables the delete link if the repository is not empty. If the administrator wishes to delete such a repository, he needs to delete it from the filesystem.
Best regards,
Peter Mihalik