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
aae6e5f1
Commit
aae6e5f1
authored
Jan 13, 2022
by
Brett Walker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add member_namespace association to import/export
parent
4dae8709
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
1 deletion
+2
-1
app/models/member.rb
app/models/member.rb
+0
-1
lib/gitlab/import_export/project/import_export.yml
lib/gitlab/import_export/project/import_export.yml
+1
-0
spec/lib/gitlab/import_export/all_models.yml
spec/lib/gitlab/import_export/all_models.yml
+1
-0
No files found.
app/models/member.rb
View file @
aae6e5f1
...
...
@@ -28,7 +28,6 @@ class Member < ApplicationRecord
belongs_to
:user
belongs_to
:source
,
polymorphic:
true
# rubocop:disable Cop/PolymorphicAssociations
belongs_to
:member_namespace
,
inverse_of: :namespace_members
,
foreign_key:
'member_namespace_id'
,
class_name:
'Namespace'
belongs_to
:namespace
,
inverse_of: :namespace_route
has_one
:member_task
delegate
:name
,
:username
,
:email
,
:last_activity_on
,
to: :user
,
prefix:
true
...
...
lib/gitlab/import_export/project/import_export.yml
View file @
aae6e5f1
...
...
@@ -904,6 +904,7 @@ excluded_attributes:
-
:release_id
project_members
:
-
:source_id
-
:member_namespace_id
-
:invite_email_success
-
:state
group_members
:
...
...
spec/lib/gitlab/import_export/all_models.yml
View file @
aae6e5f1
...
...
@@ -136,6 +136,7 @@ project_members:
-
source
-
project
-
member_task
-
member_namespace
merge_requests
:
-
status_check_responses
-
subscriptions
...
...
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