Skip to content

Commit

Permalink
Merge pull request #4057 from IQSS/3609-large-guestbooks
Browse files Browse the repository at this point in the history
3609 large guestbooks
  • Loading branch information
kcondon authored Aug 22, 2017
2 parents 4af964d + bbf405a commit 9978672
Show file tree
Hide file tree
Showing 13 changed files with 612 additions and 269 deletions.
7 changes: 7 additions & 0 deletions doc/sphinx-guides/source/installation/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1042,3 +1042,10 @@ This setting is experimental and to be used with the Data Capture Module (DCM).
++++++++++++++++

This setting is experimental and related to Repository Storage Abstraction Layer (RSAL). As of this writing it has no effect.

:GuestbookResponsesPageDisplayLimit
+++++++++++++++++++++++++++++++++++

Limit on how many guestbook entries to display on the guestbook-responses page. By default, only the 5000 most recent entries will be shown. Use the standard settings API in order to change the limit. For example, to set it to 10,000, make the following API call:

``curl -X PUT -d 10000 http://localhost:8080/api/admin/settings/:GuestbookResponsesPageDisplayLimit``
5 changes: 5 additions & 0 deletions scripts/issues/guestbook/insert-guestbook-responses.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-- select * from guestbookresponse;
-- 150K would be a better test, see https://github.com/IQSS/dataverse/issues/3609#issuecomment-322559209
--for i in {0..2000}; do psql dataverse_db -f scripts/issues/3845/insert-guestbook-responses.sh; done
-- id | downloadtype | email | institution | name | position | responsetime | sessionid | authenticateduser_id | datafile_id | dataset_id | datasetversion_id | guestbook_id
insert into guestbookresponse values (default, 1, null, null, null, null, null, null, null, 104, 103, null, 2);
23 changes: 15 additions & 8 deletions src/main/java/Bundle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1053,16 +1053,17 @@ dataset.manageGuestbooks.tab.header.date=Date Created
dataset.manageGuestbooks.tab.header.usage=Usage
dataset.manageGuestbooks.tab.header.responses=Responses
dataset.manageGuestbooks.tab.header.action=Action
dataset.manageGuestbooks.tab.action.btn.view=View
dataset.manageGuestbooks.tab.action.btn.view=Preview
dataset.manageGuestbooks.tab.action.btn.copy=Copy
dataset.manageGuestbooks.tab.action.btn.enable=Enable
dataset.manageGuestbooks.tab.action.btn.disable=Disable
dataset.manageGuestbooks.tab.action.btn.edit=Edit
dataset.manageGuestbooks.tab.action.btn.viewCollectedData=View Collected Data
dataset.manageGuestbooks.tab.action.btn.preview=Preview
dataset.manageGuestbooks.tab.action.btn.viewCollectedData=View Responses
dataset.manageGuestbooks.tab.action.btn.delete=Delete
dataset.manageGuestbooks.tab.action.btn.delete.dialog.header=Delete Guestbook
dataset.manageGuestbooks.tab.action.btn.delete.dialog.tip=Are you sure you want to delete this guestbook? You cannot undelete a guestbook.
dataset.manageGuestbooks.tab.action.btn.view.dialog.header=Dataset Guestbook
dataset.manageGuestbooks.tab.action.btn.view.dialog.header=Preview Guestbook
dataset.manageGuestbooks.tab.action.btn.view.dialog.datasetGuestbook.title=Upon downloading files the guestbook asks for the following information.
dataset.manageGuestbooks.tab.action.btn.view.dialog.datasetGuestbook=Guestbook Name
dataset.manageGuestbooks.tab.action.btn.viewCollectedData.dialog.header=Dataset Guestbook Collected Data
Expand All @@ -1077,13 +1078,20 @@ dataset.manageGuestbooks.message.enableSuccess=The guestbook has been enabled.
dataset.manageGuestbooks.message.enableFailure=The guestbook could not be enabled.
dataset.manageGuestbooks.message.disableSuccess=The guestbook has been disabled.
dataset.manageGuestbooks.message.disableFailure=The guestbook could not be disabled.
dataset.manageGuestbooks.tip.title=Manage Dataset Guestbooks
dataset.manageGuestbooks.tip.downloadascsv=Click \"Download All Responses\" to download all collected guestbook responses for this dataverse, as a CSV file. To navigate and analyze your collected responses, we recommend importing this CSV file into Excel, Google Sheets or similar software.
dataset.guestbooksResponses.dataset=Dataset
dataset.guestbooksResponses.date=Date
dataset.guestbooksResponses.type=Type
dataset.guestbooksResponses.file=File
dataset.guestbooksResponses.tip.title=Guestbook Responses
dataset.guestbooksResponses.count.responses={0} {0, choice, 0#Responses|1#Response|2#Responses}
dataset.guestbooksResponses.count.toofresults={0} to {1} of {2} {2, choice, 0#Responses|1#Response|2#Responses}
dataset.guestbooksResponses.tip.downloadascsv=Click \"Download Responses\" to download all collected responses for this guestbook, as a CSV file. To navigate and analyze your collected responses, we recommend importing this CSV file into Excel, Google Sheets or similar software.
dataset.guestbooksResponses.tooManyResponses.message=Note: this guestbook has too many responses to display on this page. Only the most recent {0} responses are shown below. Click \"Download Responses\" to download all collected responses ({1} total) as a CSV file.

# guestbook-responses.xhtml
dataset.guestbookResponses.pageTitle=View Guestbook Responses
dataset.guestbookResponses.pageTitle=Guestbook Responses

# guestbook.xhtml

Expand All @@ -1092,10 +1100,9 @@ dataset.manageGuestbooks.guestbook.name.tip=Enter a unique name for this Guestbo
dataset.manageGuestbooks.guestbook.dataCollected=Data Collected
dataset.manageGuestbooks.guestbook.dataCollected.description=Dataverse account information that will be collected when a user downloads a file. Check the ones that will be required.
dataset.manageGuestbooks.guestbook.customQuestions=Custom Questions
dataset.manageGuestbooks.guestbook.requiredCustomQuestions=Required Custom Questions
dataset.manageGuestbooks.guestbook.optionalCustomQuestions=Optional Custom Questions
dataset.manageGuestbooks.guestbook.requiredAccountInformation=Required Account Information
dataset.manageGuestbooks.guestbook.optionalAccountInformation=Optional Account Information
dataset.manageGuestbooks.guestbook.accountInformation=Account Information
dataset.manageGuestbooks.guestbook.required=(Required)
dataset.manageGuestbooks.guestbook.optional=(Optional)
dataset.manageGuestbooks.guestbook.customQuestions.description=Create your own questions to have users provide more than their account information when they download a file. Questions can be required or optional and answers can be text or multiple choice.
dataset.manageGuestbooks.guestbook.customQuestions.questionType=Question Type
dataset.manageGuestbooks.guestbook.customQuestions.questionText=Question Text
Expand Down
Loading

0 comments on commit 9978672

Please sign in to comment.