84a3225b0c
Provide 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 |
13 lines
354 B
Ruby
13 lines
354 B
Ruby
module MergeRequestsAction
|
|
extend ActiveSupport::Concern
|
|
include IssuableCollections
|
|
|
|
def merge_requests
|
|
@label = merge_requests_finder.labels.first
|
|
|
|
@merge_requests = merge_requests_collection
|
|
.non_archived
|
|
.preload(:author, :target_project)
|
|
.page(params[:page])
|
|
end
|
|
end
|