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
5ec84b6a
Commit
5ec84b6a
authored
Apr 04, 2017
by
James Edwards-Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Attempt to fix import/export of push_access_levels for protected tags
parent
63422647
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
lib/gitlab/import_export/import_export.yml
lib/gitlab/import_export/import_export.yml
+2
-0
lib/gitlab/import_export/relation_factory.rb
lib/gitlab/import_export/relation_factory.rb
+2
-1
spec/lib/gitlab/import_export/all_models.yml
spec/lib/gitlab/import_export/all_models.yml
+5
-0
No files found.
lib/gitlab/import_export/import_export.yml
View file @
5ec84b6a
...
...
@@ -46,6 +46,8 @@ project_tree:
-
protected_branches
:
-
:merge_access_levels
-
:push_access_levels
-
protected_tags
:
-
:push_access_levels
-
:project_feature
# Only include the following attributes for the models specified.
...
...
lib/gitlab/import_export/relation_factory.rb
View file @
5ec84b6a
...
...
@@ -7,8 +7,9 @@ module Gitlab
triggers:
'Ci::Trigger'
,
builds:
'Ci::Build'
,
hooks:
'ProjectHook'
,
merge_access_levels:
'ProtectedBranch::MergeAccessLevel'
,
#TODO: Tags
merge_access_levels:
'ProtectedBranch::MergeAccessLevel'
,
push_access_levels:
'ProtectedBranch::PushAccessLevel'
,
#TODO: How to add?- push_access_levels: 'ProtectedTag::PushAccessLevel',
labels: :project_labels
,
priorities: :label_priorities
,
label: :project_label
}.
freeze
...
...
spec/lib/gitlab/import_export/all_models.yml
View file @
5ec84b6a
...
...
@@ -116,6 +116,9 @@ protected_branches:
-
project
-
merge_access_levels
-
push_access_levels
protected_tags
:
-
project
-
push_access_levels
merge_access_levels
:
-
user
-
protected_branch
...
...
@@ -123,6 +126,7 @@ merge_access_levels:
push_access_levels
:
-
user
-
protected_branch
-
protected_tag
-
group
project
:
-
taggings
...
...
@@ -178,6 +182,7 @@ project:
-
snippets
-
hooks
-
protected_branches
-
protected_tags
-
project_members
-
users
-
requesters
...
...
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