Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
3801a0df
Commit
3801a0df
authored
Jun 05, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Export pipeline stages in import/export feature
parent
469975c7
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
0 deletions
+16
-0
lib/gitlab/import_export/import_export.yml
lib/gitlab/import_export/import_export.yml
+1
-0
lib/gitlab/import_export/relation_factory.rb
lib/gitlab/import_export/relation_factory.rb
+1
-0
spec/lib/gitlab/import_export/all_models.yml
spec/lib/gitlab/import_export/all_models.yml
+7
-0
spec/lib/gitlab/import_export/safe_model_attributes.yml
spec/lib/gitlab/import_export/safe_model_attributes.yml
+7
-0
No files found.
lib/gitlab/import_export/import_export.yml
View file @
3801a0df
...
@@ -38,6 +38,7 @@ project_tree:
...
@@ -38,6 +38,7 @@ project_tree:
-
notes
:
-
notes
:
-
:author
-
:author
-
:events
-
:events
-
:stages
-
:statuses
-
:statuses
-
:triggers
-
:triggers
-
:pipeline_schedules
-
:pipeline_schedules
...
...
lib/gitlab/import_export/relation_factory.rb
View file @
3801a0df
...
@@ -3,6 +3,7 @@ module Gitlab
...
@@ -3,6 +3,7 @@ module Gitlab
class
RelationFactory
class
RelationFactory
OVERRIDES
=
{
snippets: :project_snippets
,
OVERRIDES
=
{
snippets: :project_snippets
,
pipelines:
'Ci::Pipeline'
,
pipelines:
'Ci::Pipeline'
,
stages:
'Ci::Stage'
,
statuses:
'commit_status'
,
statuses:
'commit_status'
,
triggers:
'Ci::Trigger'
,
triggers:
'Ci::Trigger'
,
pipeline_schedules:
'Ci::PipelineSchedule'
,
pipeline_schedules:
'Ci::PipelineSchedule'
,
...
...
spec/lib/gitlab/import_export/all_models.yml
View file @
3801a0df
...
@@ -91,6 +91,7 @@ merge_request_diff:
...
@@ -91,6 +91,7 @@ merge_request_diff:
pipelines
:
pipelines
:
-
project
-
project
-
user
-
user
-
stages
-
statuses
-
statuses
-
builds
-
builds
-
trigger_requests
-
trigger_requests
...
@@ -104,9 +105,15 @@ pipelines:
...
@@ -104,9 +105,15 @@ pipelines:
-
artifacts
-
artifacts
-
pipeline_schedule
-
pipeline_schedule
-
merge_requests
-
merge_requests
stages
:
-
project
-
pipeline
-
statuses
-
builds
statuses
:
statuses
:
-
project
-
project
-
pipeline
-
pipeline
-
stage
-
user
-
user
-
auto_canceled_by
-
auto_canceled_by
variables
:
variables
:
...
...
spec/lib/gitlab/import_export/safe_model_attributes.yml
View file @
3801a0df
...
@@ -191,6 +191,13 @@ Ci::Pipeline:
...
@@ -191,6 +191,13 @@ Ci::Pipeline:
-
lock_version
-
lock_version
-
auto_canceled_by_id
-
auto_canceled_by_id
-
pipeline_schedule_id
-
pipeline_schedule_id
Ci::Stage:
-
id
-
name
-
project_id
-
pipeline_id
-
created_at
-
updated_at
CommitStatus
:
CommitStatus
:
-
id
-
id
-
project_id
-
project_id
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment