Class: Afterlife::Clickup::StatusPrecedenceChecker
- Inherits:
-
Object
- Object
- Afterlife::Clickup::StatusPrecedenceChecker
- Defined in:
- lib/afterlife/clickup/status_precedence_checker.rb
Constant Summary collapse
- STATUS_PRECEDENCE =
[ 'backlog', 'defined', 'planned', 'in progress', 'needs review', 'needs rework', 'blocked', 'trunk merged', 'ready for qa', 'validated qa', 'completed', ].freeze
Instance Method Summary collapse
Instance Method Details
#should_skip_update?(current_status, target_status) ⇒ Boolean
20 21 22 23 24 25 |
# File 'lib/afterlife/clickup/status_precedence_checker.rb', line 20 def should_skip_update?(current_status, target_status) current_precedence = get_precedence(current_status) target_precedence = get_precedence(target_status) current_precedence >= target_precedence end |