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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
72b583ef
Commit
72b583ef
authored
Oct 21, 2020
by
Mike Jang
Committed by
Robert Speicher
Oct 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docs Post-Merge review "Add class doc for bulk import models"
parent
1b4c644d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
app/models/bulk_import.rb
app/models/bulk_import.rb
+3
-3
app/models/bulk_imports/entity.rb
app/models/bulk_imports/entity.rb
+5
-5
No files found.
app/models/bulk_import.rb
View file @
72b583ef
# frozen_string_literal: true
# The BulkImport
import model links together all the models required to for a
#
bulk import of groups and projects to a GitLab instance, and associates thes
e
#
with the user that initiated the import
.
# The BulkImport
model links all models required for a bulk import of groups and
#
projects to a GitLab instance. It associates the import with the responsibl
e
#
user
.
class
BulkImport
<
ApplicationRecord
belongs_to
:user
,
optional:
false
...
...
app/models/bulk_imports/entity.rb
View file @
72b583ef
# frozen_string_literal: true
# The BulkImport::Entity represents a Group or Project t
hat is going to b
e
#
imported during the bulk import process. An entity is nested under the a
#
parent group when it is not
a top level group.
# The BulkImport::Entity represents a Group or Project t
o be imported during th
e
#
bulk import process. An entity is nested under the parent group when it is not
# a top level group.
#
# A full bulk import entity structure might look like this, where the links are
# parents:
...
...
@@ -15,8 +15,8 @@
# | |
# ProjectEntity Project
#
# The tree structure of the entities
will result in the same structure for the
#
imported
Groups and Projects.
# The tree structure of the entities
results in the same structure for imported
# Groups and Projects.
class
BulkImports::Entity
<
ApplicationRecord
self
.
table_name
=
'bulk_import_entities'
...
...
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