forgejo/services/migrations
Gergely Nagy ade7304eea
migrations: Map non-existant external users to Ghost
When performing migrations, and need to remap external users to local
ones, when no local mapping is possible, map the external user to Ghost,
rather than the user who initiated the migration.

Mapping the external user to the migration initiator has the potential
of breaking assumptions elsewhere, like only having one review per pull
request per user. Mapping these migrated, locally unavailable users to
Ghost makes sure these - often hidden - assumptions do not break.

Fixes #3860.

Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
2024-05-28 12:40:11 +02:00
..
testdata/gitlab [Windows] prevent ? in testdata path 2024-03-15 13:15:46 +01:00
codebase.go
codebase_test.go
common.go
dump.go
error.go
forgejo_downloader.go
forgejo_downloader_test.go
git.go
gitbucket.go Change the default maxPerPage for gitbucket (#30392) 2024-04-15 20:01:36 +02:00
gitea_downloader.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
gitea_downloader_test.go
gitea_uploader.go migrations: Map non-existant external users to Ghost 2024-05-28 12:40:11 +02:00
gitea_uploader_test.go migrations: Map non-existant external users to Ghost 2024-05-28 12:40:11 +02:00
github.go Add codespell support and fix a good number of typos with its help (#3270) 2024-05-09 13:49:37 +00:00
github_test.go
gitlab.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
gitlab_test.go Properly migrate target branch change GitLab comment (#29340) 2024-02-26 22:30:26 +01:00
gogs.go FIX gogs migration if gogs is hosted at a subpath (#3572) 2024-05-01 16:28:44 +00:00
gogs_test.go FIX gogs migration if gogs is hosted at a subpath (#3572) 2024-05-01 16:28:44 +00:00
http_client.go
main_test.go
migrate.go Fix duplicate migrated milestones (#30102) 2024-03-30 07:17:30 +01:00
migrate_test.go
onedev.go
onedev_test.go
restore.go
update.go