diff options
author | sujay patel <sujaypatel1996@gmail.com> | 2019-06-13 01:33:21 +0530 |
---|---|---|
committer | sujay <sujay.patel@caavo.com> | 2019-07-05 14:24:56 +0530 |
commit | e241c89977c32fabbbe5a49c1ba69564d5e09e31 (patch) | |
tree | e95ac3a41d7937b0451cda82930668f1d7eaf3fa /lib | |
parent | b71250ca0f1b9df4f728bdb322502e3544058ca5 (diff) | |
download | gitlab-ce-e241c89977c32fabbbe5a49c1ba69564d5e09e31.tar.gz |
Adding order by to list runner jobs api.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/runners.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/api/runners.rb b/lib/api/runners.rb index f3fea463e7f..c2d371b6867 100644 --- a/lib/api/runners.rb +++ b/lib/api/runners.rb @@ -115,6 +115,8 @@ module API params do requires :id, type: Integer, desc: 'The ID of the runner' optional :status, type: String, desc: 'Status of the job', values: Ci::Build::AVAILABLE_STATUSES + optional :order_by, type: String, desc: 'Order by `id` or not', values: RunnerJobsFinder::ALLOWED_INDEXED_COLUMNS + optional :sort, type: String, values: %w[asc desc], default: 'desc', desc: 'Sort by asc (ascending) or desc (descending)' use :pagination end get ':id/jobs' do |