import_export.yml 2.66 KB
Newer Older
1
2
# Model relationships to be included in the project import/export
project_tree:
3
4
  - labels:
      :priorities
5
  - milestones:
6
7
    - events:
      - :push_event_payload
8
  - issues:
9
10
    - events:
      - :push_event_payload
11
    - :timelogs
12
    - notes:
13
      - :author
14
15
      - events:
        - :push_event_payload
16
    - label_links:
17
18
      - label:
          :priorities
19
    - milestone:
20
21
      - events:
        - :push_event_payload
22
  - snippets:
23
    - :award_emoji
24
25
    - notes:
        :author
26
  - :releases
27
  - project_members:
28
    - :user
29
  - merge_requests:
30
    - notes:
James Lopez's avatar
James Lopez committed
31
      - :author
32
33
      - events:
        - :push_event_payload
34
    - merge_request_diff:
35
      - :merge_request_diff_commits
36
      - :merge_request_diff_files
37
38
    - events:
      - :push_event_payload
39
    - :timelogs
40
    - label_links:
41
42
      - label:
          :priorities
43
    - milestone:
44
45
      - events:
        - :push_event_payload
46
  - pipelines:
47
    - notes:
James Lopez's avatar
James Lopez committed
48
      - :author
49
50
      - events:
        - :push_event_payload
51
    - :stages
52
    - :statuses
Zeger-Jan van de Weg's avatar
Zeger-Jan van de Weg committed
53
  - :auto_devops
54
55
  - :triggers
  - :pipeline_schedules
James Lopez's avatar
James Lopez committed
56
57
  - :services
  - :hooks
58
59
60
  - protected_branches:
    - :merge_access_levels
    - :push_access_levels
61
  - protected_tags:
62
    - :create_access_levels
Felipe Artur's avatar
Felipe Artur committed
63
  - :project_feature
64

65
66
67
# Only include the following attributes for the models specified.
included_attributes:
  user:
68
69
    - :id
    - :email
James Lopez's avatar
James Lopez committed
70
    - :username
71
72
  author:
    - :name
James Lopez's avatar
James Lopez committed
73

74
75
# Do not include the following attributes for the models specified.
excluded_attributes:
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
  project:
    - :name
    - :path
    - :namespace_id
    - :creator_id
    - :import_url
    - :import_status
    - :avatar
    - :import_type
    - :import_source
    - :import_error
    - :mirror
    - :runners_token
    - :repository_storage
    - :repository_read_only
    - :lfs_enabled
    - :import_jid
    - :created_at
    - :updated_at
    - :import_jid
    - :import_jid
    - :id
    - :star_count
99
    - :last_activity_at
100
101
    - :last_repository_updated_at
    - :last_repository_check_at
102
    - :storage_version
103
  snippets:
James Lopez's avatar
James Lopez committed
104
    - :expired_at
James Lopez's avatar
James Lopez committed
105
106
  merge_request_diff:
    - :st_diffs
107
108
  merge_request_diff_files:
    - :diff
109
110
111
112
  issues:
    - :milestone_id
  merge_requests:
    - :milestone_id
113
    - :ref_fetched
114
    - :merge_jid
115
116
  award_emoji:
    - :awardable_id
Kamil Trzciński's avatar
Kamil Trzciński committed
117
118
119
  statuses:
    - :trace
    - :token
120
121
  push_event_payload:
    - :event_id
James Lopez's avatar
James Lopez committed
122
123

methods:
124
  labels:
James Lopez's avatar
James Lopez committed
125
126
    - :type
  label:
127
    - :type
James Lopez's avatar
James Lopez committed
128
  statuses:
James Lopez's avatar
James Lopez committed
129
    - :type
130
131
  services:
    - :type
James Lopez's avatar
James Lopez committed
132
  merge_request_diff:
Felipe Artur's avatar
Felipe Artur committed
133
    - :utf8_st_diffs
134
135
  merge_request_diff_files:
    - :utf8_diff
136
137
  merge_requests:
    - :diff_head_sha
James Lopez's avatar
James Lopez committed
138
139
    - :source_branch_sha
    - :target_branch_sha
140
  project:
141
    - :description_html
142
143
144
  events:
    - :action
  push_event_payload:
145
    - :action