Commit 5ec84b6a authored by James Edwards-Jones's avatar James Edwards-Jones

Attempt to fix import/export of push_access_levels for protected tags

parent 63422647
...@@ -46,6 +46,8 @@ project_tree: ...@@ -46,6 +46,8 @@ project_tree:
- protected_branches: - protected_branches:
- :merge_access_levels - :merge_access_levels
- :push_access_levels - :push_access_levels
- protected_tags:
- :push_access_levels
- :project_feature - :project_feature
# Only include the following attributes for the models specified. # Only include the following attributes for the models specified.
......
...@@ -7,8 +7,9 @@ module Gitlab ...@@ -7,8 +7,9 @@ module Gitlab
triggers: 'Ci::Trigger', triggers: 'Ci::Trigger',
builds: 'Ci::Build', builds: 'Ci::Build',
hooks: 'ProjectHook', hooks: 'ProjectHook',
merge_access_levels: 'ProtectedBranch::MergeAccessLevel', #TODO: Tags merge_access_levels: 'ProtectedBranch::MergeAccessLevel',
push_access_levels: 'ProtectedBranch::PushAccessLevel', push_access_levels: 'ProtectedBranch::PushAccessLevel',
#TODO: How to add?- push_access_levels: 'ProtectedTag::PushAccessLevel',
labels: :project_labels, labels: :project_labels,
priorities: :label_priorities, priorities: :label_priorities,
label: :project_label }.freeze label: :project_label }.freeze
......
...@@ -116,6 +116,9 @@ protected_branches: ...@@ -116,6 +116,9 @@ protected_branches:
- project - project
- merge_access_levels - merge_access_levels
- push_access_levels - push_access_levels
protected_tags:
- project
- push_access_levels
merge_access_levels: merge_access_levels:
- user - user
- protected_branch - protected_branch
...@@ -123,6 +126,7 @@ merge_access_levels: ...@@ -123,6 +126,7 @@ merge_access_levels:
push_access_levels: push_access_levels:
- user - user
- protected_branch - protected_branch
- protected_tag
- group - group
project: project:
- taggings - taggings
...@@ -178,6 +182,7 @@ project: ...@@ -178,6 +182,7 @@ project:
- snippets - snippets
- hooks - hooks
- protected_branches - protected_branches
- protected_tags
- project_members - project_members
- users - users
- requesters - requesters
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment