BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
34f994b7
Unverified
Commit
34f994b7
authored
Dec 25, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve dev fixtures
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
1e64333c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
3 deletions
+7
-3
project_team.rb
app/models/project_team.rb
+4
-0
05_users.rb
db/fixtures/development/05_users.rb
+1
-1
09_issues.rb
db/fixtures/development/09_issues.rb
+1
-1
10_merge_requests.rb
db/fixtures/development/10_merge_requests.rb
+1
-1
No files found.
app/models/project_team.rb
View file @
34f994b7
...
...
@@ -64,6 +64,10 @@ class ProjectTeam
UsersProject
.
truncate_team
(
project
)
end
def
users
members
end
def
members
@members
||=
fetch_members
end
...
...
db/fixtures/development/05_users.rb
View file @
34f994b7
Gitlab
::
Seeder
.
quiet
do
(
2
..
5
0
).
each
do
|
i
|
(
2
..
1
0
).
each
do
|
i
|
begin
User
.
seed
(
:id
,
[{
id:
i
,
...
...
db/fixtures/development/09_issues.rb
View file @
34f994b7
...
...
@@ -6,7 +6,7 @@ Gitlab::Seeder.quiet do
project
=
Project
.
all
.
sample
# Random user
user
=
project
.
users
.
sample
user
=
project
.
team
.
users
.
sample
next
unless
user
...
...
db/fixtures/development/10_merge_requests.rb
View file @
34f994b7
...
...
@@ -6,7 +6,7 @@ Gitlab::Seeder.quiet do
project
=
Project
.
all
.
sample
# Random user
user
=
project
.
users
.
sample
user
=
project
.
team
.
users
.
sample
next
unless
user
...
...
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