Skip to content

Commit af0153f

Browse files
authored
Merge branch 'main' into dependabot/github_actions/actions/upload-artifact-5
2 parents 91ac538 + 5abcfb3 commit af0153f

File tree

7 files changed

+73
-58
lines changed

7 files changed

+73
-58
lines changed

Gemfile.lock

Lines changed: 54 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -88,20 +88,20 @@ GEM
8888
activesupport (>= 6.0.0)
8989
ast (2.4.3)
9090
aws-eventstream (1.4.0)
91-
aws-partitions (1.1164.0)
92-
aws-sdk-core (3.233.0)
91+
aws-partitions (1.1177.0)
92+
aws-sdk-core (3.235.0)
9393
aws-eventstream (~> 1, >= 1.3.0)
9494
aws-partitions (~> 1, >= 1.992.0)
9595
aws-sigv4 (~> 1.9)
9696
base64
9797
bigdecimal
9898
jmespath (~> 1, >= 1.6.1)
9999
logger
100-
aws-sdk-kms (1.112.0)
101-
aws-sdk-core (~> 3, >= 3.231.0)
100+
aws-sdk-kms (1.115.0)
101+
aws-sdk-core (~> 3, >= 3.234.0)
102102
aws-sigv4 (~> 1.5)
103-
aws-sdk-s3 (1.199.0)
104-
aws-sdk-core (~> 3, >= 3.231.0)
103+
aws-sdk-s3 (1.201.0)
104+
aws-sdk-core (~> 3, >= 3.234.0)
105105
aws-sdk-kms (~> 1)
106106
aws-sigv4 (~> 1.5)
107107
aws-sigv4 (1.12.1)
@@ -114,15 +114,15 @@ GEM
114114
base64 (0.3.0)
115115
bcrypt (3.1.20)
116116
bcrypt_pbkdf (1.1.1)
117-
benchmark (0.4.1)
117+
benchmark (0.5.0)
118118
bigdecimal (3.3.1)
119119
bindex (0.8.1)
120120
bootsnap (1.18.6)
121121
msgpack (~> 1.2)
122122
brakeman (7.1.0)
123123
racc
124124
builder (3.3.0)
125-
bullet (8.0.8)
125+
bullet (8.1.0)
126126
activesupport (>= 3.0.0)
127127
uniform_notifier (~> 1.11)
128128
capybara (3.40.0)
@@ -157,18 +157,18 @@ GEM
157157
railties (>= 6.1)
158158
drb (2.2.3)
159159
ed25519 (1.4.0)
160-
erb (5.0.2)
160+
erb (5.1.1)
161161
erubi (1.13.1)
162-
et-orbi (1.3.0)
162+
et-orbi (1.4.0)
163163
tzinfo
164-
factory_bot (6.5.5)
164+
factory_bot (6.5.6)
165165
activesupport (>= 6.1.0)
166166
factory_bot_rails (6.5.1)
167167
factory_bot (~> 6.5)
168168
railties (>= 6.1.0)
169169
faker (3.5.2)
170170
i18n (>= 1.8.11, < 2)
171-
faraday (2.13.4)
171+
faraday (2.14.0)
172172
faraday-net_http (>= 2.0, < 3.5)
173173
json
174174
logger
@@ -184,33 +184,33 @@ GEM
184184
ffi (1.17.2-x86_64-darwin)
185185
ffi (1.17.2-x86_64-linux-gnu)
186186
ffi (1.17.2-x86_64-linux-musl)
187-
fugit (1.11.2)
188-
et-orbi (~> 1, >= 1.2.11)
187+
fugit (1.12.1)
188+
et-orbi (~> 1.4)
189189
raabro (~> 1.4)
190190
globalid (1.3.0)
191191
activesupport (>= 6.1)
192-
google-protobuf (4.32.1)
192+
google-protobuf (4.33.0)
193193
bigdecimal
194194
rake (>= 13)
195-
google-protobuf (4.32.1-aarch64-linux-gnu)
195+
google-protobuf (4.33.0-aarch64-linux-gnu)
196196
bigdecimal
197197
rake (>= 13)
198-
google-protobuf (4.32.1-aarch64-linux-musl)
198+
google-protobuf (4.33.0-aarch64-linux-musl)
199199
bigdecimal
200200
rake (>= 13)
201-
google-protobuf (4.32.1-arm64-darwin)
201+
google-protobuf (4.33.0-arm64-darwin)
202202
bigdecimal
203203
rake (>= 13)
204-
google-protobuf (4.32.1-x86_64-darwin)
204+
google-protobuf (4.33.0-x86_64-darwin)
205205
bigdecimal
206206
rake (>= 13)
207-
google-protobuf (4.32.1-x86_64-linux-gnu)
207+
google-protobuf (4.33.0-x86_64-linux-gnu)
208208
bigdecimal
209209
rake (>= 13)
210-
google-protobuf (4.32.1-x86_64-linux-musl)
210+
google-protobuf (4.33.0-x86_64-linux-musl)
211211
bigdecimal
212212
rake (>= 13)
213-
googleapis-common-protos-types (1.21.0)
213+
googleapis-common-protos-types (1.22.0)
214214
google-protobuf (~> 4.26)
215215
hotwire-spark (0.1.13)
216216
listen
@@ -234,10 +234,10 @@ GEM
234234
actionview (>= 7.0.0)
235235
activesupport (>= 7.0.0)
236236
jmespath (1.6.2)
237-
json (2.15.0)
237+
json (2.15.2)
238238
jwt (2.10.2)
239239
base64
240-
kamal (2.8.0)
240+
kamal (2.8.2)
241241
activesupport (>= 7.0)
242242
base64 (~> 0.2)
243243
bcrypt_pbkdf (~> 1.0)
@@ -263,7 +263,8 @@ GEM
263263
loofah (2.24.1)
264264
crass (~> 1.0.2)
265265
nokogiri (>= 1.12.0)
266-
mail (2.8.1)
266+
mail (2.9.0)
267+
logger
267268
mini_mime (>= 0.1.1)
268269
net-imap
269270
net-pop
@@ -287,7 +288,7 @@ GEM
287288
msgpack (1.8.0)
288289
net-http (0.6.0)
289290
uri
290-
net-imap (0.5.10)
291+
net-imap (0.5.12)
291292
date
292293
net-protocol
293294
net-pop (0.1.2)
@@ -319,9 +320,9 @@ GEM
319320
nokogiri (1.18.10-x86_64-linux-musl)
320321
racc (~> 1.4)
321322
opentelemetry-api (1.7.0)
322-
opentelemetry-common (0.22.0)
323+
opentelemetry-common (0.23.0)
323324
opentelemetry-api (~> 1.0)
324-
opentelemetry-exporter-otlp-logs (0.2.1)
325+
opentelemetry-exporter-otlp-logs (0.2.2)
325326
google-protobuf (>= 3.18)
326327
googleapis-common-protos-types (~> 1.3)
327328
opentelemetry-api (~> 1.1)
@@ -330,8 +331,8 @@ GEM
330331
opentelemetry-logs-sdk (~> 0.1)
331332
opentelemetry-sdk
332333
opentelemetry-semantic_conventions
333-
opentelemetry-instrumentation-base (0.23.0)
334-
opentelemetry-api (~> 1.0)
334+
opentelemetry-instrumentation-base (0.25.0)
335+
opentelemetry-api (~> 1.7)
335336
opentelemetry-common (~> 0.21)
336337
opentelemetry-registry (~> 0.1)
337338
opentelemetry-logs-api (0.2.0)
@@ -342,7 +343,7 @@ GEM
342343
opentelemetry-sdk (~> 1.3)
343344
opentelemetry-registry (0.4.0)
344345
opentelemetry-api (~> 1.1)
345-
opentelemetry-sdk (1.9.0)
346+
opentelemetry-sdk (1.10.0)
346347
opentelemetry-api (~> 1.1)
347348
opentelemetry-common (~> 0.20)
348349
opentelemetry-registry (~> 0.2)
@@ -364,10 +365,10 @@ GEM
364365
pg (1.6.2-x86_64-darwin)
365366
pg (1.6.2-x86_64-linux)
366367
pg (1.6.2-x86_64-linux-musl)
367-
pp (0.6.2)
368+
pp (0.6.3)
368369
prettyprint
369370
prettyprint (0.2.0)
370-
prism (1.5.1)
371+
prism (1.6.0)
371372
propshaft (1.3.1)
372373
actionpack (>= 7.0.0)
373374
activesupport (>= 7.0.0)
@@ -431,21 +432,22 @@ GEM
431432
rb-fsevent (0.11.2)
432433
rb-inotify (0.11.1)
433434
ffi (~> 1.0)
434-
rdoc (6.14.2)
435+
rdoc (6.15.0)
435436
erb
436437
psych (>= 4.0.0)
438+
tsort
437439
regexp_parser (2.11.3)
438440
reline (0.6.2)
439441
io-console (~> 0.5)
440442
requestjs-rails (0.0.13)
441443
railties (>= 7.1.0)
442444
rexml (3.4.4)
443-
rspec-core (3.13.5)
445+
rspec-core (3.13.6)
444446
rspec-support (~> 3.13.0)
445447
rspec-expectations (3.13.5)
446448
diff-lcs (>= 1.2.0, < 2.0)
447449
rspec-support (~> 3.13.0)
448-
rspec-mocks (3.13.5)
450+
rspec-mocks (3.13.6)
449451
diff-lcs (>= 1.2.0, < 2.0)
450452
rspec-support (~> 3.13.0)
451453
rspec-rails (8.0.2)
@@ -457,25 +459,25 @@ GEM
457459
rspec-mocks (~> 3.13)
458460
rspec-support (~> 3.13)
459461
rspec-support (3.13.6)
460-
rubocop (1.80.2)
462+
rubocop (1.81.6)
461463
json (~> 2.3)
462464
language_server-protocol (~> 3.17.0.2)
463465
lint_roller (~> 1.1.0)
464466
parallel (~> 1.10)
465467
parser (>= 3.3.0.2)
466468
rainbow (>= 2.2.2, < 4.0)
467469
regexp_parser (>= 2.9.3, < 3.0)
468-
rubocop-ast (>= 1.46.0, < 2.0)
470+
rubocop-ast (>= 1.47.1, < 2.0)
469471
ruby-progressbar (~> 1.7)
470472
unicode-display_width (>= 2.4.0, < 4.0)
471473
rubocop-ast (1.47.1)
472474
parser (>= 3.3.7.2)
473475
prism (~> 1.4)
474-
rubocop-performance (1.26.0)
476+
rubocop-performance (1.26.1)
475477
lint_roller (~> 1.1)
476478
rubocop (>= 1.75.0, < 2.0)
477-
rubocop-ast (>= 1.44.0, < 2.0)
478-
rubocop-rails (2.33.3)
479+
rubocop-ast (>= 1.47.1, < 2.0)
480+
rubocop-rails (2.33.4)
479481
activesupport (>= 4.2.0)
480482
lint_roller (~> 1.1)
481483
rack (>= 1.1)
@@ -489,7 +491,7 @@ GEM
489491
ruby-vips (2.2.5)
490492
ffi (~> 1.12)
491493
logger
492-
rubyzip (3.2.0)
494+
rubyzip (3.2.1)
493495
scout_apm (5.7.1)
494496
parser
495497
scout_apm_logging (2.1.0)
@@ -503,7 +505,7 @@ GEM
503505
opentelemetry-sdk (>= 1.2)
504506
scout_apm
505507
securerandom (0.4.1)
506-
selenium-webdriver (4.37.0)
508+
selenium-webdriver (4.38.0)
507509
base64 (~> 0.2)
508510
logger (~> 1.4)
509511
rexml (~> 3.2, >= 3.2.5)
@@ -516,15 +518,15 @@ GEM
516518
activejob (>= 7.2)
517519
activerecord (>= 7.2)
518520
railties (>= 7.2)
519-
solid_cache (1.0.7)
521+
solid_cache (1.0.8)
520522
activejob (>= 7.2)
521523
activerecord (>= 7.2)
522524
railties (>= 7.2)
523-
solid_queue (1.2.1)
525+
solid_queue (1.2.2)
524526
activejob (>= 7.1)
525527
activerecord (>= 7.1)
526528
concurrent-ruby (>= 1.3.1)
527-
fugit (~> 1.11.0)
529+
fugit (~> 1.11)
528530
railties (>= 7.1)
529531
thor (>= 1.3.1)
530532
solid_queue_monitor (0.3.2)
@@ -541,14 +543,14 @@ GEM
541543
railties (>= 6.0.0)
542544
stringio (3.1.7)
543545
thor (1.4.0)
544-
thruster (0.1.15)
545-
thruster (0.1.15-aarch64-linux)
546-
thruster (0.1.15-arm64-darwin)
547-
thruster (0.1.15-x86_64-darwin)
548-
thruster (0.1.15-x86_64-linux)
546+
thruster (0.1.16)
547+
thruster (0.1.16-aarch64-linux)
548+
thruster (0.1.16-arm64-darwin)
549+
thruster (0.1.16-x86_64-darwin)
550+
thruster (0.1.16-x86_64-linux)
549551
timeout (0.4.3)
550552
tsort (0.2.0)
551-
turbo-rails (2.0.16)
553+
turbo-rails (2.0.17)
552554
actionpack (>= 7.1.0)
553555
railties (>= 7.1.0)
554556
tzinfo (2.0.6)

