From 6299d45e114e5d971bfc039adf4592ee70599d2c Mon Sep 17 00:00:00 2001 From: Kirk Wang Date: Tue, 28 May 2024 11:59:35 -0700 Subject: [PATCH 1/2] Change Raven to Sentry The sentry-raven gem has changed to the sentry-ruby gem and this is just a clean up of the module name. --- config/initializers/good_job.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/good_job.rb b/config/initializers/good_job.rb index 0fe0259a75..52916fb941 100644 --- a/config/initializers/good_job.rb +++ b/config/initializers/good_job.rb @@ -6,7 +6,7 @@ # Configure options individually... config.good_job.preserve_job_records = true config.good_job.retry_on_unhandled_error = false - config.good_job.on_thread_error = ->(exception) { Raven.capture_exception(exception) } + config.good_job.on_thread_error = ->(exception) { Sentry.capture_exception(exception) } config.good_job.execution_mode = :external # config.good_job.queues = '*' config.good_job.shutdown_timeout = 60 # seconds From 3b92ac078522dc4965a186c343051b6ac9e822e0 Mon Sep 17 00:00:00 2001 From: Kirk Wang Date: Tue, 28 May 2024 14:40:02 -0700 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=8E=81=20Modify=20yarn=20script=20to?= =?UTF-8?q?=20copy=20knapsack=20uv=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This script checks if there are any files in the knapsack's config/uv/ directory and copies the files into the application's public/uv/ dir. This way we can have institution specific uv-config json files work in a knapsack application. --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 367a17d3ab..ef715e4a46 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,9 @@ }, "scripts": { "preinstall": "rm -rf ./public/uv", - "postinstall": "yarn run uv-install && yarn run uv-config", + "postinstall": "yarn run uv-install && yarn run uv-config && yarn run knapsack-uv-config", "uv-install": "cp -r ./node_modules/universalviewer/dist ./public/uv", - "uv-config": "cp ./config/uv/uv.html ./public/uv/uv.html & cp ./config/uv/uv-config.json ./public/uv/" + "uv-config": "cp ./config/uv/uv.html ./public/uv/uv.html & cp ./config/uv/uv-config.json ./public/uv/", + "knapsack-uv-config": "if [ $(ls -A ../config/uv/ 2>/dev/null | wc -l) -gt 0 ]; then cp -r ../config/uv/* ./public/uv/; fi" } }