Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ gem 'jquery-rails', '~> 4.4'
gem 'lograge', '~> 0.11'
gem 'mysql2', '~> 0.5.4'
gem 'nokogiri', '~> 1.18'
gem 'okcomputer', '~> 1.19'
gem 'ougai', '~> 1.8'
gem 'puma', '~> 6.6.1'
gem 'rails', '~> 8.0.0'
gem 'rails-healthcheck'
gem 'rake'
gem 'sass-rails', '>= 6'
gem 'webpacker', '~> 5.4.3'
Expand Down
7 changes: 3 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ GEM
oj (3.16.12)
bigdecimal (>= 3.0)
ostruct (>= 0.2)
okcomputer (1.19.1)
benchmark
ostruct (0.6.3)
ougai (1.9.1)
oj (~> 3.10)
Expand Down Expand Up @@ -239,9 +241,6 @@ GEM
activesupport (>= 5.0.0)
minitest
nokogiri (>= 1.6)
rails-healthcheck (1.4.0)
actionpack
railties
rails-html-sanitizer (1.6.2)
loofah (~> 2.21)
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
Expand Down Expand Up @@ -408,10 +407,10 @@ DEPENDENCIES
lograge (~> 0.11)
mysql2 (~> 0.5.4)
nokogiri (~> 1.18)
okcomputer (~> 1.19)
ougai (~> 1.8)
puma (~> 6.6.1)
rails (~> 8.0.0)
rails-healthcheck
rake
rspec-rails (~> 8.0)
rspec_junit_formatter (~> 0.4.1)
Expand Down
15 changes: 0 additions & 15 deletions config/initializers/healthcheck.rb

This file was deleted.

5 changes: 5 additions & 0 deletions config/initializers/okcomputer.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# frozen_string_literal: true

# Health check configuration
OkComputer.logger = Rails.logger
OkComputer.check_in_parallel = true
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal:true

Rails.application.routes.draw do
Healthcheck.routes(self)
get 'health', to: 'ok_computer/ok_computer#index', defaults: { format: :json }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need a /healthcheck alias to handle the old endpoint, or do we not care?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we care, based on my understanding from @danschmidt5189.

resources :nara_casefile
resources :search_casefiles

Expand Down
9 changes: 0 additions & 9 deletions lib/tasks/health.rake

This file was deleted.