Skip to content

Commit 1bcadee

Browse files
Andrew GarvinAndrew Garvin
authored andcommitted
Merge branch 'main' into 6600_volunteer_emailsave
2 parents bf4d85a + cd39246 commit 1bcadee

File tree

72 files changed

+567
-428
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+567
-428
lines changed

Gemfile.lock

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -110,16 +110,16 @@ GEM
110110
bigdecimal (3.3.1)
111111
bindex (0.8.1)
112112
blueprinter (1.2.1)
113-
brakeman (7.1.0)
113+
brakeman (7.1.1)
114114
racc
115115
bugsnag (6.28.0)
116116
concurrent-ruby (~> 1.0)
117117
builder (3.3.0)
118118
bullet (8.1.0)
119119
activesupport (>= 3.0.0)
120120
uniform_notifier (~> 1.11)
121-
bundler-audit (0.9.2)
122-
bundler (>= 1.2.0, < 3)
121+
bundler-audit (0.9.3)
122+
bundler (>= 1.2.0)
123123
thor (~> 1.0)
124124
byebug (12.0.0)
125125
capybara (3.40.0)
@@ -155,7 +155,7 @@ GEM
155155
crass (1.0.6)
156156
cssbundling-rails (1.4.3)
157157
railties (>= 6.0.0)
158-
csv (3.3.4)
158+
csv (3.3.5)
159159
database_cleaner-active_record (2.2.2)
160160
activerecord (>= 5.a)
161161
database_cleaner-core (~> 2.0)
@@ -276,7 +276,7 @@ GEM
276276
activesupport (>= 7.1)
277277
hashdiff (1.2.1)
278278
htmlentities (4.3.4)
279-
httparty (0.23.1)
279+
httparty (0.24.2)
280280
csv
281281
mini_mime (>= 1.0.0)
282282
multi_xml (>= 0.5.2)
@@ -295,7 +295,7 @@ GEM
295295
activesupport (>= 7.0.0)
296296
jsbundling-rails (1.3.1)
297297
railties (>= 6.0.0)
298-
json (2.16.0)
298+
json (2.18.0)
299299
json-schema (6.0.0)
300300
addressable (~> 2.8)
301301
bigdecimal (~> 3.1)
@@ -335,8 +335,8 @@ GEM
335335
mini_mime (1.1.5)
336336
mini_portile2 (2.8.9)
337337
minitest (5.27.0)
338-
multi_xml (0.7.1)
339-
bigdecimal (~> 3.1)
338+
multi_xml (0.8.1)
339+
bigdecimal (>= 3.1, < 5)
340340
multipart-post (2.4.1)
341341
net-http-persistent (4.0.4)
342342
connection_pool (~> 2.2)
@@ -361,7 +361,7 @@ GEM
361361
racc (~> 1.4)
362362
noticed (2.9.3)
363363
rails (>= 6.1.0)
364-
oj (3.16.12)
364+
oj (3.16.13)
365365
bigdecimal (>= 3.0)
366366
ostruct (>= 0.2)
367367
opentelemetry-api (1.5.0)
@@ -420,7 +420,7 @@ GEM
420420
pretender (0.6.0)
421421
actionpack (>= 7.1)
422422
prettyprint (0.2.0)
423-
prism (1.6.0)
423+
prism (1.7.0)
424424
pry (0.15.2)
425425
coderay (~> 1.1)
426426
method_source (~> 1.0)
@@ -546,18 +546,18 @@ GEM
546546
rubocop-ast (>= 1.47.1, < 2.0)
547547
ruby-progressbar (~> 1.7)
548548
unicode-display_width (>= 2.4.0, < 4.0)
549-
rubocop-ast (1.48.0)
549+
rubocop-ast (1.49.0)
550550
parser (>= 3.3.7.2)
551-
prism (~> 1.4)
551+
prism (~> 1.7)
552552
rubocop-capybara (2.22.1)
553553
lint_roller (~> 1.1)
554554
rubocop (~> 1.72, >= 1.72.1)
555555
rubocop-factory_bot (2.26.1)
556556
rubocop (~> 1.61)
557-
rubocop-performance (1.25.0)
557+
rubocop-performance (1.26.1)
558558
lint_roller (~> 1.1)
559559
rubocop (>= 1.75.0, < 2.0)
560-
rubocop-ast (>= 1.38.0, < 2.0)
560+
rubocop-ast (>= 1.47.1, < 2.0)
561561
rubocop-rails (2.31.0)
562562
activesupport (>= 4.2.0)
563563
lint_roller (~> 1.1)
@@ -597,7 +597,7 @@ GEM
597597
opentelemetry-sdk (>= 1.2)
598598
scout_apm
599599
securerandom (0.4.1)
600-
selenium-webdriver (4.37.0)
600+
selenium-webdriver (4.40.0)
601601
base64 (~> 0.2)
602602
logger (~> 1.4)
603603
rexml (~> 3.2, >= 3.2.5)
@@ -634,9 +634,9 @@ GEM
634634
standard-custom (1.0.2)
635635
lint_roller (~> 1.0)
636636
rubocop (~> 1.50)
637-
standard-performance (1.8.0)
637+
standard-performance (1.9.0)
638638
lint_roller (~> 1.1)
639-
rubocop-performance (~> 1.25.0)
639+
rubocop-performance (~> 1.26.0)
640640
standard-rails (1.4.0)
641641
lint_roller (~> 1.0)
642642
rubocop-rails (~> 2.31.0)
@@ -661,7 +661,7 @@ GEM
661661
concurrent-ruby (~> 1.0)
662662
unicode-display_width (3.2.0)
663663
unicode-emoji (~> 4.1)
664-
unicode-emoji (4.1.0)
664+
unicode-emoji (4.2.0)
665665
uniform_notifier (1.18.0)
666666
useragent (0.16.11)
667667
view_component (3.22.0)

app/controllers/additional_expenses_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def create
88
if @additional_expense.save
99
render json: @additional_expense.as_json, status: :created
1010
else
11-
render json: @additional_expense.errors.as_json, status: :unprocessable_entity
11+
render json: @additional_expense.errors.as_json, status: :unprocessable_content
1212
end
1313
end
1414

app/controllers/all_casa_admins/casa_admins_controller.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def create
1212
service.create!
1313
redirect_to all_casa_admins_casa_org_path(@casa_org), notice: "New admin created successfully"
1414
rescue ActiveRecord::RecordInvalid
15-
render :new, status: :unprocessable_entity
15+
render :new, status: :unprocessable_content
1616
end
1717
end
1818

@@ -28,7 +28,7 @@ def update
2828
@casa_admin.filter_old_emails!(@casa_admin.email)
2929
redirect_to edit_all_casa_admins_casa_org_casa_admin_path(@casa_org), notice: notice
3030
else
31-
render :edit, status: :unprocessable_entity
31+
render :edit, status: :unprocessable_content
3232
end
3333
end
3434

@@ -39,7 +39,7 @@ def activate
3939

4040
redirect_to edit_all_casa_admins_casa_org_casa_admin_path, notice: "Admin was activated. They have been sent an email."
4141
else
42-
render :edit, status: :unprocessable_entity
42+
render :edit, status: :unprocessable_content
4343
end
4444
end
4545

@@ -50,7 +50,7 @@ def deactivate
5050

5151
redirect_to edit_all_casa_admins_casa_org_casa_admin_path, notice: "Admin was deactivated."
5252
else
53-
render :edit, status: :unprocessable_entity
53+
render :edit, status: :unprocessable_content
5454
end
5555
end
5656

