summaryrefslogtreecommitdiff
path: root/lib/gitlab/import_export/import_export.yml
blob: 1c42acab9c154e2b93944a5eb0ecca0d9f0c691a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Model relationships to be included in the project import/export
project_tree:
  - issues:
    - :events
    - notes:
      - :author
      - :events
    - label_links:
      - :label
    - milestone:
      - :events
  - snippets:
    - :award_emoji
    - notes:
        :author
  - :releases
  - project_members:
    - :user
  - merge_requests:
    - notes:
      - :author
      - :events
    - :merge_request_diff
    - :events
    - label_links:
      - :label
    - milestone:
      - :events
  - pipelines:
    - notes:
      - :author
      - :events
    - :statuses
  - :variables
  - :triggers
  - :deploy_keys
  - :services
  - :hooks
  - protected_branches:
    - :merge_access_levels
    - :push_access_levels
  - :labels
  - milestones:
    - :events
  - :project_feature

# Only include the following attributes for the models specified.
included_attributes:
  project:
    - :description
    - :visibility_level
    - :archived
  user:
    - :id
    - :email
    - :username
  author:
    - :name

# Do not include the following attributes for the models specified.
excluded_attributes:
  snippets:
    - :expired_at
  merge_request_diff:
    - :st_diffs
  issues:
    - :milestone_id
  merge_requests:
    - :milestone_id
  award_emoji:
    - :awardable_id

methods:
  statuses:
    - :type
  services:
    - :type
  merge_request_diff:
    - :utf8_st_diffs