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
a007f06d
Commit
a007f06d
authored
Aug 26, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
6fa0415a
94490b63
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
1 deletion
+35
-1
changelogs/unreleased/georgekoltsov-54023-fogbugz-visibility-level.yml
...released/georgekoltsov-54023-fogbugz-visibility-level.yml
+5
-0
lib/gitlab/fogbugz_import/project_creator.rb
lib/gitlab/fogbugz_import/project_creator.rb
+1
-1
spec/lib/gitlab/fogbugz_import/project_creator_spec.rb
spec/lib/gitlab/fogbugz_import/project_creator_spec.rb
+29
-0
No files found.
changelogs/unreleased/georgekoltsov-54023-fogbugz-visibility-level.yml
0 → 100644
View file @
a007f06d
---
title
:
Change default visibility level for FogBugz imported projects to Private
merge_request
:
32142
author
:
type
:
fixed
lib/gitlab/fogbugz_import/project_creator.rb
View file @
a007f06d
...
...
@@ -20,7 +20,7 @@ module Gitlab
path:
repo
.
path
,
namespace:
namespace
,
creator:
current_user
,
visibility_level:
Gitlab
::
VisibilityLevel
::
INTERNAL
,
visibility_level:
Gitlab
::
VisibilityLevel
::
PRIVATE
,
import_type:
'fogbugz'
,
import_source:
repo
.
name
,
import_url:
Project
::
UNKNOWN_IMPORT_URL
,
...
...
spec/lib/gitlab/fogbugz_import/project_creator_spec.rb
0 → 100644
View file @
a007f06d
# frozen_string_literal: true
require
'spec_helper'
describe
Gitlab
::
FogbugzImport
::
ProjectCreator
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:repo
)
do
instance_double
(
Gitlab
::
FogbugzImport
::
Repository
,
name:
'Vim'
,
safe_name:
'vim'
,
path:
'vim'
,
raw_data:
''
)
end
let
(
:uri
)
{
'https://testing.fogbugz.com'
}
let
(
:token
)
{
'token'
}
let
(
:fb_session
)
{
{
uri:
uri
,
token:
token
}
}
let
(
:project_creator
)
{
described_class
.
new
(
repo
,
fb_session
,
user
.
namespace
,
user
)
}
subject
do
project_creator
.
execute
end
it
'creates project with private visibility level'
do
expect
(
subject
.
persisted?
).
to
eq
(
true
)
expect
(
subject
.
visibility_level
).
to
eq
(
Gitlab
::
VisibilityLevel
::
PRIVATE
)
end
end
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