Skip to content
Snippets Groups Projects
Commit 58ca8490 authored by Robert Speicher's avatar Robert Speicher
Browse files

Merge branch 'fix-group-projects-sort' into 'master'


Projects on group page should be sorted by last activity instead of id/created_at

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>

Fixes #15237 

See merge request !3716
parents dd9ced0a ec3f4f5b
Branches
Tags
1 merge request!3716Projects on group page should be sorted by last activity instead of id/created_at
Pipeline #
Loading
Loading
@@ -40,6 +40,7 @@ class GroupsController < Groups::ApplicationController
@last_push = current_user.recent_push if current_user
 
@projects = @projects.includes(:namespace)
@projects = @projects.sorted_by_activity
@projects = filter_projects(@projects)
@projects = @projects.sort(@sort = params[:sort])
@projects = @projects.page(params[:page]) if params[:filter_projects].blank?
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment