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
5 changes: 5 additions & 0 deletions app/controllers/catalog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -307,4 +307,9 @@ def admin_state_facet
blacklight_config.add_facet_field 'state_sim', label: 'State'
blacklight_config.add_index_field 'state_ssim', label: 'State'
end

# disable querying, storing blacklight Search records which are never used
def find_search_session
return nil
end
end
6 changes: 6 additions & 0 deletions spec/controllers/catalog_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,12 @@
end
end

describe 'saved searches' do
it 'does not save searches' do
expect { get 'index', params: { q: 'test' } }.not_to change { Search.count }
end
end

def document_ids
assigns[:document_list].map do |x|
x["id"]
Expand Down