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
21493606
Commit
21493606
authored
Mar 04, 2022
by
Cynthia Ng
Committed by
Nick Gaskill
Mar 04, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add finding failures in console
parent
e68e12e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
doc/user/group/import/index.md
doc/user/group/import/index.md
+22
-0
No files found.
doc/user/group/import/index.md
View file @
21493606
...
...
@@ -132,3 +132,25 @@ migrated:
-
image URL
-
Boards
-
Board Lists
## Troubleshooting Group Migration
In a
[
rails console session
](
../../../administration/operations/rails_console.md#starting-a-rails-console-session
)
,
you can find the failure or error messages for the group import attempt using:
```
shell
# Get relevant import records
import
=
BulkImports::Entity.where
(
namespace_id: Group.id
)
.bulk_import
# Alternative lookup by user
import
=
BulkImport.where
(
user_id: User.find
(
...
))
.last
# Get list of import entities. Each entity represents either a group or a project
entities
=
import.entities
# Get a list of entity failures
entities.map
(
&:failures
)
.flatten
# Alternative failure lookup by status
entities.where
(
status:
[
-1
])
.pluck
(
:destination_name, :destination_namespace, :status
)
```
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