From 7f3f908e62d6bd2fb059e852d68fc87dea43a888 Mon Sep 17 00:00:00 2001 From: Justin Littman Date: Thu, 19 Oct 2023 09:27:02 -0400 Subject: [PATCH] Increase solr page size for csv download. refs #4245 --- app/models/report.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/report.rb b/app/models/report.rb index 80b611d63e..c6821d4f16 100644 --- a/app/models/report.rb +++ b/app/models/report.rb @@ -20,6 +20,7 @@ class << self COLUMN_SELECTOR_COLUMN_SIZE = 3 # Helps display report columns in neatly lined up columns. ROWS_PER_PAGE = 100 + ROWS_PER_PAGE_CSV = 10_000 REPORT_FIELDS = [ { @@ -277,7 +278,7 @@ def report_data # @return [Enumerator] data in CSV format def to_csv @params[:page] = 1 - @params[:per_page] = ROWS_PER_PAGE + @params[:per_page] = ROWS_PER_PAGE_CSV Enumerator.new do |yielder| yielder << CSV.generate_line(@fields.map { |field| field.fetch(:label) }, force_quotes: true) # header row until @response.documents.empty?