Welcome to mirror list, hosted at ThFree Co, Russian Federation.

import_export.yml « group « import_export « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c2a1a1f8575191f09e5244be77133f4cd4665975 (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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# Model relationships to be included in the group import/export
#
# This list _must_ only contain relationships that are available to both FOSS and
# Enterprise editions. EE specific relationships must be defined in the `ee` section further
# down below.
tree:
  group:
    - :milestones
    - :badges
    - labels:
      - :priorities
    - boards:
      - lists:
        - label:
          - :priorities
        - :board
    - members:
      - :user
    - :namespace_settings

included_attributes:
  user:
    - :id
    - :public_email
    - :username
  author:
    - :name
  namespace_settings:
    - :prevent_sharing_groups_outside_hierarchy
  iterations_cadence: &iterations_cadence_definition
    - :group_id
    - :created_at
    - :updated_at
    - :start_date
    - :active
    - :roll_over
    - :title
    - :description
    - :sequence
  iterations_cadences: *iterations_cadence_definition
  iteration: &iteration_definition
    - :iid
    - :created_at
    - :updated_at
    - :start_date
    - :due_date
    - :group_id
    - :description
  iterations: *iteration_definition

excluded_attributes:
  group:
    - :owner_id
    - :created_at
    - :updated_at
    - :runners_token
    - :runners_token_encrypted
    - :saml_discovery_token
    - :trial_ends_on
    - :shared_runners_minute_limit
    - :extra_shared_runners_minutes_limit
    - :repository_size_limit
    - :max_pages_size
  epics:
    - :state_id
  iterations_cadence: &iterations_cadence_definition
    - :id
    - :next_run_date
    - :duration_in_weeks
    - :iterations_in_advance
    - :automatic
  iterations_cadences: *iterations_cadence_definition
  iteration: &iteration_excluded_definition
    - :id
    - :title
    - :title_html
    - :project_id
    - :description_html
    - :cached_markdown_version
    - :iterations_cadence_id
    - :sequence
  iterations: *iteration_excluded_definition

methods:
  labels:
    - :type
  label:
    - :type
  badges:
    - :type
  notes:
    - :type
  events:
    - :action
  lists:
    - :list_type
  epics:
    - :state

# Add in this list the nested associations that are used to export the parent
# association, but are not present in the tree list. In other words, the associations
# that needs to be preloaded but do not need to be exported.
preloads:

export_reorders:

# EE specific relationships and settings to include. All of this will be merged
# into the previous structures if EE is used.
ee:
  tree:
    group:
      - epics:
        - :parent
        - :award_emoji
        - events:
          - :push_event_payload
        - label_links:
          - :label
        - notes:
          - :author
          - :award_emoji
          - events:
            - :push_event_payload
          - :system_note_metadata
        - :resource_state_events
      - boards:
        - :board_assignee
        - :milestone
        - labels:
          - :priorities
        - lists:
          - milestone:
            - events:
              - :push_event_payload
      - iterations_cadences:
        - :iterations

# When associated resources are from outside the group, you might need to
# validate that a user who is exporting the group can access these
# associations. `include_if_exportable` accepts an array of associations for a
# resource. During export, the `exportable_association?` method on the
# resource is called with the association's name and user to validate if
# associated resource can be included in the export.
#
# This definition will call epic's `exportable_association?(:parent,
# current_user: current_user)` method and include epic's parent association
# for each epic only if the method returns true:
#
# include_if_exportable:
#  group:
#    epics:
#      - :parent
include_if_exportable:
  group:
    epics:
      - :parent