2016-06-22 15:30:34 +05:30
|
|
|
# Model relationships to be included in the project import/export
|
2019-09-04 21:01:54 +05:30
|
|
|
#
|
|
|
|
# This list _must_ only contain relationships that are available to both CE and
|
|
|
|
# EE. EE specific relationships must be defined in the `ee` section further
|
|
|
|
# down below.
|
2019-12-04 20:38:33 +05:30
|
|
|
tree:
|
|
|
|
project:
|
|
|
|
- labels:
|
|
|
|
- :priorities
|
|
|
|
- milestones:
|
2017-09-10 17:25:29 +05:30
|
|
|
- events:
|
|
|
|
- :push_event_payload
|
2019-12-04 20:38:33 +05:30
|
|
|
- issues:
|
2017-09-10 17:25:29 +05:30
|
|
|
- events:
|
|
|
|
- :push_event_payload
|
2019-12-04 20:38:33 +05:30
|
|
|
- :timelogs
|
|
|
|
- notes:
|
|
|
|
- :author
|
|
|
|
- events:
|
|
|
|
- :push_event_payload
|
|
|
|
- label_links:
|
|
|
|
- label:
|
|
|
|
- :priorities
|
|
|
|
- milestone:
|
|
|
|
- events:
|
|
|
|
- :push_event_payload
|
|
|
|
- resource_label_events:
|
|
|
|
- label:
|
|
|
|
- :priorities
|
|
|
|
- :issue_assignees
|
|
|
|
- snippets:
|
|
|
|
- :award_emoji
|
|
|
|
- notes:
|
|
|
|
- :author
|
|
|
|
- releases:
|
|
|
|
- :links
|
|
|
|
- project_members:
|
|
|
|
- :user
|
|
|
|
- merge_requests:
|
|
|
|
- :metrics
|
|
|
|
- notes:
|
|
|
|
- :author
|
|
|
|
- events:
|
|
|
|
- :push_event_payload
|
|
|
|
- :suggestions
|
|
|
|
- merge_request_diff:
|
|
|
|
- :merge_request_diff_commits
|
|
|
|
- :merge_request_diff_files
|
2017-09-10 17:25:29 +05:30
|
|
|
- events:
|
|
|
|
- :push_event_payload
|
2019-12-04 20:38:33 +05:30
|
|
|
- :timelogs
|
|
|
|
- label_links:
|
|
|
|
- label:
|
|
|
|
- :priorities
|
|
|
|
- milestone:
|
|
|
|
- events:
|
|
|
|
- :push_event_payload
|
|
|
|
- resource_label_events:
|
|
|
|
- label:
|
|
|
|
- :priorities
|
|
|
|
- ci_pipelines:
|
|
|
|
- notes:
|
|
|
|
- :author
|
|
|
|
- events:
|
|
|
|
- :push_event_payload
|
|
|
|
- stages:
|
|
|
|
- :statuses
|
|
|
|
- :external_pull_request
|
|
|
|
- :merge_request
|
|
|
|
- :external_pull_requests
|
|
|
|
- :auto_devops
|
|
|
|
- :triggers
|
|
|
|
- :pipeline_schedules
|
|
|
|
- :services
|
|
|
|
- protected_branches:
|
|
|
|
- :merge_access_levels
|
|
|
|
- :push_access_levels
|
|
|
|
- protected_tags:
|
|
|
|
- :create_access_levels
|
|
|
|
- :project_feature
|
|
|
|
- :custom_attributes
|
|
|
|
- :prometheus_metrics
|
|
|
|
- :project_badges
|
|
|
|
- :ci_cd_settings
|
|
|
|
- :error_tracking_setting
|
|
|
|
- :metrics_setting
|
|
|
|
- boards:
|
|
|
|
- lists:
|
|
|
|
- label:
|
|
|
|
- :priorities
|
|
|
|
group_members:
|
|
|
|
- :user
|
2016-06-22 15:30:34 +05:30
|
|
|
|
|
|
|
# Only include the following attributes for the models specified.
|
|
|
|
included_attributes:
|
|
|
|
user:
|
|
|
|
- :id
|
|
|
|
- :email
|
|
|
|
- :username
|
|
|
|
author:
|
|
|
|
- :name
|
2018-10-15 14:42:47 +05:30
|
|
|
ci_cd_settings:
|
|
|
|
- :group_runners_enabled
|
2016-06-22 15:30:34 +05:30
|
|
|
|
|
|
|
# Do not include the following attributes for the models specified.
|
|
|
|
excluded_attributes:
|
2017-08-17 22:00:37 +05:30
|
|
|
project:
|
|
|
|
- :name
|
|
|
|
- :path
|
|
|
|
- :namespace_id
|
|
|
|
- :creator_id
|
2018-12-13 13:39:08 +05:30
|
|
|
- :pool_repository_id
|
2017-08-17 22:00:37 +05:30
|
|
|
- :import_url
|
|
|
|
- :import_status
|
|
|
|
- :avatar
|
|
|
|
- :import_type
|
|
|
|
- :import_source
|
|
|
|
- :mirror
|
|
|
|
- :runners_token
|
2019-02-15 15:39:39 +05:30
|
|
|
- :runners_token_encrypted
|
2017-08-17 22:00:37 +05:30
|
|
|
- :repository_storage
|
|
|
|
- :repository_read_only
|
|
|
|
- :lfs_enabled
|
|
|
|
- :created_at
|
|
|
|
- :updated_at
|
|
|
|
- :id
|
|
|
|
- :star_count
|
|
|
|
- :last_activity_at
|
|
|
|
- :last_repository_updated_at
|
|
|
|
- :last_repository_check_at
|
2018-03-17 18:26:18 +05:30
|
|
|
- :storage_version
|
2018-10-15 14:42:47 +05:30
|
|
|
- :remote_mirror_available_overridden
|
2018-05-09 12:01:36 +05:30
|
|
|
- :description_html
|
2018-11-18 11:00:15 +05:30
|
|
|
- :repository_languages
|
2019-02-15 15:39:39 +05:30
|
|
|
- :bfg_object_map
|
2019-07-07 11:18:12 +05:30
|
|
|
- :detected_repository_languages
|
|
|
|
- :tag_list
|
2019-09-04 21:01:54 +05:30
|
|
|
- :mirror_user_id
|
|
|
|
- :mirror_trigger_builds
|
|
|
|
- :only_mirror_protected_branches
|
|
|
|
- :pull_mirror_available_overridden
|
2019-12-21 20:55:43 +05:30
|
|
|
- :pull_mirror_branch_prefix
|
2019-09-04 21:01:54 +05:30
|
|
|
- :mirror_overwrites_diverged_branches
|
|
|
|
- :packages_enabled
|
|
|
|
- :mirror_last_update_at
|
|
|
|
- :mirror_last_successful_update_at
|
2019-10-12 21:52:04 +05:30
|
|
|
- :emails_disabled
|
2019-12-21 20:55:43 +05:30
|
|
|
- :max_pages_size
|
|
|
|
- :max_artifacts_size
|
2019-02-15 15:39:39 +05:30
|
|
|
namespaces:
|
|
|
|
- :runners_token
|
|
|
|
- :runners_token_encrypted
|
|
|
|
project_import_state:
|
|
|
|
- :last_error
|
|
|
|
- :jid
|
2019-09-04 21:01:54 +05:30
|
|
|
- :last_update_at
|
|
|
|
- :last_successful_update_at
|
2018-11-20 20:47:30 +05:30
|
|
|
prometheus_metrics:
|
|
|
|
- :common
|
|
|
|
- :identifier
|
2016-06-22 15:30:34 +05:30
|
|
|
snippets:
|
|
|
|
- :expired_at
|
2016-08-24 12:49:21 +05:30
|
|
|
merge_request_diff:
|
2019-03-02 22:35:43 +05:30
|
|
|
- :external_diff
|
|
|
|
- :stored_externally
|
|
|
|
- :external_diff_store
|
2017-09-10 17:25:29 +05:30
|
|
|
merge_request_diff_files:
|
|
|
|
- :diff
|
2019-03-02 22:35:43 +05:30
|
|
|
- :external_diff_offset
|
|
|
|
- :external_diff_size
|
2016-08-24 12:49:21 +05:30
|
|
|
issues:
|
|
|
|
- :milestone_id
|
2019-12-04 20:38:33 +05:30
|
|
|
merge_request:
|
|
|
|
- :milestone_id
|
|
|
|
- :ref_fetched
|
|
|
|
- :merge_jid
|
|
|
|
- :rebase_jid
|
|
|
|
- :latest_merge_request_diff_id
|
2016-08-24 12:49:21 +05:30
|
|
|
merge_requests:
|
|
|
|
- :milestone_id
|
2017-09-10 17:25:29 +05:30
|
|
|
- :ref_fetched
|
|
|
|
- :merge_jid
|
2019-09-30 21:07:59 +05:30
|
|
|
- :rebase_jid
|
2018-03-17 18:26:18 +05:30
|
|
|
- :latest_merge_request_diff_id
|
2016-09-29 09:46:39 +05:30
|
|
|
award_emoji:
|
|
|
|
- :awardable_id
|
2017-08-17 22:00:37 +05:30
|
|
|
statuses:
|
|
|
|
- :trace
|
|
|
|
- :token
|
2019-02-15 15:39:39 +05:30
|
|
|
- :token_encrypted
|
2018-03-17 18:26:18 +05:30
|
|
|
- :when
|
2018-05-09 12:01:36 +05:30
|
|
|
- :artifacts_file
|
|
|
|
- :artifacts_metadata
|
2019-09-04 21:01:54 +05:30
|
|
|
- :artifacts_file_store
|
|
|
|
- :artifacts_metadata_store
|
|
|
|
- :artifacts_size
|
2019-02-15 15:39:39 +05:30
|
|
|
- :commands
|
2017-09-10 17:25:29 +05:30
|
|
|
push_event_payload:
|
|
|
|
- :event_id
|
2018-03-27 19:54:05 +05:30
|
|
|
project_badges:
|
|
|
|
- :group_id
|
2018-11-20 20:47:30 +05:30
|
|
|
resource_label_events:
|
|
|
|
- :reference
|
|
|
|
- :reference_html
|
|
|
|
- :epic_id
|
2019-02-15 15:39:39 +05:30
|
|
|
runners:
|
2018-12-05 23:21:45 +05:30
|
|
|
- :token
|
2019-02-15 15:39:39 +05:30
|
|
|
- :token_encrypted
|
2018-11-20 20:47:30 +05:30
|
|
|
services:
|
|
|
|
- :template
|
2019-02-15 15:39:39 +05:30
|
|
|
error_tracking_setting:
|
|
|
|
- :encrypted_token
|
|
|
|
- :encrypted_token_iv
|
2019-03-02 22:35:43 +05:30
|
|
|
- :enabled
|
2016-06-22 15:30:34 +05:30
|
|
|
|
|
|
|
methods:
|
2019-09-04 21:01:54 +05:30
|
|
|
notes:
|
|
|
|
- :type
|
2016-11-03 12:29:30 +05:30
|
|
|
labels:
|
|
|
|
- :type
|
|
|
|
label:
|
|
|
|
- :type
|
2016-06-22 15:30:34 +05:30
|
|
|
statuses:
|
2016-08-24 12:49:21 +05:30
|
|
|
- :type
|
2016-10-01 15:18:49 +05:30
|
|
|
services:
|
|
|
|
- :type
|
2017-09-10 17:25:29 +05:30
|
|
|
merge_request_diff_files:
|
|
|
|
- :utf8_diff
|
2017-08-17 22:00:37 +05:30
|
|
|
merge_requests:
|
|
|
|
- :diff_head_sha
|
2018-03-17 18:26:18 +05:30
|
|
|
- :source_branch_sha
|
|
|
|
- :target_branch_sha
|
2017-09-10 17:25:29 +05:30
|
|
|
events:
|
|
|
|
- :action
|
|
|
|
push_event_payload:
|
2018-03-17 18:26:18 +05:30
|
|
|
- :action
|
2018-03-27 19:54:05 +05:30
|
|
|
project_badges:
|
|
|
|
- :type
|
2019-10-12 21:52:04 +05:30
|
|
|
lists:
|
|
|
|
- :list_type
|
2019-12-04 20:38:33 +05:30
|
|
|
ci_pipelines:
|
|
|
|
- :notes
|
|
|
|
|
|
|
|
preloads:
|
|
|
|
statuses:
|
|
|
|
# TODO: We cannot preload tags, as they are not part of `GenericCommitStatus`
|
|
|
|
# tags: # needed by tag_list
|
|
|
|
project: # deprecated: needed by coverage_regex of Ci::Build
|
|
|
|
merge_requests:
|
|
|
|
source_project: # needed by source_branch_sha and diff_head_sha
|
|
|
|
target_project: # needed by target_branch_sha
|
|
|
|
assignees: # needed by assigne_id that is implemented by DeprecatedAssignee
|
2019-09-04 21:01:54 +05:30
|
|
|
|
|
|
|
# EE specific relationships and settings to include. All of this will be merged
|
|
|
|
# into the previous structures if EE is used.
|
|
|
|
ee:
|
2019-12-04 20:38:33 +05:30
|
|
|
tree:
|
|
|
|
project:
|
2019-12-21 20:55:43 +05:30
|
|
|
- issues:
|
|
|
|
- designs:
|
|
|
|
- notes:
|
|
|
|
- :author
|
|
|
|
- events:
|
|
|
|
- :push_event_payload
|
|
|
|
- design_versions:
|
|
|
|
- actions:
|
|
|
|
- :design # Duplicate export of issues.designs in order to link the record to both Issue and DesignVersion
|
|
|
|
- protected_branches:
|
2019-12-04 20:38:33 +05:30
|
|
|
- :unprotect_access_levels
|
2019-12-21 20:55:43 +05:30
|
|
|
- protected_environments:
|
2019-12-04 20:38:33 +05:30
|
|
|
- :deploy_access_levels
|