Commit d976941a authored by Robert Speicher's avatar Robert Speicher

Merge branch 'group-sort-dropdown-blank' into 'master'

Fixed default group sort option

Closes #38808

See merge request gitlab-org/gitlab-ce!14728
parents 5d865bcc 2409acfa
class Dashboard::GroupsController < Dashboard::ApplicationController
def index
@sort = params[:sort] || 'id_desc'
@sort = params[:sort] || 'created_desc'
@groups =
if params[:parent_id] && Group.supports_nested_groups?
......
---
title: Fixed group sort dropdown defaulting to empty
merge_request:
author:
type: fixed
......@@ -5,6 +5,12 @@ RSpec.describe 'Dashboard Group' do
sign_in(create(:user))
end
it 'defaults sort dropdown to last created' do
visit dashboard_groups_path
expect(page).to have_button('Last created')
end
it 'creates new group', :js do
visit dashboard_groups_path
find('.btn-new').trigger('click')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment