Skip to content

Commit 38e9eec

Browse files
Merge branch 'main' into hide-cancel-button-fullfilled-requests-5544
2 parents 879b4f1 + c9f9520 commit 38e9eec

4 files changed

Lines changed: 30 additions & 24 deletions

File tree

Gemfile.lock

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ GEM
7676
addressable (2.8.7)
7777
public_suffix (>= 2.0.2, < 7.0)
7878
afm (1.0.0)
79-
annotaterb (4.20.0)
79+
annotaterb (4.22.0)
8080
activerecord (>= 6.0.0)
8181
activesupport (>= 6.0.0)
8282
ast (2.4.3)
@@ -124,19 +124,19 @@ GEM
124124
erubi (~> 1.4)
125125
parser (>= 2.4)
126126
smart_properties
127-
bigdecimal (4.1.1)
127+
bigdecimal (4.1.2)
128128
bindex (0.8.1)
129129
binding_of_caller (2.0.0)
130130
debug_inspector (>= 1.2.0)
131-
bootsnap (1.20.1)
131+
bootsnap (1.24.1)
132132
msgpack (~> 1.2)
133133
bootstrap (5.2.3)
134134
autoprefixer-rails (>= 9.1.0)
135135
popper_js (>= 2.11.6, < 3)
136136
sassc-rails (>= 2.0.0)
137137
brakeman (8.0.2)
138138
racc
139-
bugsnag (6.29.0)
139+
bugsnag (6.30.0)
140140
concurrent-ruby (~> 1.0)
141141
builder (3.3.0)
142142
bullet (8.1.0)
@@ -166,7 +166,7 @@ GEM
166166
bigdecimal
167167
rexml
168168
crass (1.0.6)
169-
csv (3.3.2)
169+
csv (3.3.5)
170170
cuprite (0.17)
171171
capybara (~> 3.0)
172172
ferrum (~> 0.17.0)
@@ -207,22 +207,22 @@ GEM
207207
dotenv (= 3.2.0)
208208
railties (>= 6.1)
209209
drb (2.2.3)
210-
dry-core (1.1.0)
210+
dry-core (1.2.0)
211211
concurrent-ruby (~> 1.0)
212212
logger
213213
zeitwerk (~> 2.6)
214-
dry-inflector (1.2.0)
214+
dry-inflector (1.3.1)
215215
dry-logic (1.6.0)
216216
bigdecimal
217217
concurrent-ruby (~> 1.0)
218218
dry-core (~> 1.1)
219219
zeitwerk (~> 2.6)
220-
dry-struct (1.8.0)
220+
dry-struct (1.8.1)
221221
dry-core (~> 1.1)
222222
dry-types (~> 1.8, >= 1.8.2)
223223
ice_nine (~> 0.11)
224224
zeitwerk (~> 2.6)
225-
dry-types (1.9.0)
225+
dry-types (1.9.1)
226226
bigdecimal (>= 3.0)
227227
concurrent-ruby (~> 1.0)
228228
dry-core (~> 1.0)
@@ -281,22 +281,22 @@ GEM
281281
ffi (1.17.4-x86_64-darwin)
282282
ffi (1.17.4-x86_64-linux-gnu)
283283
filterrific (5.2.7)
284-
flipper (1.4.0)
284+
flipper (1.4.1)
285285
concurrent-ruby (< 2)
286-
flipper-active_record (1.4.0)
286+
flipper-active_record (1.4.1)
287287
activerecord (>= 4.2, < 9)
288-
flipper (~> 1.4.0)
289-
flipper-ui (1.4.0)
288+
flipper (~> 1.4.1)
289+
flipper-ui (1.4.1)
290290
erubi (>= 1.0.0, < 2.0.0)
291-
flipper (~> 1.4.0)
291+
flipper (~> 1.4.1)
292292
rack (>= 1.4, < 4)
293293
rack-protection (>= 1.5.3, < 5.0.0)
294294
rack-session (>= 1.0.2, < 3.0.0)
295295
sanitize (< 8)
296296
foreman (0.90.0)
297297
thor (~> 1.4)
298298
formatador (1.1.0)
299-
geocoder (1.8.5)
299+
geocoder (1.8.6)
300300
base64 (>= 0.1.0)
301301
csv (>= 3.0.0)
302302
globalid (1.3.0)
@@ -398,7 +398,7 @@ GEM
398398
memory_profiler (1.1.0)
399399
method_source (1.1.0)
400400
mini_mime (1.1.5)
401-
minitest (6.0.3)
401+
minitest (6.0.6)
402402
drb (~> 2.0)
403403
prism (~> 1.5)
404404
monetize (2.0.0)
@@ -524,14 +524,14 @@ GEM
524524
puma (7.2.0)
525525
nio4r (~> 2.0)
526526
racc (1.8.1)
527-
rack (3.2.5)
527+
rack (3.2.6)
528528
rack-mini-profiler (4.0.1)
529529
rack (>= 1.2.0)
530530
rack-protection (4.2.1)
531531
base64 (>= 0.1.0)
532532
logger (>= 1.6.0)
533533
rack (>= 3.0.0, < 4)
534-
rack-session (2.1.1)
534+
rack-session (2.1.2)
535535
base64 (>= 0.1.0)
536536
rack (>= 3.0.0)
537537
rack-test (2.2.0)
@@ -716,7 +716,7 @@ GEM
716716
stimulus-rails (1.3.4)
717717
railties (>= 6.0.0)
718718
stringio (3.2.0)
719-
strong_migrations (2.6.0)
719+
strong_migrations (2.7.0)
720720
activerecord (>= 7.2)
721721
terser (1.2.7)
722722
execjs (>= 0.3.0, < 3)

