forgejo/models
Gergely Nagy 93ba05a2dd
[GITEA] new doctor check: fix-push-mirrors-without-git-remote (#1853)
This adds a new `doctor` check: `fix-push-mirrors-without-git-remote`. The new check looks for push mirrors that do not have their remotes configured in git. If automatic fixing is enabled, it will remove these push mirrors from the database.

The check is not run by default, and thus, must be invoked manually. It should be usable in a half-migrated state, too, and as such, fixes #1800.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/1853
Co-authored-by: Gergely Nagy <forgejo@gergo.csillger.hu>
Co-committed-by: Gergely Nagy <forgejo@gergo.csillger.hu>
(cherry picked from commit 9038e07ef3)
(cherry picked from commit b15bafcbc7)
2023-12-11 16:08:43 +01:00
..
actions [CLI] implement forgejo-cli 2023-12-11 13:55:27 +01:00
activities Use db.Find instead of writing methods for every object (#28084) 2023-11-24 03:49:41 +00:00
admin
asymkey [GITEA] Add noreply email address as verified for SSH signed Git commits 2023-12-11 15:46:55 +01:00
auth [GITEA] Drop sha256-simd in favor of stdlib 2023-12-11 15:46:55 +01:00
avatars
db [GITEA] Add slow SQL query warning 2023-12-11 15:46:54 +01:00
dbfs
fixtures [GITEA] Add noreply email address as verified for SSH signed Git commits 2023-12-11 15:46:55 +01:00
forgejo/semver [SEMVER] store SemVer in ForgejoSemVer after a database upgrade 2023-12-11 14:48:36 +01:00
forgejo_migrations [SECURITY] Rework long-term authentication 2023-12-11 14:48:37 +01:00
git Second part of refactor db.Find (#28194) 2023-12-11 16:56:48 +08:00
issues [FEAT] allow setting the update date on issues and comments 2023-12-11 14:48:36 +01:00
migrations [GITEA] new doctor check: fix-push-mirrors-without-git-remote (#1853) 2023-12-11 16:08:43 +01:00
organization Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods (#28220) 2023-12-07 15:27:36 +08:00
packages Revert "packages: Calculate package size quota using package creator ID instead of owner ID (#28007)" (#28049) 2023-11-14 16:03:56 +01:00
perm Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods (#28220) 2023-12-07 15:27:36 +08:00
project Fix comment permissions (#28213) 2023-11-25 17:21:21 +00:00
pull Add Index to pull_auto_merge.doer_id (#27811) 2023-10-30 08:39:29 +00:00
repo [GITEA] new doctor check: fix-push-mirrors-without-git-remote (#1853) 2023-12-11 16:08:43 +01:00
secret Use db.Find instead of writing methods for every object (#28084) 2023-11-24 03:49:41 +00:00
shared/types
system Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods (#28220) 2023-12-07 15:27:36 +08:00
unit
unittest [GITEA] Enable mocked HTTP responses for GitLab migration test 2023-12-11 16:08:43 +01:00
user [GITEA] Allow user to select email for file operations in Web UI 2023-12-11 16:08:43 +01:00
webhook Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods (#28220) 2023-12-07 15:27:36 +08:00
error.go
fixture_generation.go
fixture_test.go
main_test.go
org.go Refactor the function RemoveOrgUser (#27582) 2023-11-03 14:01:45 +00:00
org_team.go Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods (#28220) 2023-12-07 15:27:36 +08:00
org_team_test.go
org_test.go
repo.go
repo_test.go
repo_transfer.go
repo_transfer_test.go