Skip to content

Commit d818f7c

Browse files
authored
Merge pull request #802 from code0-tech/renovate/good_job-4.x-lockfile
Update dependency good_job to v4.13.1
2 parents d2440cb + 0618951 commit d818f7c

8 files changed

+82
-37
lines changed

Gemfile.lock

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,15 @@ GEM
9595
rails (>= 8.0.1)
9696
zeitwerk (~> 2.7)
9797
coderay (1.1.3)
98-
concurrent-ruby (1.3.5)
99-
connection_pool (2.5.4)
98+
concurrent-ruby (1.3.6)
99+
connection_pool (2.5.5)
100100
crass (1.0.6)
101101
csv (3.3.5)
102102
database_cleaner-active_record (2.2.2)
103103
activerecord (>= 5.a)
104104
database_cleaner-core (~> 2.0)
105105
database_cleaner-core (2.0.1)
106-
date (3.4.1)
106+
date (3.5.1)
107107
debug (1.11.1)
108108
irb (~> 1.10)
109109
reline (>= 0.3.8)
@@ -112,9 +112,9 @@ GEM
112112
diff-lcs (1.6.2)
113113
docile (1.4.1)
114114
drb (2.2.3)
115-
erb (5.0.3)
115+
erb (5.1.3)
116116
erubi (1.13.1)
117-
et-orbi (1.3.0)
117+
et-orbi (1.4.0)
118118
tzinfo
119119
factory_bot (6.5.5)
120120
activesupport (>= 6.1.0)
@@ -123,12 +123,12 @@ GEM
123123
railties (>= 6.1.0)
124124
ffi (1.17.1)
125125
fiber-storage (0.1.2)
126-
fugit (1.11.2)
127-
et-orbi (~> 1, >= 1.2.11)
126+
fugit (1.12.1)
127+
et-orbi (~> 1.4)
128128
raabro (~> 1.4)
129129
globalid (1.3.0)
130130
activesupport (>= 6.1)
131-
good_job (4.12.1)
131+
good_job (4.13.1)
132132
activejob (>= 6.1.0)
133133
activerecord (>= 6.1.0)
134134
concurrent-ruby (>= 1.3.1)
@@ -157,7 +157,7 @@ GEM
157157
mini_magick (>= 4.9.5, < 6)
158158
ruby-vips (>= 2.0.17, < 3)
159159
io-console (0.8.2)
160-
irb (1.15.3)
160+
irb (1.16.0)
161161
pp (>= 0.6.0)
162162
rdoc (>= 4.0.0)
163163
reline (>= 0.4.2)
@@ -173,7 +173,7 @@ GEM
173173
activesupport (>= 4)
174174
railties (>= 4)
175175
request_store (~> 1.0)
176-
loofah (2.24.1)
176+
loofah (2.25.0)
177177
crass (~> 1.0.2)
178178
nokogiri (>= 1.12.0)
179179
mail (2.8.1)
@@ -186,7 +186,7 @@ GEM
186186
mini_magick (4.13.2)
187187
mini_mime (1.1.5)
188188
mini_portile2 (2.8.9)
189-
minitest (5.26.2)
189+
minitest (5.27.0)
190190
msgpack (1.8.0)
191191
multi_xml (0.7.2)
192192
bigdecimal (~> 3.1)
@@ -222,7 +222,7 @@ GEM
222222
pry-byebug (3.11.0)
223223
byebug (~> 12.0)
224224
pry (>= 0.13, < 0.16)
225-
psych (5.2.6)
225+
psych (5.3.1)
226226
date
227227
stringio
228228
public_suffix (6.0.2)
@@ -236,7 +236,7 @@ GEM
236236
rack (>= 3.0.0)
237237
rack-test (2.2.0)
238238
rack (>= 1.3)
239-
rackup (2.2.1)
239+
rackup (2.3.1)
240240
rack (>= 3)
241241
rails (8.0.3)
242242
actioncable (= 8.0.3)
@@ -270,9 +270,10 @@ GEM
270270
zeitwerk (~> 2.6)
271271
rainbow (3.1.1)
272272
rake (13.3.1)
273-
rdoc (6.14.2)
273+
rdoc (6.17.0)
274274
erb
275275
psych (>= 4.0.0)
276+
tsort
276277
regexp_parser (2.10.0)
277278
reline (0.6.3)
278279
io-console (~> 0.5)
@@ -371,10 +372,10 @@ GEM
371372
simplecov (~> 0.19)
372373
simplecov-html (0.13.2)
373374
simplecov_json_formatter (0.1.4)
374-
stringio (3.1.9)
375+
stringio (3.2.0)
375376
test-prof (1.4.4)
376377
thor (1.4.0)
377-
timeout (0.4.4)
378+
timeout (0.6.0)
378379
tsort (0.2.0)
379380
tucana (0.0.49)
380381
grpc (~> 1.64)
@@ -390,7 +391,7 @@ GEM
390391
base64
391392
websocket-extensions (>= 0.1.0)
392393
websocket-extensions (0.1.5)
393-
zeitwerk (2.7.3)
394+
zeitwerk (2.7.4)
394395

