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/modules/migration
singuliere 367894adc8
add test coverage for original author conversion during migrations (#18506)
* add test coverage for original author conversion during migrations

And create a function to factorize a code snippet that is repeated
five times and would otherwise be more difficult to test and maintain
consistently.

Signed-off-by: Loïc Dachary <loic@dachary.org>

* fix variable scope and int64 formatting

* add missing calls to remapExternalUser and fix misplaced %d

Co-authored-by: Loïc Dachary <loic@dachary.org>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2 years ago
..
file_format_testdata Validate migration files (#18203) 2 years ago
schemas Validate migration files (#18203) 2 years ago
comment.go add test coverage for original author conversion during migrations (#18506) 2 years ago
downloader.go Move migrations into services and base into modules/migration (#17663) 3 years ago
error.go Move migrations into services and base into modules/migration (#17663) 3 years ago
file_format.go Validate migration files (#18203) 2 years ago
file_format_test.go Validate migration files (#18203) 2 years ago
issue.go add test coverage for original author conversion during migrations (#18506) 2 years ago
label.go Validate migration files (#18203) 2 years ago
messenger.go Move migrations into services and base into modules/migration (#17663) 3 years ago
milestone.go Validate migration files (#18203) 2 years ago
null_downloader.go format with gofumpt (#18184) 2 years ago
options.go Move migrations into services and base into modules/migration (#17663) 3 years ago
pullrequest.go add test coverage for original author conversion during migrations (#18506) 2 years ago
reaction.go add test coverage for original author conversion during migrations (#18506) 2 years ago
release.go add test coverage for original author conversion during migrations (#18506) 2 years ago
repo.go Move migrations into services and base into modules/migration (#17663) 3 years ago
retry_downloader.go format with gofumpt (#18184) 2 years ago
review.go add test coverage for original author conversion during migrations (#18506) 2 years ago
schemas_bindata.go Validate migration files (#18203) 2 years ago
schemas_dynamic.go Validate migration files (#18203) 2 years ago
schemas_static.go Validate migration files (#18203) 2 years ago
uploader.go Move migrations into services and base into modules/migration (#17663) 3 years ago