Skip to content

Commit

Permalink
check compats of latest major rails releases first
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelmeurer committed Mar 7, 2024
1 parent a1fe0d7 commit d35bf84
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions app/services/compats/check_unchecked.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,30 @@
module Compats
class CheckUnchecked < Baseline::Service
LIMIT = 100

def call
check_uniqueness

Compat.unchecked.limit(100).find_each do |compat|
Compats::Check.call compat
count = 0

RailsRelease
.latest_major
.reverse
.concat(RailsRelease.all)
.uniq
.each do |rails_release|

break unless count < LIMIT

rails_release
.compats
.unchecked
.limit(LIMIT - count)
.each do |compat|

count += 1
Compats::Check.call compat
end
end
end
end
Expand Down

0 comments on commit d35bf84

Please sign in to comment.