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
99bb207e
Commit
99bb207e
authored
Feb 02, 2019
by
Camil Staps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests
parent
e8bdcdf0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
app/controllers/projects/starrers_controller.rb
app/controllers/projects/starrers_controller.rb
+1
-1
app/finders/users_star_projects_finder.rb
app/finders/users_star_projects_finder.rb
+1
-1
lib/api/projects.rb
lib/api/projects.rb
+1
-1
No files found.
app/controllers/projects/starrers_controller.rb
View file @
99bb207e
...
...
@@ -9,7 +9,7 @@ class Projects::StarrersController < Projects::ApplicationController
def
index
@sort
=
params
[
:sort
].
presence
||
sort_value_name
@starrers
=
UsersStarProjectsFinder
.
new
(
params
,
@project
,
current_user:
@current_user
).
execute
@starrers
=
UsersStarProjectsFinder
.
new
(
@project
,
params
,
current_user:
@current_user
).
execute
@total_count
=
@project
.
starrers
.
size
@public_count
=
@starrers
.
size
...
...
app/finders/users_star_projects_finder.rb
View file @
99bb207e
...
...
@@ -5,7 +5,7 @@ class UsersStarProjectsFinder
attr_accessor
:params
def
initialize
(
p
arams
=
{},
project
,
current_user:
nil
)
def
initialize
(
p
roject
,
params
=
{}
,
current_user:
nil
)
@params
=
params
@project
=
project
@current_user
=
current_user
...
...
lib/api/projects.rb
View file @
99bb207e
...
...
@@ -382,7 +382,7 @@ module API
use
:pagination
end
get
':id/starrers'
do
starrers
=
UsersStarProjectsFinder
.
new
(
params
,
user_project
,
current_user:
current_user
).
execute
starrers
=
UsersStarProjectsFinder
.
new
(
user_project
,
params
,
current_user:
current_user
).
execute
present
paginate
(
starrers
),
with:
Entities
::
UserStarsProject
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