forgejo/services/migrations
Sybren 25f4b7d7cd
Prevent duplicate labels when importing more than 99 (#22591)
Importing labels (via `gitea restore-repo`) did not split them up into
batches properly. The first "batch" would create all labels, the second
"batch" would create all labels except those in the first "batch", etc.
This meant that when importing more than 99 labels (the batch size)
there would always be duplicate ones.

This is solved by actually passing `labels[:lbBatchSize]` to the
`CreateLabels()` function, instead of the entire list `labels`.
2023-01-24 19:44:55 +00:00
..
codebase.go
codebase_test.go
common.go
dump.go
error.go
git.go
gitbucket.go Fix migration from gitbucket (repost) (#22477) 2023-01-17 15:22:00 +08:00
gitea_downloader.go
gitea_downloader_test.go
gitea_uploader.go Fix assignment to cm.AssigneeID when importing comments (#22528) 2023-01-19 13:24:40 -05:00
gitea_uploader_test.go
github.go Fix migration from gitbucket (repost) (#22477) 2023-01-17 15:22:00 +08:00
github_test.go
gitlab.go Update golang deps (#22410) 2023-01-12 09:21:16 +01:00
gitlab_test.go
gogs.go
gogs_test.go
http_client.go
main_test.go
migrate.go Prevent duplicate labels when importing more than 99 (#22591) 2023-01-24 19:44:55 +00:00
migrate_test.go
onedev.go
onedev_test.go
restore.go
update.go