summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-03-30 19:30:02 +0900
committerShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-05-03 02:11:51 +0900
commit8653c2dfc943b5536ab99155c8b950e30ba1f567 (patch)
tree0b663afae90a6ebf61ffd1d59498abfd62e2e6fe /lib
parent0a36bfa994582b690a7935fed4c15d42b22bd0ed (diff)
downloadgitlab-ce-8653c2dfc943b5536ab99155c8b950e30ba1f567.tar.gz
Add constant as ALLOWED_INDEXED_COLUMNS
Diffstat (limited to 'lib')
-rw-r--r--lib/api/pipelines.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/pipelines.rb b/lib/api/pipelines.rb
index 29757dd9935..6a054544d70 100644
--- a/lib/api/pipelines.rb
+++ b/lib/api/pipelines.rb
@@ -22,7 +22,7 @@ module API
optional :yaml_errors, type: Boolean, desc: 'If true, returns only yaml error pipelines'
optional :name, type: String, desc: 'The name of user who triggered pipelines'
optional :username, type: String, desc: 'The username of user who triggered pipelines'
- optional :order_by, type: String, values: %w[id status ref user_id], default: 'id',
+ optional :order_by, type: String, values: PipelinesFinder::ALLOWED_INDEXED_COLUMNS, default: 'id',
desc: 'The order_by which is combined with a sort'
optional :sort, type: String, values: %w[asc desc], default: 'desc',
desc: 'The sort method which is combined with an order_by'