forgejo/routers/web/repo/setting
Gusted 89aba06403
[SHARED] make confirmation clearer for dangerous actions
[GITEA] Fix cancelled migration deletion modal

- https://codeberg.org/forgejo/forgejo/pulls/1473 made that dangerous
actions such as deletion also would need to type in the owner's name.
This was apparently not reflected to the deletion modal for migrations
that failed or were cancelled.

(cherry picked from commit c38dbd6f88)
(cherry picked from commit 7c07592d01)
(cherry picked from commit 78637af2b6)

[SHARED] make confirmation clearer for dangerous actions

- Currently the confirmation for dangerous actions such as transferring
the repository or deleting it only requires the user to ~~copy paste~~
type the repository name.
- This can be problematic when the user has a fork or another repository
with the same name as an organization's repository, and the confirmation
doesn't make clear that it could be deleting the wrong repository. While
it's mentioned in the dialog, it's better to be on the safe side and
also add the owner's name to be an element that has to be typed for
these dangerous actions.
- Added integration tests.

(cherry picked from commit bf679b24dd)
(cherry picked from commit 1963085dd9)
(cherry picked from commit fb94095d19)
(cherry picked from commit e1d1e46afe)
(cherry picked from commit 93993029e4)
(cherry picked from commit df3b058179)
(cherry picked from commit 8ccc6b9cba)
(cherry picked from commit 9fbe28fca3)
(cherry picked from commit 4ef2be6dc7)

https://codeberg.org/forgejo/forgejo/pulls/1873
  Moved test from repo_test.go to forgejo_confirmation_repo_test.go to
  avoid conflicts.
(cherry picked from commit 83cae67aa3)
(cherry picked from commit 447009ff56)
(cherry picked from commit 72c0a6150a)
(cherry picked from commit 8ee9c070b9)
2024-01-01 13:50:30 +01:00
..
avatar.go Improve hint when uploading a too large avatar (#26935) 2023-09-07 13:35:45 +00:00
collaboration.go Next round of db.DefaultContext refactor (#27089) 2023-09-16 14:39:12 +00:00
default_branch.go Reduce usage of db.DefaultContext (#27073) 2023-09-14 17:09:32 +00:00
deploy_key.go Use db.Find instead of writing methods for every object (#28084) 2023-11-24 03:49:41 +00:00
git_hooks.go Move some files under repo/setting (#25585) 2023-07-02 08:59:32 +08:00
lfs.go Improve ObjectFormat interface (#28496) 2023-12-19 07:20:47 +00:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
protected_branch.go Even more db.DefaultContext refactor (#27352) 2023-10-03 10:30:41 +00:00
protected_tag.go Even more db.DefaultContext refactor (#27352) 2023-10-03 10:30:41 +00:00
runners.go Fix repo count in org action settings (#27245) 2023-09-29 15:46:07 +00:00
secrets.go Fix repo count in org action settings (#27245) 2023-09-29 15:46:07 +00:00
setting.go [SHARED] make confirmation clearer for dangerous actions 2024-01-01 13:50:30 +01:00
settings_test.go More refactoring of db.DefaultContext (#27083) 2023-09-15 06:13:19 +00:00
variables.go Added instance-level variables (#28115) 2023-12-25 07:28:59 +00:00
webhook.go Adjust object format interface (#28469) 2023-12-17 11:56:08 +00:00