Skip to content
Snippets Groups Projects

Commit statuses api add filter on pipeline_id and sort

Merged guillaume micouin requested to merge gmicouin/gitlab:dev/gmic/status_pipeline_id into master
Files
3
@@ -59,8 +59,8 @@ class CommitStatus < Ci::ApplicationRecord
end
scope :order_id_desc, -> { order(id: :desc) }
scope :order_pipeline_id, -> { order(pipeline_id: :asc) }
scope :order_pipeline_id_desc, -> { order(pipeline_id: :desc) }
scope :order_by_pipeline_id, -> { order(pipeline_id: :asc) }
scope :order_by_pipeline_id_desc, -> { order(pipeline_id: :desc) }
scope :latest, -> { where(retried: [false, nil]) }
scope :retried, -> { where(retried: true) }
Loading