0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-16 15:01:07 +01:00
gitea/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 Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
codebase_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
common.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
dump.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
error.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
git.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
gitbucket.go Fix migration from gitbucket (repost) (#22477) 2023-01-17 15:22:00 +08:00
gitea_downloader.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
gitea_downloader_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
gitea_uploader.go Fix assignment to cm.AssigneeID when importing comments (#22528) 2023-01-19 13:24:40 -05:00
gitea_uploader_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
github.go Fix migration from gitbucket (repost) (#22477) 2023-01-17 15:22:00 +08:00
github_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
gitlab.go Update golang deps (#22410) 2023-01-12 09:21:16 +01:00
gitlab_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
gogs.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
gogs_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
http_client.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
main_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
migrate.go Prevent duplicate labels when importing more than 99 (#22591) 2023-01-24 19:44:55 +00:00
migrate_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
onedev.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
onedev_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
restore.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
update.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00