Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ba472090
Commit
ba472090
authored
Nov 02, 2016
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove methods from ApplicationController that have been moved to IssuableCollections
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
a3630058
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
36 deletions
+0
-36
app/controllers/application_controller.rb
app/controllers/application_controller.rb
+0
-36
No files found.
app/controllers/application_controller.rb
View file @
ba472090
...
@@ -232,42 +232,6 @@ class ApplicationController < ActionController::Base
...
@@ -232,42 +232,6 @@ class ApplicationController < ActionController::Base
end
end
end
end
def
set_filters_params
set_default_sort
params
[
:scope
]
=
'all'
if
params
[
:scope
].
blank?
params
[
:state
]
=
'opened'
if
params
[
:state
].
blank?
@sort
=
params
[
:sort
]
@filter_params
=
params
.
dup
if
@project
@filter_params
[
:project_id
]
=
@project
.
id
elsif
@group
@filter_params
[
:group_id
]
=
@group
.
id
else
# TODO: this filter ignore issues/mr created in public or
# internal repos where you are not a member. Enable this filter
# or improve current implementation to filter only issues you
# created or assigned or mentioned
# @filter_params[:authorized_only] = true
end
@filter_params
end
def
get_issues_collection
set_filters_params
@issuable_finder
=
IssuesFinder
.
new
(
current_user
,
@filter_params
)
@issuable_finder
.
execute
end
def
get_merge_requests_collection
set_filters_params
@issuable_finder
=
MergeRequestsFinder
.
new
(
current_user
,
@filter_params
)
@issuable_finder
.
execute
end
def
import_sources_enabled?
def
import_sources_enabled?
!
current_application_settings
.
import_sources
.
empty?
!
current_application_settings
.
import_sources
.
empty?
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment