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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
|
# Model relationships to be included in the project import/export
#
# 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.
tree:
project:
- labels:
- :priorities
- milestones:
- events:
- :push_event_payload
- issues:
- events:
- :push_event_payload
- :timelogs
- notes:
- :author
- :award_emoji
- :system_note_metadata
- events:
- :push_event_payload
- label_links:
- label:
- :priorities
- milestone:
- events:
- :push_event_payload
- resource_label_events:
- label:
- :priorities
- resource_milestone_events:
- :milestone
- :resource_state_events
- 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 Action
- :issue_assignees
- :zoom_meetings
- :sentry_issue
- :award_emoji
- snippets:
- :award_emoji
- notes:
- :author
- :award_emoji
- releases:
- :links
- milestone_releases:
- :milestone
- project_members:
- :user
- merge_requests:
- :approvals
- :metrics
- :award_emoji
- :merge_request_assignees
- :merge_request_reviewers
- notes:
- :author
- :award_emoji
- :system_note_metadata
- events:
- :push_event_payload
- :suggestions
- merge_request_diff:
- merge_request_diff_commits:
- :commit_author
- :committer
- :merge_request_diff_files
- events:
- :push_event_payload
- :timelogs
- label_links:
- label:
- :priorities
- milestone:
- events:
- :push_event_payload
- resource_label_events:
- label:
- :priorities
- resource_milestone_events:
- :milestone
- :resource_state_events
- :external_pull_requests
- commit_notes:
- :author
- events:
- :push_event_payload
- ci_pipelines:
- stages:
- :builds
- :generic_commit_statuses
- :bridges
- :external_pull_request
- :merge_request
- :pipeline_metadata
- :auto_devops
- :pipeline_schedules
- :container_expiration_policy
- 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
- :service_desk_setting
group_members:
- :user
# Used to support old exports that were exported before the removal/rename of the associations
#
# For example, statuses of ci_pipelines are no longer exported, and instead, statuses are
# exported as builds, generic_commit_statuses, and bridges. So in order to allow statuses
# to be still imported, it is added to the list below.
import_only_tree:
project:
- ci_pipelines:
- notes:
- :author
- events:
- :push_event_payload
- stages:
- :statuses
# Only include the following attributes for the models specified.
included_attributes:
user:
- :id
- :public_email
- :username
author:
- :name
approvals:
- :user_id
- :created_at
- :updated_at
ci_cd_settings:
- :group_runners_enabled
- :runner_token_expiration_interval
- :default_git_depth
metrics_setting:
- :dashboard_timezone
- :external_dashboard_url
- :project_id
project_badges:
- :created_at
- :image_url
- :link_url
- :name
- :project_id
- :updated_at
pipeline_schedules:
- :active
- :created_at
- :cron
- :cron_timezone
- :description
- :next_run_at
- :owner_id
- :project_id
- :ref
- :updated_at
error_tracking_setting:
- :api_url
- :organization_name
- :project_id
- :project_name
auto_devops:
- :created_at
- :deploy_strategy
- :enabled
- :project_id
- :updated_at
boards:
- :project_id
- :created_at
- :updated_at
- :group_id
- :weight
- :name
- :hide_backlog_list
- :hide_closed_list
lists:
- :list_type
- :position
- :created_at
- :updated_at
- :user_id
- :max_issue_count
- :max_issue_weight
- :limit_metric
custom_attributes:
- :created_at
- :updated_at
- :project_id
- :key
- :value
label: &label_definition
- :title
- :color
- :project_id
- :group_id
- :created_at
- :updated_at
- :template
- :description
- :priority
labels: *label_definition
priorities:
- :project_id
- :priority
- :created_at
- :updated_at
milestone: &milestone_definition
- :iid
- :title
- :project_id
- :group_id
- :description
- :due_date
- :created_at
- :updated_at
- :start_date
- :state
milestones: *milestone_definition
protected_branches:
- :project_id
- :name
- :created_at
- :updated_at
- :code_owner_approval_required
- :allow_force_push
protected_tags:
- :project_id
- :name
- :created_at
- :updated_at
create_access_levels:
- :access_level
- :created_at
- :updated_at
- :user_id
- :group_id
merge_access_levels:
- :access_level
- :created_at
- :updated_at
- :user_id
- :group_id
push_access_levels:
- :access_level
- :created_at
- :updated_at
- :user_id
- :group_id
releases:
- :tag
- :description
- :project_id
- :author_id
- :created_at
- :updated_at
- :name
- :sha
- :released_at
links:
- :url
- :name
- :created_at
- :updated_at
- :filepath
- :link_type
container_expiration_policy:
- :created_at
- :updated_at
- :next_run_at
- :project_id
- :name_regex
- :cadence
- :older_than
- :keep_n
- :enabled
- :name_regex_keep
project_feature:
- :project_id
- :merge_requests_access_level
- :issues_access_level
- :wiki_access_level
- :snippets_access_level
- :builds_access_level
- :created_at
- :updated_at
- :repository_access_level
- :pages_access_level
- :forking_access_level
- :metrics_dashboard_access_level
- :operations_access_level
- :monitor_access_level
- :analytics_access_level
- :security_and_compliance_access_level
- :container_registry_access_level
- :package_registry_access_level
- :environments_access_level
- :feature_flags_access_level
- :releases_access_level
- :infrastructure_access_level
prometheus_metrics:
- :created_at
- :updated_at
- :project_id
- :y_label
- :unit
- :legend
- :title
- :query
- :group
- :dashboard_path
service_desk_setting:
- :project_id
- :issue_template_key
- :project_key
snippets:
- :title
- :content
- :author_id
- :project_id
- :created_at
- :updated_at
- :file_name
- :visibility_level
- :description
project_members:
- :access_level
- :source_type
- :user_id
- :notification_level
- :created_at
- :updated_at
- :created_by_id
- :invite_email
- :invite_accepted_at
- :requested_at
- :expires_at
- :ldap
- :override
merge_request: &merge_request_definition
- :target_branch
- :source_branch
- :source_project_id
- :author_id
- :title
- :created_at
- :updated_at
- :state
- :merge_status
- :target_project_id
- :iid
- :description
- :updated_by_id
- :merge_error
- :merge_params
- :merge_when_pipeline_succeeds
- :merge_user_id
- :merge_commit_sha
- :squash_commit_sha
- :in_progress_merge_commit_sha
- :lock_version
- :approvals_before_merge
- :rebase_commit_sha
- :time_estimate
- :squash
- :last_edited_at
- :last_edited_by_id
- :discussion_locked
- :allow_maintainer_to_push
- :merge_ref_sha
- :draft
- :diff_head_sha
- :source_branch_sha
- :target_branch_sha
merge_requests: *merge_request_definition
award_emoji:
- :user_id
- :name
- :awardable_type
- :created_at
- :updated_at
commit_author:
- :name
- :email
committer:
- :name
- :email
events:
- :project_id
- :target_type
- :action
- :author_id
- :fingerprint
- :created_at
- :updated_at
label_links:
- :target_type
- :created_at
- :updated_at
merge_request_diff:
- :state
- :created_at
- :updated_at
- :base_commit_sha
- :real_size
- :head_commit_sha
- :start_commit_sha
- :commits_count
- :files_count
- :sorted
- :diff_type
merge_request_diff_commits:
- :author_name
- :author_email
- :committer_name
- :committer_email
- :relative_order
- :sha
- :authored_date
- :committed_date
- :message
- :trailers
merge_request_diff_files:
- :relative_order
- :new_file
- :renamed_file
- :deleted_file
- :new_path
- :old_path
- :a_mode
- :b_mode
- :too_large
- :binary
metrics:
- :created_at
- :updated_at
- :latest_closed_by_id
- :latest_closed_at
- :merged_by_id
- :merged_at
- :latest_build_started_at
- :latest_build_finished_at
- :first_deployed_to_production_at
- :first_comment_at
- :first_commit_at
- :last_commit_at
- :diff_size
- :modified_paths_size
- :commits_count
- :first_approved_at
- :first_reassigned_at
- :added_lines
- :target_project_id
- :removed_lines
notes:
- :note
- :noteable_type
- :author_id
- :created_at
- :updated_at
- :project_id
- :attachment
- :line_code
- :commit_id
- :system
- :st_diff
- :updated_by_id
- :type
- :position
- :original_position
- :change_position
- :resolved_at
- :resolved_by_id
- :resolved_by_push
- :discussion_id
- :confidential
- :last_edited_at
push_event_payload:
- :commit_count
- :action
- :ref_type
- :commit_from
- :commit_to
- :ref
- :commit_title
- :ref_count
resource_label_events:
- :action
- :user_id
- :created_at
suggestions:
- :relative_order
- :applied
- :commit_id
- :from_content
- :to_content
- :outdated
- :lines_above
- :lines_below
system_note_metadata:
- :commit_count
- :action
- :created_at
- :updated_at
timelogs:
- :time_spent
- :user_id
- :project_id
- :spent_at
- :created_at
- :updated_at
- :summary
external_pull_request: &external_pull_request_definition
- :created_at
- :updated_at
- :project_id
- :pull_request_iid
- :status
- :source_branch
- :target_branch
- :source_repository
- :target_repository
- :source_sha
- :target_sha
external_pull_requests: *external_pull_request_definition
statuses: &statuses_definition
- :project_id
- :status
- :finished_at
- :created_at
- :updated_at
- :started_at
- :coverage
- :commit_id
- :name
- :options
- :allow_failure
- :stage
- :stage_idx
- :tag
- :ref
- :user_id
- :type
- :target_url
- :description
- :erased_at
- :artifacts_expire_at
- :environment
- :yaml_variables
- :queued_at
- :lock_version
- :coverage_regex
- :retried
- :protected
- :failure_reason
- :scheduled_at
- :scheduling_type
- :ci_stage
builds: *statuses_definition
generic_commit_statuses: *statuses_definition
bridges: *statuses_definition
ci_pipelines:
- :ref
- :sha
- :before_sha
- :created_at
- :updated_at
- :tag
- :yaml_errors
- :committed_at
- :project_id
- :status
- :started_at
- :finished_at
- :duration
- :user_id
- :lock_version
- :source
- :protected
- :config_source
- :failure_reason
- :iid
- :source_sha
- :target_sha
pipeline_metadata:
- :project_id
- :name
stages:
- :name
- :status
- :position
- :lock_version
- :project_id
- :created_at
- :updated_at
# - :statuses # old exports use statuses instead of builds, generic_commit_statuses and bridges
actions:
- :event
design: &design_definition
- :iid
- :project_id
- :filename
- :relative_position
designs: *design_definition
design_versions:
- :created_at
- :sha
- :author_id
issue_assignees:
- :user_id
merge_request_assignees:
- :user_id
- :created_at
merge_request_reviewers:
- :user_id
- :created_at
- :state
sentry_issue:
- :sentry_issue_identifier
zoom_meetings:
- :project_id
- :issue_status
- :url
- :created_at
- :updated_at
issues:
- :title
- :author_id
- :project_id
- :created_at
- :updated_at
- :description
- :state
- :iid
- :updated_by_id
- :confidential
- :closed_at
- :closed_by_id
- :due_date
- :lock_version
- :weight
- :time_estimate
- :relative_position
- :external_author
- :last_edited_at
- :last_edited_by_id
- :discussion_locked
- :health_status
- :external_key
- :issue_type
group_members:
- :access_level
- :source_type
- :user_id
- :notification_level
- :created_at
- :updated_at
- :created_by_id
- :invite_email
- :invite_accepted_at
- :requested_at
- :expires_at
- :ldap
- :override
project:
- :approvals_before_merge
- :archived
- :auto_cancel_pending_pipelines
- :autoclose_referenced_issues
- :build_allow_git_fetch
- :build_timeout
- :delete_error
- :description
- :disable_overriding_approvers_per_merge_request
- :external_authorization_classification_label
- :has_external_issue_tracker
- :has_external_wiki
- :issues_template
- :jobs_cache_index
- :last_repository_check_failed
- :merge_requests_author_approval
- :merge_requests_disable_committers_approval
- :merge_requests_ff_only_enabled
- :merge_requests_rebase_enabled
- :merge_requests_template
- :only_allow_merge_if_all_discussions_are_resolved
- :only_allow_merge_if_pipeline_succeeds
- :pages_https_only
- :pending_delete
- :printing_merge_request_link_enabled
- :public_builds
- :remove_source_branch_after_merge
- :request_access_enabled
- :require_password_to_approve
- :reset_approvals_on_push
- :resolve_outdated_diff_discussions
- :service_desk_enabled
- :shared_runners_enabled
- :suggestion_commit_message
- :visibility_level
- :hooks
- :issues_access_level
- :forking_access_level
- :merge_requests_access_level
- :wiki_access_level
- :snippets_access_level
- :builds_access_level
- :repository_access_level
- :pages_access_level
- :metrics_dashboard_access_level
- :analytics_access_level
- :operations_access_level
- :monitor_access_level
- :security_and_compliance_access_level
- :container_registry_access_level
- :package_registry_access_level
- :environments_access_level
- :feature_flags_access_level
- :releases_access_level
- :infrastructure_access_level
- :auto_devops_deploy_strategy
- :auto_devops_enabled
- :container_registry_enabled
- :issues_enabled
- :jobs_enabled
- :merge_method
- :merge_requests_enabled
- :snippets_enabled
- :topics
- :visibility
- :wiki_enabled
- :build_git_strategy
- :build_enabled
- :security_and_compliance_enabled
- :allow_merge_on_skipped_pipeline
- :squash_option
resource_milestone_events:
- :user_id
- :action
- :created_at
- :state
resource_state_events:
- :user_id
- :state
- :created_at
- :source_commit
- :close_after_error_tracking_resolve
- :close_auto_resolve_prometheus_alert
# Do not include the following attributes for the models specified.
excluded_attributes:
project:
- :name
- :path
- :namespace_id
- :project_namespace_id
- :creator_id
- :pool_repository_id
- :import_url
- :import_status
- :avatar
- :import_type
- :import_source
- :integrations
- :push_hooks_integrations
- :tag_push_hooks_integrations
- :issue_hooks_integrations
- :confidential_issue_hooks_integrations
- :merge_request_hooks_integrations
- :note_hooks_integrations
- :confidential_note_hooks_integrations
- :job_hooks_integrations
- :archive_trace_hooks_integrations
- :pipeline_hooks_integrations
- :wiki_page_hooks_integrations
- :deployment_hooks_integrations
- :alert_hooks_integrations
- :incident_hooks_integrations
- :mirror
- :runners_token
- :runners_token_encrypted
- :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
- :storage_version
- :remote_mirror_available_overridden
- :description_html
- :repository_languages
- :bfg_object_map
- :detected_repository_languages
- :tag_list
- :topic_list
- :mirror_user_id
- :mirror_trigger_builds
- :only_mirror_protected_branches
- :pull_mirror_available_overridden
- :pull_mirror_branch_prefix
- :mirror_overwrites_diverged_branches
- :packages_enabled
- :mirror_last_update_at
- :mirror_last_successful_update_at
- :emails_disabled
- :max_pages_size
- :max_artifacts_size
- :marked_for_deletion_at
- :marked_for_deletion_by_user_id
- :compliance_framework_setting
- :show_default_award_emojis
- :warn_about_potentially_unwanted_characters
- :enforce_auth_checks_on_uploads
- :services
- :exported_protected_branches
- :repository_size_limit
- :external_webhook_token
- :incident_management_issuable_escalation_statuses
approvals:
- :id
- :merge_request_id
namespaces:
- :runners_token
- :runners_token_encrypted
project_import_state:
- :last_error
- :jid
- :last_update_at
- :last_successful_update_at
prometheus_metrics:
- :common
- :identifier
snippets:
- :expired_at
- :secret
- :encrypted_secret_token
- :encrypted_secret_token_iv
- :repository_read_only
merge_request_diff:
- :external_diff
- :stored_externally
- :external_diff_store
- :merge_request_id
- :verification_retry_at
- :verified_at
- :verification_retry_count
- :verification_checksum
- :verification_failure
merge_request_diff_commits:
- :merge_request_diff_id
- :commit_author_id
- :committer_id
merge_request_diff_commit_user:
- :id
merge_request_diff_detail:
- :merge_request_diff_id
- :verification_retry_at
- :verified_at
- :verification_retry_count
- :verification_checksum
- :verification_failure
merge_request_diff_files:
- :diff
- :external_diff_offset
- :external_diff_size
- :merge_request_diff_id
issues:
- :milestone_id
- :sprint_id
- :moved_to_id
- :sent_notifications
- :state_id
- :duplicated_to_id
- :promoted_to_epic_id
- :blocking_issues_count
- :service_desk_reply_to
- :upvotes_count
- :work_item_type_id
- :email_message_id
- :incident_management_issuable_escalation_status
merge_request: &merge_request_excluded_definition
- :milestone_id
- :sprint_id
- :ref_fetched
- :merge_jid
- :rebase_jid
- :latest_merge_request_diff_id
- :head_pipeline_id
- :state_id
merge_requests: *merge_request_excluded_definition
award_emoji:
- :awardable_id
statuses: &statuses_excluded_definition
- :trace
- :token
- :token_encrypted
- :when
- :artifacts_file
- :artifacts_metadata
- :artifacts_file_store
- :artifacts_metadata_store
- :artifacts_size
- :commands
- :runner_id
- :trigger_request_id
- :erased_by_id
- :auto_canceled_by_id
- :stage_id
- :upstream_pipeline_id
- :resource_group_id
- :waiting_for_resource_at
- :processed
- :id_convert_to_bigint
- :stage_id_convert_to_bigint
builds: *statuses_excluded_definition
generic_commit_statuses: *statuses_excluded_definition
bridges: *statuses_excluded_definition
sentry_issue:
- :issue_id
push_event_payload:
- :event_id
- :event_id_convert_to_bigint
project_badges:
- :group_id
resource_label_events:
- :reference
- :reference_html
- :epic_id
- :issue_id
- :merge_request_id
- :label_id
runners:
- :token
- :token_encrypted
error_tracking_setting:
- :encrypted_token
- :encrypted_token_iv
- :enabled
- :integrated
service_desk_setting:
- :outgoing_name
- :file_template_project_id
priorities:
- :label_id
events:
- :target_id
- :id_convert_to_bigint
timelogs:
- :issue_id
- :merge_request_id
- :note_id
notes:
- :noteable_id
- :review_id
commit_notes:
- :noteable_id
- :review_id
label_links:
- :label_id
- :target_id
issue_assignees:
- :issue_id
zoom_meetings:
- :issue_id
design: &design_excluded_definition
- :issue_id
designs: *design_excluded_definition
design_versions:
- :issue_id
actions:
- :design_id
- :version_id
- image_v432x230
links:
- :release_id
project_members:
- :source_id
- :member_namespace_id
- :invite_email_success
- :state
group_members:
- :state
metrics:
- :merge_request_id
- :pipeline_id
suggestions:
- :note_id
ci_pipelines:
- :auto_canceled_by_id
- :pipeline_schedule_id
- :merge_request_id
- :external_pull_request_id
- :ci_ref_id
- :locked
pipeline_metadata:
- :pipeline_id
stages:
- :pipeline_id
merge_access_levels:
- :protected_branch_id
push_access_levels:
- :protected_branch_id
- :deploy_key_id
unprotect_access_levels:
- :protected_branch_id
create_access_levels:
- :protected_tag_id
- :deploy_key_id
deploy_access_levels:
- :protected_environment_id
boards:
- :milestone_id
- :iteration_id
- :iteration_cadence_id
lists:
- :board_id
- :label_id
- :milestone_id
- :iteration_id
epic:
- :start_date_sourcing_milestone_id
- :due_date_sourcing_milestone_id
- :parent_id
- :state_id
- :start_date_sourcing_epic_id
- :due_date_sourcing_epic_id
epic_issue:
- :epic_id
- :issue_id
system_note_metadata:
- :description_version_id
- :note_id
milestone_releases:
- :milestone_id
- :release_id
resource_milestone_events:
- :id
- :issue_id
- :merge_request_id
- :milestone_id
resource_state_events:
- :id
- :issue_id
- :merge_request_id
- :epic_id
- :source_merge_request_id
iteration:
- :id
- :title
- :title_html
- :project_id
- :description_html
- :cached_markdown_version
- :iterations_cadence_id
- :sequence
resource_iteration_events:
- :id
- :issue_id
- :merge_request_id
- :iteration_id
iterations_cadence:
- :id
- :last_run_date
- :duration_in_weeks
- :iterations_in_advance
- :automatic
- :group_id
- :created_at
- :updated_at
- :start_date
- :active
- :roll_over
- :description
- :sequence
methods:
project:
- :allow_merge_on_skipped_pipeline
- :squash_option
notes:
- :type
commit_notes:
- :type
labels:
- :type
label:
- :type
statuses:
- :type
merge_request_diff_files:
- :utf8_diff
merge_requests:
- :diff_head_sha
- :source_branch_sha
- :target_branch_sha
- :state
events:
- :action
push_event_payload:
- :action
project_badges:
- :type
lists:
- :list_type
issues:
- :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:
issues:
project: :route
builds:
metadata:
project:
bridges:
metadata:
merge_requests:
source_project: :route # needed by source_branch_sha and diff_head_sha
target_project: :route # needed by target_branch_sha
assignees: # needed by assigne_id that is implemented by DeprecatedAssignee
# Specify a custom export reordering for a given relationship
# For example for issues we use a custom export reordering by relative_position, so that on import, we can reset the
# relative position value, but still keep the issues order to the order in which issues were in the exported project.
# By default the ordering of relations is done by PK.
# column - specify the column by which to reorder, by default it is relation's PK
# direction - specify the ordering direction :asc or :desc, default :asc
# nulls_position - specify where would null values be positioned. Because custom ordering column can contain nulls we
# need to also specify where would the nulls be placed. It can be :nulls_last or :nulls_first, defaults
# to :nulls_last
# Example:
# export_reorders:
# project:
# issues:
# column: :relative_position
# direction: :asc
# nulls_position: :nulls_last
export_reorders:
project:
issues:
column: :relative_position
direction: :asc
nulls_position: :nulls_last
# EE specific relationships and settings to include. All of this will be merged
# into the previous structures if EE is used.
ee:
tree:
project:
- issues:
- epic_issue:
- :epic
- :issuable_sla
- iteration:
- :iterations_cadence
- resource_iteration_events:
- iteration:
- :iterations_cadence
- protected_branches:
- :unprotect_access_levels
- protected_environments:
- :deploy_access_levels
- :security_setting
- :push_rule
- boards:
- :milestone
- lists:
- :milestone
included_attributes:
issuable_sla:
- :issue
- :due_at
push_rule:
- :force_push_regex
- :delete_branch_regex
- :commit_message_regex
- :author_email_regex
- :file_name_regex
- :branch_name_regex
- :commit_message_negative_regex
- :max_file_size
- :deny_delete_tag
- :member_check
- :is_sample
- :prevent_secrets
- :reject_unsigned_commits
- :commit_committer_check
- :regexp_uses_re2
- :reject_non_dco_commits
unprotect_access_levels:
- :access_level
- :user_id
- :group_id
deploy_access_levels:
- :created_at
- :updated_at
- :access_level
- :user_id
- :group_id
protected_environments:
- :project_id
- :group_id
- :name
- :created_at
- :updated_at
project_feature:
- :requirements_access_level
security_setting:
- :project_id
- :created_at
- :updated_at
- :auto_fix_container_scanning
- :auto_fix_dast
- :auto_fix_dependency_scanning
- :auto_fix_sast
project:
- :requirements_enabled
- :requirements_access_level
resource_iteration_events:
- :user_id
- :action
- :created_at
iteration:
- :iid
- :created_at
- :updated_at
- :start_date
- :due_date
- :group_id
- :description
iterations_cadence:
- :title
excluded_attributes:
project:
- :vulnerability_hooks_integrations
preloads:
issues:
epic:
# When associated resources are from outside the project, you might need to
# validate that a user who is exporting the project or 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 issue's `exportable_association?(:epic_issue,
# current_user: current_user)` method and include issue's epic_issue association
# for each issue only if the method returns true:
#
# Example:
# include_if_exportable:
# project:
# issues:
# - epic_issue
include_if_exportable:
project:
issues:
- :epic_issue
|