forgejo/services/migrations
Gusted 813ece0f5d
fix: hanndle deleted user modifying event state in gitlab migration
- In the case that a deleted user modified the state of an issue or pull
request, the user field in the API response for that state event will
be `null`. Handle this by falling back to Forgejo's internal Ghost user.
- No testing, this bug was hit on Codeberg with a instance
that is only IPv6-accessible and otherwise might be phased out. So I
will do some mental gymnastics and argue, migration feature will someday
be replaced by F3 and considering the logic that was added its not worth
the tradeoff to add testing for this by trying to recreate the same
scenario on another Gitlab instance and then use that as a testing
vector. To still give some confindence in this patch, it was confirmed
that this exact fix worked on Codeberg.
2025-03-12 13:30:38 +01:00
..
testdata feat: implement migration of website field from gogs/gitea/github (#6474) 2025-01-20 12:18:19 +00:00
codebase.go Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
codebase_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v1.64.6 (forgejo) (#7118) 2025-03-04 21:38:35 +00:00
common.go Adjust object format interface (#28469) 2023-12-17 11:56:08 +00:00
dump.go feat: implement migration of website field from gogs/gitea/github (#6474) 2025-01-20 12:18:19 +00:00
error.go Update module github.com/google/go-github/v63 to v64 2024-08-24 16:05:36 +00:00
forgejo_downloader.go [BRANDING] add Forgejo Git Service and migration UI 2024-02-05 16:05:02 +01:00
forgejo_downloader_test.go [BRANDING] add Forgejo Git Service and migration UI 2024-02-05 16:05:02 +01:00
git.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
gitbucket.go Change the default maxPerPage for gitbucket (#30392) 2024-04-15 20:01:36 +02:00
gitea_downloader.go feat: implement migration of website field from gogs/gitea/github (#6474) 2025-01-20 12:18:19 +00:00
gitea_downloader_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v1.64.6 (forgejo) (#7118) 2025-03-04 21:38:35 +00:00
gitea_uploader.go feat: implement migration of website field from gogs/gitea/github (#6474) 2025-01-20 12:18:19 +00:00
gitea_uploader_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v1.64.6 (forgejo) (#7118) 2025-03-04 21:38:35 +00:00
github.go feat: implement migration of website field from gogs/gitea/github (#6474) 2025-01-20 12:18:19 +00:00
github_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v1.64.6 (forgejo) (#7118) 2025-03-04 21:38:35 +00:00
gitlab.go fix: hanndle deleted user modifying event state in gitlab migration 2025-03-12 13:30:38 +01:00
gitlab_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v1.64.6 (forgejo) (#7118) 2025-03-04 21:38:35 +00:00
gogs.go feat: implement migration of website field from gogs/gitea/github (#6474) 2025-01-20 12:18:19 +00:00
gogs_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v1.64.6 (forgejo) (#7118) 2025-03-04 21:38:35 +00:00
http_client.go Support allowed hosts for migrations to work with proxy (#32025) 2024-09-14 17:52:54 +02:00
main_test.go feat: implement migration of website field from gogs/gitea/github (#6474) 2025-01-20 12:18:19 +00:00
migrate.go fix: do not allow SSH url for migration (#7004) 2025-02-21 07:57:06 +00:00
migrate_test.go fix: do not allow SSH url for migration (#7004) 2025-02-21 07:57:06 +00:00
onedev.go Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
onedev_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v1.64.6 (forgejo) (#7118) 2025-03-04 21:38:35 +00:00
restore.go feat: implement migration of website field from gogs/gitea/github (#6474) 2025-01-20 12:18:19 +00:00
update.go Use db.Find instead of writing methods for every object (#28084) 2023-11-24 03:49:41 +00:00