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
9f9a7a2d
Commit
9f9a7a2d
authored
Apr 04, 2017
by
James Edwards-Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added ProtectedTag to import/export son and safe_model_attributes
parent
d85471ac
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
0 deletions
+36
-0
spec/lib/gitlab/import_export/project.json
spec/lib/gitlab/import_export/project.json
+18
-0
spec/lib/gitlab/import_export/project_tree_restorer_spec.rb
spec/lib/gitlab/import_export/project_tree_restorer_spec.rb
+4
-0
spec/lib/gitlab/import_export/safe_model_attributes.yml
spec/lib/gitlab/import_export/safe_model_attributes.yml
+14
-0
No files found.
spec/lib/gitlab/import_export/project.json
View file @
9f9a7a2d
...
@@ -7455,6 +7455,24 @@
...
@@ -7455,6 +7455,24 @@
]
]
}
}
],
],
"protected_tags"
:
[
{
"id"
:
1
,
"project_id"
:
9
,
"name"
:
"v*"
,
"created_at"
:
"2017-04-04T13:48:13.426Z"
,
"updated_at"
:
"2017-04-04T13:48:13.426Z"
,
"create_access_levels"
:
[
{
"id"
:
1
,
"protected_tag_id"
:
1
,
"access_level"
:
40
,
"created_at"
:
"2017-04-04T13:48:13.458Z"
,
"updated_at"
:
"2017-04-04T13:48:13.458Z"
}
]
}
],
"project_feature"
:
{
"project_feature"
:
{
"builds_access_level"
:
0
,
"builds_access_level"
:
0
,
"created_at"
:
"2014-12-26T09:26:45.000Z"
,
"created_at"
:
"2014-12-26T09:26:45.000Z"
,
...
...
spec/lib/gitlab/import_export/project_tree_restorer_spec.rb
View file @
9f9a7a2d
...
@@ -64,6 +64,10 @@ describe Gitlab::ImportExport::ProjectTreeRestorer, services: true do
...
@@ -64,6 +64,10 @@ describe Gitlab::ImportExport::ProjectTreeRestorer, services: true do
expect
(
ProtectedBranch
.
first
.
push_access_levels
).
not_to
be_empty
expect
(
ProtectedBranch
.
first
.
push_access_levels
).
not_to
be_empty
end
end
it
'contains the create access levels on a protected tag'
do
expect
(
ProtectedTag
.
first
.
create_access_levels
).
not_to
be_empty
end
context
'event at forth level of the tree'
do
context
'event at forth level of the tree'
do
let
(
:event
)
{
Event
.
where
(
title:
'test levels'
).
first
}
let
(
:event
)
{
Event
.
where
(
title:
'test levels'
).
first
}
...
...
spec/lib/gitlab/import_export/safe_model_attributes.yml
View file @
9f9a7a2d
...
@@ -300,6 +300,12 @@ ProtectedBranch:
...
@@ -300,6 +300,12 @@ ProtectedBranch:
-
name
-
name
-
created_at
-
created_at
-
updated_at
-
updated_at
ProtectedTag
:
-
id
-
project_id
-
name
-
created_at
-
updated_at
Project
:
Project
:
-
description
-
description
-
issues_enabled
-
issues_enabled
...
@@ -333,6 +339,14 @@ ProtectedBranch::PushAccessLevel:
...
@@ -333,6 +339,14 @@ ProtectedBranch::PushAccessLevel:
-
access_level
-
access_level
-
created_at
-
created_at
-
updated_at
-
updated_at
ProtectedTag::CreateAccessLevel:
-
id
-
protected_tag_id
-
access_level
-
created_at
-
updated_at
-
user_id
-
group_id
AwardEmoji
:
AwardEmoji
:
-
id
-
id
-
user_id
-
user_id
...
...
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