diff options
author | Luke Duncalfe <lduncalfe@gitlab.com> | 2019-07-24 11:23:51 +0000 |
---|---|---|
committer | James Lopez <james@gitlab.com> | 2019-07-24 11:23:51 +0000 |
commit | d18ee3faad34097c14d2f1ee9c4a1bf7b00b202a (patch) | |
tree | 1b97dbef9e1d53eba6208831f44ec8119c05bc07 /lib/gitlab/import_export.rb | |
parent | 0a2bbc9267e5aca220cda17f13e6f62bae7f1f1b (diff) | |
download | gitlab-ce-d18ee3faad34097c14d2f1ee9c4a1bf7b00b202a.tar.gz |
LFS export records repository_type data
A project can have the same `LfsObject` linked with up to three
`LfsObjectsProject` records. Each of these records would be for a
different repository, recorded in the `repository_type` property. The
different repositories at time of writing are "project", "wiki", and
"design". See https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/13894
This change exports the list of `repository_type`s as a JSON mapping of
oid => repository_types, which are imported to recreate the correct
`LfsObjectsProject` records.
https://gitlab.com/gitlab-org/gitlab-ee/issues/11090
Diffstat (limited to 'lib/gitlab/import_export.rb')
-rw-r--r-- | lib/gitlab/import_export.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/gitlab/import_export.rb b/lib/gitlab/import_export.rb index f63a5ece71e..bb46bd657e8 100644 --- a/lib/gitlab/import_export.rb +++ b/lib/gitlab/import_export.rb @@ -4,7 +4,9 @@ module Gitlab module ImportExport extend self - # For every version update, the version history in import_export.md has to be kept up to date. + # For every version update the version history in these docs must be kept up to date: + # - development/import_export.md + # - user/project/settings/import_export.md VERSION = '0.2.4'.freeze FILENAME_LIMIT = 50 @@ -28,6 +30,14 @@ module Gitlab "project.bundle" end + def lfs_objects_filename + "lfs-objects.json" + end + + def lfs_objects_storage + "lfs-objects" + end + def config_file Rails.root.join('lib/gitlab/import_export/import_export.yml') end |