app/controllers/all_casa_admins/casa_orgs_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ def create
2525
end
2626
else
2727
respond_to do |format|
28-
format.html { render :new, status: :unprocessable_entity }
29-
format.json { render json: @casa_org.errors.full_messages, status: :unprocessable_entity }
28+
format.html { render :new, status: :unprocessable_content }
29+
format.json { render json: @casa_org.errors.full_messages, status: :unprocessable_content }
3030
end
3131
end
3232
end

app/controllers/all_casa_admins/patch_notes_controller.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def create
1313
if @patch_note.save
1414
render json: {status: :created, id: @patch_note.id}, status: :created
1515
else
16-
render json: {errors: @patch_note.errors.full_messages.to_json}, status: :unprocessable_entity
16+
render json: {errors: @patch_note.errors.full_messages.to_json}, status: :unprocessable_content
1717
end
1818
end
1919

@@ -23,7 +23,7 @@ def update
2323
if @patch_note.update(patch_note_params)
2424
render json: {status: :ok}
2525
else
26-
render json: {errors: @patch_note.errors.full_messages.to_json}, status: :unprocessable_entity
26+
render json: {errors: @patch_note.errors.full_messages.to_json}, status: :unprocessable_content
2727
end
2828
end
2929

@@ -34,7 +34,7 @@ def destroy
3434
if @patch_note.destroy
3535
render json: {status: :ok}
3636
else
37-
render json: {errors: @patch_note.errors.full_messages.to_json}, status: :unprocessable_entity
37+
render json: {errors: @patch_note.errors.full_messages.to_json}, status: :unprocessable_content
3838
end
3939
end
4040

app/controllers/all_casa_admins_controller.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ def create
3030
end
3131
rescue ActiveRecord::RecordInvalid
3232
respond_to do |format|
33-
format.html { render :new, status: :unprocessable_entity }
33+
format.html { render :new, status: :unprocessable_content }
3434

3535
format.json do
36-
render json: @all_casa_admin.errors.full_messages, status: :unprocessable_entity
36+
render json: @all_casa_admin.errors.full_messages, status: :unprocessable_content
3737
end
3838
end
3939
end
@@ -53,8 +53,8 @@ def update
5353
end
5454
else
5555
respond_to do |format|
56-
format.html { render :edit, status: :unprocessable_entity }
57-
format.json { render json: @user.errors.full_messages, status: :unprocessable_entity }
56+
format.html { render :edit, status: :unprocessable_content }
57+
format.json { render json: @user.errors.full_messages, status: :unprocessable_content }
5858
end
5959
end
6060
end
@@ -78,8 +78,8 @@ def update_password
7878
end
7979
else
8080
respond_to do |format|
81-
format.html { render :edit, status: :unprocessable_entity }
82-
format.json { render json: @user.errors.full_messages, status: :unprocessable_entity }
81+
format.html { render :edit, status: :unprocessable_content }
82+
format.json { render json: @user.errors.full_messages, status: :unprocessable_content }
8383
end
8484
end
8585
end

app/controllers/banners_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def create
3535

3636
redirect_to banners_path
3737
rescue
38-
render :new, status: :unprocessable_entity
38+
render :new, status: :unprocessable_content
3939
end
4040

4141
def update
@@ -48,7 +48,7 @@ def update
4848

4949
redirect_to banners_path
5050
rescue
51-
render :edit, status: :unprocessable_entity
51+
render :edit, status: :unprocessable_content
5252
end
5353

5454
def destroy

app/controllers/bulk_court_dates_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def create
1515
case_group_id = params[:court_date][:case_group_id]
1616
if case_group_id.empty?
1717
@court_date = build_court_date_with_error_message
18-
render :new, status: :unprocessable_entity
18+
render :new, status: :unprocessable_content
1919
return
2020
end
2121

@@ -26,7 +26,7 @@ def create
2626

2727
if court_date_with_error
2828
@court_date = court_date_with_error
29-
render :new, status: :unprocessable_entity
29+
render :new, status: :unprocessable_content
3030
else
3131
redirect_to new_bulk_court_date_path, notice: "#{court_dates.size} #{"court date".pluralize(court_dates.size)} created!"
3232
end

