Sort by id, not created_at
This commit is contained in:
parent
39b90bcec4
commit
3fb24bc621
|
@ -11,7 +11,7 @@ class Projects::JobsController < Projects::ApplicationController
|
||||||
def index
|
def index
|
||||||
@scope = params[:scope]
|
@scope = params[:scope]
|
||||||
@all_builds = project.builds.relevant
|
@all_builds = project.builds.relevant
|
||||||
@builds = @all_builds.order('created_at DESC')
|
@builds = @all_builds.order('ci_builds.id DESC')
|
||||||
@builds =
|
@builds =
|
||||||
case @scope
|
case @scope
|
||||||
when 'pending'
|
when 'pending'
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
title: Sort JobsController by id, not created_at
|
||||||
|
merge_request:
|
||||||
|
author:
|
||||||
|
type: fixed
|
Loading…
Reference in New Issue