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
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
34f994b7
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
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
3 deletions
+7
-3
app/models/project_team.rb
app/models/project_team.rb
+4
-0
db/fixtures/development/05_users.rb
db/fixtures/development/05_users.rb
+1
-1
db/fixtures/development/09_issues.rb
db/fixtures/development/09_issues.rb
+1
-1
db/fixtures/development/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