app/controllers/casa_admins_controller.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ def update
2626
end
2727
else
2828
respond_to do |format|
29-
format.html { render :edit, status: :unprocessable_entity }
30-
format.json { render json: @casa_admin.errors.full_messages, status: :unprocessable_entity }
29+
format.html { render :edit, status: :unprocessable_content }
30+
format.json { render json: @casa_admin.errors.full_messages, status: :unprocessable_content }
3131
end
3232
end
3333
end
@@ -59,8 +59,8 @@ def create
5959
end
6060
rescue ActiveRecord::RecordInvalid
6161
respond_to do |format|
62-
format.html { render :new, status: :unprocessable_entity }
63-
format.json { render json: service.casa_admin.errors.full_messages, status: :unprocessable_entity }
62+
format.html { render :new, status: :unprocessable_content }
63+
format.json { render json: service.casa_admin.errors.full_messages, status: :unprocessable_content }
6464
end
6565
end
6666
end
@@ -81,8 +81,8 @@ def activate
8181
end
8282
else
8383
respond_to do |format|
84-
format.html { render :edit, status: :unprocessable_entity }
85-
format.json { render json: @casa_admin.errors.full_messages, status: :unprocessable_entity }
84+
format.html { render :edit, status: :unprocessable_content }
85+
format.json { render json: @casa_admin.errors.full_messages, status: :unprocessable_content }
8686
end
8787
end
8888
rescue Errno::ECONNREFUSED => error
@@ -100,8 +100,8 @@ def deactivate
100100
end
101101
else
102102
respond_to do |format|
103-
format.html { render :edit, status: :unprocessable_entity }
104-
format.json { render json: @casa_admin.errors.full_messages, status: :unprocessable_entity }
103+
format.html { render :edit, status: :unprocessable_content }
104+
format.json { render json: @casa_admin.errors.full_messages, status: :unprocessable_content }
105105
end
106106
end
107107
rescue Errno::ECONNREFUSED => error

app/controllers/casa_cases_controller.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ def create
5959
set_contact_types
6060
@empty_court_date = court_date_unknown?
6161
respond_to do |format|
62-
format.html { render :new, status: :unprocessable_entity }
63-
format.json { render json: @casa_case.errors.full_messages, status: :unprocessable_entity }
62+
format.html { render :new, status: :unprocessable_content }
63+
format.json { render json: @casa_case.errors.full_messages, status: :unprocessable_content }
6464
end
6565
end
6666
end
@@ -79,8 +79,8 @@ def update
7979
end
8080
else
8181
respond_to do |format|
82-
format.html { render :edit, status: :unprocessable_entity }
83-
format.json { render json: @casa_case.errors.full_messages, status: :unprocessable_entity }
82+
format.html { render :edit, status: :unprocessable_content }
83+
format.json { render json: @casa_case.errors.full_messages, status: :unprocessable_content }
8484
end
8585
end
8686
end
@@ -101,8 +101,8 @@ def deactivate
101101
end
102102
else
103103
respond_to do |format|
104-
format.html { render :edit, status: :unprocessable_entity }
105-
format.json { render json: @casa_case.errors.full_messages, status: :unprocessable_entity }
104+
format.html { render :edit, status: :unprocessable_content }
105+
format.json { render json: @casa_case.errors.full_messages, status: :unprocessable_content }
106106
end
107107
end
108108
end
@@ -123,8 +123,8 @@ def reactivate
123123
end
124124
else
125125
respond_to do |format|
126-
format.html { render :edit, status: :unprocessable_entity }
127-
format.json { render json: @casa_case.errors.full_messages, status: :unprocessable_entity }
126+
format.html { render :edit, status: :unprocessable_content }
127+
format.json { render json: @casa_case.errors.full_messages, status: :unprocessable_content }
128128
end
129129
end
130130
end

0 commit comments

Comments
 (0)