BigW Consortium Gitlab

Commit f4e01b59 by Grzegorz Bizon

Move enum specific code from a concern to CI stage

parent c14bd53d
......@@ -5,7 +5,7 @@ module Ci
include HasStatus
include Gitlab::OptimisticLocking
enumerate_status!
enum status: HasStatus::STATUSES_ENUM
belongs_to :project
belongs_to :pipeline
......
......@@ -12,10 +12,6 @@ module HasStatus
failed: 4, canceled: 5, skipped: 6, manual: 7 }.freeze
class_methods do
def enumerate_status!
enum status: HasStatus::STATUSES_ENUM
end
def status_sql
scope_relevant = respond_to?(:exclude_ignored) ? exclude_ignored : all
scope_warnings = respond_to?(:failed_but_allowed) ? failed_but_allowed : none
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment