You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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`.
1 year ago
..
codebase.go Implement FSFE REUSE for golang files (#21840) 2 years ago
codebase_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
common.go Implement FSFE REUSE for golang files (#21840) 2 years ago
dump.go Implement FSFE REUSE for golang files (#21840) 2 years ago
error.go Implement FSFE REUSE for golang files (#21840) 2 years ago
git.go Implement FSFE REUSE for golang files (#21840) 2 years ago
gitbucket.go Fix migration from gitbucket (repost) (#22477) 1 year ago
gitea_downloader.go Implement FSFE REUSE for golang files (#21840) 2 years ago
gitea_downloader_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
gitea_uploader.go Fix assignment to `cm.AssigneeID` when importing comments (#22528) 1 year ago
gitea_uploader_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
github.go Fix migration from gitbucket (repost) (#22477) 1 year ago
github_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
gitlab.go Update golang deps (#22410) 1 year ago
gitlab_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
gogs.go Implement FSFE REUSE for golang files (#21840) 2 years ago
gogs_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
http_client.go Implement FSFE REUSE for golang files (#21840) 2 years ago
main_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
migrate.go Prevent duplicate labels when importing more than 99 (#22591) 1 year ago
migrate_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
onedev.go Implement FSFE REUSE for golang files (#21840) 2 years ago
onedev_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
restore.go Implement FSFE REUSE for golang files (#21840) 2 years ago
update.go Implement FSFE REUSE for golang files (#21840) 2 years ago