Name |
Last commit
|
Last update |
---|---|---|
.. | ||
base.rb | ||
cache.rb | ||
condition.rb | ||
dsl.rb | ||
preferred_scope.rb | ||
rule.rb | ||
runner.rb | ||
step.rb |
BigW Consortium Gitlab
There were a couple of things here: 1. If the state was already enabled, we don't need to check all the remaining steps - only those that can prevent the state. (An enable followed by an enable is a no-op.) This logic is in `#run`, but we still did the work of scoring and sorting the steps. 2. The sorting is known to be inefficient, but we can make it slightly more efficient by stopping once we have a step with zero score, as that means it's free. Neither of these make this _fast_, especially when called lots of times - as we do when there is lots of activity on an issue - but they do help some.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
base.rb | Loading commit data... | |
cache.rb | Loading commit data... | |
condition.rb | Loading commit data... | |
dsl.rb | Loading commit data... | |
preferred_scope.rb | Loading commit data... | |
rule.rb | Loading commit data... | |
runner.rb | Loading commit data... | |
step.rb | Loading commit data... |