Skip to content

Add option to delete repo if it is broken #17132

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
6543 opened this issue Sep 23, 2021 · 7 comments
Closed

Add option to delete repo if it is broken #17132

6543 opened this issue Sep 23, 2021 · 7 comments
Labels
type/enhancement An improvement of existing functionality type/proposal The new feature has not been accepted yet but needs to be discussed first.
Milestone

Comments

@6543
Copy link
Member

6543 commented Sep 23, 2021

If a repo is broken somehow. you will just see a 500 page without the option to delete it.

you can manually add /settings to go to repo settlings page to delete it, but most people don't know.

So I propose a button to directly delete it.

@6543 6543 added type/enhancement An improvement of existing functionality type/proposal The new feature has not been accepted yet but needs to be discussed first. labels Sep 23, 2021
@delvh
Copy link
Member

delvh commented Sep 23, 2021

How do you break a repo in the first place?
I support your request, but I definitely wonder what you have to do to achieve that…

@6543
Copy link
Member Author

6543 commented Sep 24, 2021

https://fosstodon.org/@5am/106979181347005295

It should not hapen ... but there is real world

@wxiaoguang
Copy link
Contributor

Where should the link be put to, is there any recommended page/location?

@lunny
Copy link
Member

lunny commented Sep 24, 2021

You can delete it from admin panel currently.

@nolash
Copy link

nolash commented Oct 18, 2021

I got a broken one due to network issues when trying to migrate from a gitlab repo

@delvh
Copy link
Member

delvh commented Oct 18, 2021

Ah, I just noticed a very valid use-case I myself have already encountered and where I already thought about opening an issue:
On my local instance that I use to test Gitea features, I've set my repo dir to be /tmp, so that it will automatically be cleaned when I shutdown my computer.
When I restart Gitea after that, the repo is gone, as expected, but the db does not know about it, and hence I get exactly the described broken state where I cannot do anything with the repo.

@delvh
Copy link
Member

delvh commented Nov 22, 2021

Closed in #17747.

@delvh delvh closed this as completed Nov 22, 2021
@delvh delvh added this to the 1.16.0 milestone Nov 22, 2021
@go-gitea go-gitea locked and limited conversation to collaborators Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/enhancement An improvement of existing functionality type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

No branches or pull requests

5 participants