BigW Consortium Gitlab

import_export.yml 2.64 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:
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:
48
      - :author
49 50
      - events:
        - :push_event_payload
51
    - :stages
52
    - :statuses
53 54
  - :triggers
  - :pipeline_schedules
James Lopez committed
55 56
  - :services
  - :hooks
57 58 59
  - protected_branches:
    - :merge_access_levels
    - :push_access_levels
60
  - protected_tags:
61
    - :create_access_levels
62
  - :project_feature
63

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

73 74
# Do not include the following attributes for the models specified.
excluded_attributes:
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
  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
98
    - :last_activity_at
99 100
    - :last_repository_updated_at
    - :last_repository_check_at
101
    - :storage_version
102
  snippets:
103
    - :expired_at
104 105
  merge_request_diff:
    - :st_diffs
106 107
  merge_request_diff_files:
    - :diff
108 109 110 111
  issues:
    - :milestone_id
  merge_requests:
    - :milestone_id
112
    - :ref_fetched
113
    - :merge_jid
114 115
  award_emoji:
    - :awardable_id
116 117 118
  statuses:
    - :trace
    - :token
119 120
  push_event_payload:
    - :event_id
121 122

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