app/controllers/providers_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ class ProvidersController < ApplicationController
33
before_action :redirect_contributors
44

55
def index
6-
@providers = Provider.all
6+
@providers = Provider.includes(:regions).order(:name)
77
end
88

99
def show

app/controllers/regions_controller.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ class RegionsController < ApplicationController
44

55
# GET /regions
66
def index
7-
@regions = Region.all
7+
@regions = Region
8+
.left_joins(:providers)
9+
.select("regions.*, COUNT(providers.id) AS providers_count")
10+
.group("regions.id")
11+
.order(:name)
812
end
913

1014
# GET /regions/1

app/views/providers/_form.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@
2525
</div>
2626
</div>
2727

28-
<div class="col-md-4">
28+
<!--div class="col-md-4">
2929
<div class="form-group">
3030
<%= form.label :file_name_prefix, style: "display: block" %>
3131
<%= form.text_field :file_name_prefix, id: "basicInput", class: "form-control" %>
3232
</div>
33-
</div>
33+
</div-->
3434

3535
<div class="col-md-4">
3636
<div class="form-group">

app/views/providers/index.html.erb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
<tr>
2020
<th>Provider</th>
2121
<th>Type</th>
22+
<th>Prefix</th>
23+
<th>Regions</th>
2224
<th class="text-end">Provider Actions</th>
2325
</tr>
2426
</thead>
@@ -27,6 +29,8 @@
2729
<tr>
2830
<td class="text-bold-500"><%= provider.name %></td>
2931
<td><%= provider.provider_type %></td>
32+
<td><%= provider.file_name_prefix %></td>
33+
<td><%= provider.regions.pluck(:name).join(", ") %></td>
3034
<td class="text-end">
3135
<%= link_to provider, class: "btn btn-primary btn-sm" do %>
3236
<i class="bi bi-search"></i> View

app/views/regions/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<% @regions.each do |region| %>
2727
<tr>
2828
<td class="text-bold-500"><%= region.name %></td>
29-
<td>1</td>
29+
<td><%= region.providers_count %></td>
3030
<td class="text-end">
3131
<%= link_to region, class: "btn btn-primary btn-sm" do %>
3232
<i class="bi bi-search"></i> View

spec/views/regions/index.html.erb_spec.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
require "rails_helper"
22

33
RSpec.describe "regions/index", type: :view do
4+
let!(:regions) { [ create(:region, name: "Region 1"), create(:region, name: "Region 2") ] }
45
before(:each) do
5-
assign(:regions, [ create(:region, name: "Region 1"), create(:region, name: "Region 2") ])
6+
assign :regions, Region
7+
.left_joins(:providers)
8+
.select("regions.*, COUNT(providers.id) AS providers_count")
9+
.group("regions.id")
10+
.order(:name)
611
end
712

813
it "renders a list of regions" do

0 commit comments

Comments
 (0)