summaryrefslogtreecommitdiff
path: root/app/finders
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-09-15 18:20:29 +0200
committerRémy Coutable <remy@rymai.me>2017-09-26 16:21:17 +0200
commit951a5cca6202ed64de0687205d13b2b03346e514 (patch)
treeb74cd17d2ecfba38ca70145820d2f9c20ac12f86 /app/finders
parent6528d52afedf7c9fd9db4ae9e101060cfcbe53d0 (diff)
downloadgitlab-ce-951a5cca6202ed64de0687205d13b2b03346e514.tar.gz
Backport part of c777bb91fd7 and 4074cb3b7c16 from EE
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'app/finders')
-rw-r--r--app/finders/issuable_finder.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/finders/issuable_finder.rb b/app/finders/issuable_finder.rb
index 0a2e3c709d9..673cd36046d 100644
--- a/app/finders/issuable_finder.rb
+++ b/app/finders/issuable_finder.rb
@@ -25,6 +25,10 @@ class IssuableFinder
NONE = '0'.freeze
+ SCALAR_PARAMS = %i(scope state group_id project_id milestone_title assignee_id search label_name sort assignee_username author_id author_username authorized_only due_date iids non_archived weight).freeze
+ ARRAY_PARAMS = { label_name: [], iids: [], assignee_username: [] }.freeze
+ VALID_PARAMS = (SCALAR_PARAMS + [ARRAY_PARAMS]).freeze
+
attr_accessor :current_user, :params
def initialize(current_user, params = {})