From 97ee98bf878227081e0cf1cf86f0069e10e8d9d2 Mon Sep 17 00:00:00 2001 From: Jane Sandberg Date: Fri, 12 Mar 2021 14:20:13 -0800 Subject: [PATCH] No need to store sessions in db, closes #415, closes #416 --- Gemfile | 1 - Gemfile.lock | 12 ++---------- app/views/catalog/_brief_item_info.html.erb | 9 --------- config/initializers/session_store.rb | 8 -------- 4 files changed, 2 insertions(+), 28 deletions(-) delete mode 100644 app/views/catalog/_brief_item_info.html.erb delete mode 100644 config/initializers/session_store.rb diff --git a/Gemfile b/Gemfile index b6421b0..169c840 100644 --- a/Gemfile +++ b/Gemfile @@ -25,7 +25,6 @@ group :production, :development, :test do # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder gem 'jbuilder' - gem 'activerecord-session_store' gem 'blacklight-locale_picker' gem 'bootstrap', '4.1.3' gem 'devise-guests' diff --git a/Gemfile.lock b/Gemfile.lock index be3fb44..6bc061b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -72,12 +72,6 @@ GEM jdbc-postgres (>= 9.4, < 43) activerecord-nulldb-adapter (0.7.0) activerecord (>= 5.2.0, < 6.3) - activerecord-session_store (2.0.0) - actionpack (>= 5.2.4.1) - activerecord (>= 5.2.4.1) - multi_json (~> 1.11, >= 1.11.2) - rack (>= 2.0.8, < 3) - railties (>= 5.2.4.1) activestorage (6.0.3.5) actionpack (= 6.0.3.5) activejob (= 6.0.3.5) @@ -226,9 +220,8 @@ GEM mini_mime (1.0.2) mini_portile2 (2.5.0) minitest (5.14.4) - multi_json (1.15.0) multipart-post (2.1.1) - namae (1.0.2) + namae (1.1.0) net-http-persistent (3.1.0) connection_pool (~> 2.2) nio4r (2.5.7) @@ -437,7 +430,6 @@ DEPENDENCIES activerecord-jdbc-adapter (~> 60.2) activerecord-jdbcpostgresql-adapter activerecord-nulldb-adapter - activerecord-session_store blacklight (~> 7.15) blacklight-citeproc (>= 0.0.4) blacklight-locale_picker @@ -484,4 +476,4 @@ RUBY VERSION ruby 2.5.7p0 (jruby 9.2.9.0) BUNDLED WITH - 2.2.13 + 2.2.14 diff --git a/app/views/catalog/_brief_item_info.html.erb b/app/views/catalog/_brief_item_info.html.erb deleted file mode 100644 index 32a360b..0000000 --- a/app/views/catalog/_brief_item_info.html.erb +++ /dev/null @@ -1,9 +0,0 @@ -<% evergreen = EvergreenRecord.new record_id, session %> -<% item = evergreen.first_available_item_at library_id %> -
- - <%= content_tag :span, 'local_library', class: 'material-icons' %> - <%= t('obtain.available') %> - - <%= t('obtain.available_at', library: t(library_i18n_key), location: item.location, call_number: item.call_number) %> -
diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb deleted file mode 100644 index 7c4a1ec..0000000 --- a/config/initializers/session_store.rb +++ /dev/null @@ -1,8 +0,0 @@ -# frozen_string_literal: true - -# Be sure to restart your server when you modify this file. -unless Rails.env.indexer? - Rails.application.config.session_store :active_record_store, - key: '_findit_session', - expire_after: 2.weeks -end