gitlab-org--gitlab-foss/app/helpers
Rémy Coutable e570b823c1 Merge branch '15064_issuable_default_sort_order' into 'master'
Sensible state specific default sort order for issues and merge requests

## What does this MR do?

It provides more sensible default sort order for issues and merge requests based on the following table:

    | type           | state  | default sort order |
    |----------------|--------|--------------------|
    | issues         | open   | last created       |
    | issues         | closed | last updated       |
    | issues         | all    | last created       |
    | merge requests | open   | last created       |
    | merge requests | merged | last updated       |
    | merge requests | closed | last updated       |
    | merge requests | all    | last created       |

## Are there points in the code the reviewer needs to double check?

All the bits where `id_desc` was changed to `created_desc`.
 
I hope it's okay, It makes more sense in my opinion.

## Why was this MR needed?

Prior to this MR the issues and merge request were sorted based on `id_desc` by default. 

This MR aims to make the interface more user-friendly by providing state specific sorting defaults most users would expect. 

## What are the relevant issue numbers?

See #15064 

See merge request !5453
2016-08-01 12:02:47 +00:00
..
appearances_helper.rb Add new stopwatch and commit icons; rename custom icon helper; fix commit pipeline layout 2016-07-12 14:52:59 -05:00
application_helper.rb State specific default sort order for issuables 2016-08-01 11:28:56 +02:00
application_settings_helper.rb Use keyword arguments for boolean values and use span instead of a for clone "button" 2016-07-05 16:54:22 -05:00
auth_helper.rb Add a U2fRegistrations table/model. 2016-06-06 12:50:31 +05:30
avatars_helper.rb Add link to user profile to commit avatar (!5163) 2016-07-20 17:44:28 +02:00
blob_helper.rb Improve diff performance by eliminating redundant checks for text blobs 2016-07-29 21:06:50 -07:00
branches_helper.rb implements the basic filter functionality 2016-07-19 19:30:10 +01:00
broadcast_messages_helper.rb
button_helper.rb Display tooltip for "Copy to Clipboard" button (!5164) 2016-07-11 14:20:48 +02:00
ci_status_helper.rb Fix ci icons getting cut off 2016-07-21 08:14:10 -07:00
commits_helper.rb Remove magic comments from Ruby files (!5456) 2016-07-24 07:08:45 +02:00
compare_helper.rb
dashboard_helper.rb Add project filter by visibility and tag to explore page 2015-03-10 15:59:14 -07:00
diff_helper.rb Merge branch 'rubocop/enable-access-modifiers-cops' into 'master' 2016-07-29 15:58:09 +00:00
dropdowns_helper.rb Revert "Revert "Merge branch 'issue_3946' into 'master' "" 2016-07-07 23:48:02 -04:00
emails_helper.rb Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
events_helper.rb Remove event_to_atom helper 2016-05-23 12:37:40 -04:00
explore_helper.rb Make projects sort dropdown shared so it can be reused for other pages 2016-03-04 19:26:10 +01:00
external_wiki_helper.rb speed up ExternalWikiService#get_project_wiki_path 2016-07-19 09:06:58 -04:00
form_helper.rb Standardize the way we check for and display form errors 2016-04-04 21:37:07 -04:00
git_helper.rb
gitlab_markdown_helper.rb Move pre_process into render_result 2016-06-21 17:39:01 +02:00
gitlab_routing_helper.rb Merge branch 'environments-and-deployments' into 'master' 2016-06-15 13:48:09 +00:00
graph_helper.rb
groups_helper.rb Add request access for groups 2016-06-14 13:07:26 +02:00
icons_helper.rb audit log UI update 2016-03-02 17:06:01 +00:00
import_helper.rb Fix GitHub project's link on import page when provider has a custom URL 2016-04-19 13:21:30 -03:00
issuables_helper.rb Revert "Merge branch 'gl-dropdown-issuable-form' into 'master'" 2016-07-15 23:46:29 +00:00
issues_helper.rb Moved merge request button visibility out of issue_helper 2016-07-11 08:51:18 +01:00
javascript_helper.rb Revert Subresource Integrity pending a fix for Firefox's incorrect hashing implementation. 2016-06-27 07:47:33 -06:00
kerberos_spnego_helper.rb Groundwork for Kerberos SPNEGO (EE feature) 2016-07-01 11:46:56 +02:00
labels_helper.rb Fixed URL on label button when filtering 2016-06-24 11:31:36 +01:00
members_helper.rb New :request_access ability to replace a ugly helper 2016-07-05 14:35:26 +02:00
merge_requests_helper.rb Merge branch 'mr-close-btn' into 'master' 2016-07-11 18:00:55 +00:00
milestones_helper.rb Fixes for MR comments. 2016-06-09 00:04:46 +03:00
namespaces_helper.rb hide help block when user is creating a new project inside a group 2016-04-12 14:41:34 +01:00
nav_helper.rb Clicking body closes nav 2016-06-15 18:33:18 +01:00
notes_helper.rb Optimize maximum user access level lookup in loading of notes 2016-07-26 15:33:05 -07:00
notifications_helper.rb merge master into issue_3359_3 2016-06-29 11:04:18 -03:00
page_layout_helper.rb Enable Style/SpaceAfterComma Rubocop cop 2016-06-29 15:23:44 +02:00
preferences_helper.rb Implementing 'Groups View' and 'TODOs View' as options for dashboard preferences. 2016-03-24 19:59:54 +01:00
projects_helper.rb Merge branch 'top-links-label' into 'master' 2016-07-14 13:50:38 +00:00
runners_helper.rb
search_helper.rb fix missing repo_ref param 2016-07-22 17:42:24 +01:00
selects_helper.rb Allow skipping users in autocomplete 2016-07-27 14:10:49 +01:00
services_helper.rb Refactor service settings view 2016-07-20 12:11:37 -03:00
snippets_helper.rb Remove Snippet#expires_at 2016-03-05 18:12:17 -05:00
sorting_helper.rb State specific default sort order for issuables 2016-08-01 11:28:56 +02:00
submodule_helper.rb
tab_helper.rb Use start_with? instead of regex 2016-05-24 00:23:23 +02:00
tags_helper.rb
time_helper.rb Cast duration to integer in TimeHelper#time_interval_in_words 2016-07-21 12:18:34 +02:00
todos_helper.rb Merge branch 'approval-required-todo' into 'master' 2016-07-12 19:50:33 +00:00
tree_helper.rb Add support to cherry-pick any commit 2016-04-18 15:39:07 +08:00
triggers_helper.rb
u2f_helper.rb Load Javascript U2F library selectively. 2016-07-14 08:19:09 +05:30
version_check_helper.rb
visibility_level_helper.rb Address feedback 2016-03-22 00:09:20 +01:00
workhorse_helper.rb Merge branch 'send-entry-via-Gitlab-Workhorse-Send-Data' into 'master' 2016-07-11 16:18:37 +00:00