summaryrefslogtreecommitdiff
path: root/app/finders
diff options
context:
space:
mode:
authorCamil Staps <info@camilstaps.nl>2019-08-03 12:57:33 +0200
committerCamil Staps <info@camilstaps.nl>2019-08-07 20:49:37 +0200
commite726ed5e128893158f102b87e1407ec0a36fc3ce (patch)
tree279a9ccc0f22a461da6a4298bc803d60cffc32b1 /app/finders
parentd2b2486afb5a50ace08bc416be87a1ead12abe3c (diff)
downloadgitlab-ce-e726ed5e128893158f102b87e1407ec0a36fc3ce.tar.gz
Handle reviewer comments on !24690
Diffstat (limited to 'app/finders')
-rw-r--r--app/finders/starred_projects_finder.rb8
-rw-r--r--app/finders/users_star_projects_finder.rb2
2 files changed, 6 insertions, 4 deletions
diff --git a/app/finders/starred_projects_finder.rb b/app/finders/starred_projects_finder.rb
index e38cb8c4569..fcb469d1d17 100644
--- a/app/finders/starred_projects_finder.rb
+++ b/app/finders/starred_projects_finder.rb
@@ -2,8 +2,10 @@
class StarredProjectsFinder < ProjectsFinder
def initialize(user, params: {}, current_user: nil)
- project_ids = user.starred_projects.select(:id)
-
- super(params: params, current_user: current_user, project_ids_relation: project_ids)
+ super(
+ params: params,
+ current_user: current_user,
+ project_ids_relation: user.starred_projects.select(:id)
+ )
end
end
diff --git a/app/finders/users_star_projects_finder.rb b/app/finders/users_star_projects_finder.rb
index 5b19b98451c..49c4e087b4b 100644
--- a/app/finders/users_star_projects_finder.rb
+++ b/app/finders/users_star_projects_finder.rb
@@ -12,7 +12,7 @@ class UsersStarProjectsFinder
end
def execute
- stars = UsersStarProject.all.order_id_desc
+ stars = UsersStarProject.all
stars = by_project(stars)
stars = by_search(stars)
stars = filter_visible_profiles(stars)