gitea/services
Lunny Xiao 7de114a332
Rework delete org and rename org UI (#34762)
# What's the problem of the original implementation

Renaming organization will mix with organization's information change
make the operation difficult to keep consistent.

This PR created a danger zone like what's repository setting. It also
moved organization's `rename` and `delete` operations to this zone. The
original updating repository will not change the name any more.

This is also a step to extract the `updaterepository` function
completely.

Before:


![image](https://github.com/user-attachments/assets/d097dfdf-07be-4d79-8fcf-e78822515575)

![image](https://github.com/user-attachments/assets/42ee832c-cb44-41ec-9fe3-92a1c94747d2)

After:


![image](https://github.com/user-attachments/assets/f7700ed7-f104-4302-a924-09e118f24be3)

![image](https://github.com/user-attachments/assets/4c49952a-578e-4d14-bd01-4a68c9e02412)

![image](https://github.com/user-attachments/assets/814829d3-00fe-4e87-ae05-625c129170d2)

![image](https://github.com/user-attachments/assets/b067b263-c909-4b48-b23c-73481c32d350)

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-06-21 18:21:48 +07:00
..
actions Add workflow_run api + webhook (#33964) 2025-06-20 20:14:00 +07:00
agit Option to delay conflict checking of old pull requests until page view (#27779) 2025-04-24 19:26:57 +07:00
asymkey Improve instance wide ssh commit signing (#34341) 2025-06-11 10:32:55 +07:00
attachment Enable testifylint rules (#34075) 2025-03-31 01:53:48 +07:00
auth Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +07:00
automerge Option to delay conflict checking of old pull requests until page view (#27779) 2025-04-24 19:26:57 +07:00
context Refactor editor (#34780) 2025-06-21 19:20:51 +07:00
contexttest Add API endpoint to request contents of multiple files simultaniously (#34139) 2025-04-22 01:20:11 +07:00
convert Add workflow_run api + webhook (#33964) 2025-06-20 20:14:00 +07:00
cron Use default Git timeout when checking repo health (#33593) 2025-02-14 15:13:56 +07:00
doctor Remove unused param `doer` (#34545) 2025-06-18 03:12:16 +07:00
externalaccount Enable addtional linters (#34085) 2025-04-01 10:14:01 +07:00
feed Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +07:00
forms Rework delete org and rename org UI (#34762) 2025-06-21 18:21:48 +07:00
git Fix GetUsersByEmails (#34643) 2025-06-07 18:30:36 +07:00
gitdiff Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +07:00
indexer Update issue indexer after merging a PR (#30715) 2024-05-08 14:45:15 +07:00
issue Fix doctor deleting orphaned issues attachments (#34142) 2025-05-30 05:06:03 +07:00
lfs Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +07:00
mailer Improve img lazy loading (#34804) 2025-06-21 14:53:22 +07:00
markup Refactor Git Attribute & performance optimization (#34154) 2025-04-11 21:41:29 +07:00
migrations Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +07:00
mirror Only git operations should update `last changed` of a repository (#34388) 2025-05-11 19:18:46 +07:00
notify Add workflow_run api + webhook (#33964) 2025-06-20 20:14:00 +07:00
oauth2_provider Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +07:00
org Remove unused param `doer` (#34545) 2025-06-18 03:12:16 +07:00
packages Upgrade `gopls` to v0.19.0, add `make fix` (#34772) 2025-06-18 19:30:40 +07:00
projects Enable addtional linters (#34085) 2025-04-01 10:14:01 +07:00
pull Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +07:00
release Enable testifylint rules (#34075) 2025-03-31 01:53:48 +07:00
repository Refactor editor (#34780) 2025-06-21 19:20:51 +07:00
secrets Added Description Field for Secrets and Variables (#33526) 2025-03-17 19:24:54 +07:00
task Fix bug when migrating repository (#34182) 2025-04-14 04:48:03 +07:00
uinotification
user Fix last admin check when syncing users (#34649) 2025-06-09 20:57:45 +07:00
versioned_migration Add global lock for migrations to make upgrade more safe with multiple replications (#33706) 2025-03-07 21:08:53 +07:00
webhook Fix Feishu webhook signature verification (#34788) 2025-06-20 13:09:03 +07:00
webtheme Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +07:00
wiki Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +07:00