395396
PLATFORMS
396397
ruby
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# frozen_string_literal: true
2+
3+
class AddIndexGoodJobsFinishedAtForCleanup < Code0::ZeroTrack::Database::Migration[1.0]
4+
disable_ddl_transaction!
5+
6+
def change
7+
reversible do |dir|
8+
dir.up do
9+
# Ensure this incremental update migration is idempotent
10+
# with monolithic install migration.
11+
return if connection.index_exists? :good_jobs, [:finished_at], name: :index_good_jobs_jobs_on_finished_at_only
12+
end
13+
end
14+
15+
add_index :good_jobs, [:finished_at], where: 'finished_at IS NOT NULL',
16+
name: :index_good_jobs_jobs_on_finished_at_only, algorithm: :concurrently
17+
end
18+
end
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# frozen_string_literal: true
2+
3+
class RemoveExtraneousFinishedAtIndex < Code0::ZeroTrack::Database::Migration[1.0]
4+
disable_ddl_transaction!
5+
6+
def change
7+
reversible do |dir|
8+
dir.up do
9+
# Ensure this incremental update migration is idempotent
10+
# with monolithic install migration.
11+
return unless connection.index_exists? :good_jobs, [:finished_at], name: :index_good_jobs_jobs_on_finished_at
12+
end
13+
end
14+
15+
remove_index :good_jobs, [:finished_at], where: 'retried_good_job_id IS NULL AND finished_at IS NOT NULL',
16+
name: :index_good_jobs_jobs_on_finished_at, algorithm: :concurrently
17+
end
18+
end
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
459a9b0b80b38af5e26a482eacfcc3bf63b56b47845ae02ba814b1d6ecb4bde6
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
6aabe9c35c16f35e4c34fd0b0d5ff4136ffc9e9d16520e1f1d96513a1b160ed7

db/structure.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ CREATE INDEX index_good_job_jobs_for_candidate_lookup ON good_jobs USING btree (
11331133

11341134
CREATE UNIQUE INDEX index_good_job_settings_on_key ON good_job_settings USING btree (key);
11351135

1136-
CREATE INDEX index_good_jobs_jobs_on_finished_at ON good_jobs USING btree (finished_at) WHERE ((retried_good_job_id IS NULL) AND (finished_at IS NOT NULL));
1136+
CREATE INDEX index_good_jobs_jobs_on_finished_at_only ON good_jobs USING btree (finished_at) WHERE (finished_at IS NOT NULL);
11371137

11381138
CREATE INDEX index_good_jobs_jobs_on_priority_created_at_when_unfinished ON good_jobs USING btree (priority DESC NULLS LAST, created_at) WHERE (finished_at IS NULL);
11391139

spec/all_extension_classes_spec.rb

Lines changed: 0 additions & 19 deletions
This file was deleted.

spec/application_state_spec.rb

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# frozen_string_literal: true
2+
3+
require 'rails_helper'
4+
5+
# rubocop:disable RSpec/DescribeClass -- this test is testing global application state
6+
RSpec.describe 'application state', :eager_load do
7+
describe 'all extension classes' do
8+
# rubocop:disable RSpec/NoExpectationExample -- these tests fail with exceptions
9+
it 'overrides only defined methods' do
10+
Sagittarius::Override.verify_all!
11+
end
12+
13+
it 'marks all overridden methods as override' do
14+
InjectExtensions.extended_constants.each_pair do |core, extensions|
15+
Sagittarius::Override.verify_missing_overrides!(core, extensions)
16+
end
17+
end
18+
# rubocop:enable RSpec/NoExpectationExample
19+
end
20+
21+
describe 'good_job' do
22+
it { expect(GoodJob.migrated?).to be true }
23+
end
24+
end
25+
# rubocop:enable RSpec/DescribeClass

0 commit comments

Comments
 (0)