app/models/event.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
class Event < ApplicationRecord
1818
include Filterable
1919

20-
scope :for_organization, ->(organization_id) { where(organization_id: organization_id).order(:event_time, :updated_at) }
20+
scope :for_organization, ->(organization_id) { where(organization_id: organization_id).order(:event_time, :id) }
2121
scope :without_snapshots, -> { where("type != 'SnapshotEvent'") }
2222
scope :during, ->(range) { where(events: {created_at: range}) }
2323
scope :by_type, ->(type) { where(type: type) }

spec/services/exports/export_partners_csv_service_spec.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,15 @@
303303
end
304304

305305
it "should handle a partner with missing profile info" do
306-
# The partner_profile factory defaults to populating the no_social_media_presence, primary_contact_name, and primary_contact_email fields
306+
# The partner_profile factory defaults to populating the no_social_media_presence, primary_contact_name, and primary_contact_email fields.
307+
# Destroy the existing profile first; otherwise the factory's `partner { Partner.first || create(:partner) }`
308+
# default attaches the new profile to the same partner, briefly leaving two partner_profiles rows with the
309+
# same partner_id and making the has_one lookup nondeterministic on CI.
310+
partners.first.profile.destroy!
311+
partners.first.reload
307312
partners.first.update(profile: create(
308313
:partner_profile,
314+
partner: partners.first,
309315
no_social_media_presence: nil,
310316
primary_contact_name: nil,
311317
primary_contact_email: nil

spec/support/date_range_picker_shared_example.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def date_range_picker_select_range(range_name)
5151
visit subject
5252
date_range = "#{Time.zone.local(1919, 7, 1).to_fs(:date_picker)} - #{Time.zone.local(2020, 7, 31).to_fs(:date_picker)}"
5353
fill_in "filters_date_range", with: date_range
54-
find(:id, 'filters_date_range').native.send_keys(:enter)
54+
click_on "Filter"
5555
expect(page).to have_css("table tbody tr", count: 6)
5656
end
5757
end
@@ -69,7 +69,7 @@ def date_range_picker_select_range(range_name)
6969
visit subject
7070
date_range = "#{Time.zone.local(2019, 7, 1).to_fs(:date_picker)} - #{Time.zone.local(2019, 7, 31).to_fs(:date_picker)}"
7171
fill_in "filters_date_range", with: date_range
72-
find(:id, 'filters_date_range').native.send_keys(:enter)
72+
click_on "Filter"
7373
expect(page).to have_css("table tbody tr", count: 2)
7474
end
7575
end
@@ -79,7 +79,7 @@ def date_range_picker_select_range(range_name)
7979
visit subject
8080
date_range = "#{Time.zone.local(2019, 7, 22).to_fs(:date_picker)} - #{Time.zone.local(2019, 7, 28).to_fs(:date_picker)}"
8181
fill_in "filters_date_range", with: date_range
82-
find(:id, 'filters_date_range').native.send_keys(:enter)
82+
click_on "Filter"
8383
expect(page).to have_css("table tbody tr", count: 1)
8484
end
8585
end

0 commit comments

Comments
 (0)