Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADA/Guestbook-at-request #9599

Merged

Conversation

qqmyers
Copy link
Member

@qqmyers qqmyers commented May 19, 2023

What this PR does / why we need it: This is a restart of #6902 which adds optional support for guestbooks to appear when files access is requested rather than after access has been granted and a download is started. This is key functionality ADA needs to be able to adopt Dataverse 5.x+.

The PR currently compiles but is not yet known to be working. (Making the PR now to make the progress more visible and to be able to monitor the automated test runs.)

Which issue(s) this PR closes:

Special notes for your reviewer:

Suggestions on how to test this:

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

Is there a release notes update needed for this change?:

Additional documentation:

@coveralls
Copy link

coveralls commented May 19, 2023

Coverage Status

coverage: 19.94% (-0.1%) from 20.047% when pulling 6c7826f on GlobalDataverseCommunityConsortium:GDCC-GBAtRequest into 5fc7b30 on IQSS:develop.

@@ -63,30 +63,28 @@ public class GuestbookResponseServiceBean {
+ " and r.dataset_id = o.id "
+ " and r.guestbook_id = g.id ";*/

private static final String BASE_QUERY_STRING_FOR_DOWNLOAD_AS_CSV = "select r.id, g.name, o.id, r.responsetime, f.downloadtype,"
private static final String BASE_QUERY_STRING_FOR_DOWNLOAD_AS_CSV = "select r.id, g.name, o.id, r.responsetime, r.downloadtype,"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to say r.eventtype here

+ " and r.dataset_id = o.id "
+ " and r.guestbook_id = g.id ";

// And this query is used for retrieving guestbook responses for displaying
// on the guestbook-results.xhtml page (the info we show on the page is
// less detailed than what we let the users download as CSV files, so this
// query has fewer fields than the one above). -- L.A.
private static final String BASE_QUERY_STRING_FOR_PAGE_DISPLAY = "select r.id, v.value, r.responsetime, f.downloadtype, m.label, r.name "
+ "from guestbookresponse r, filedownload f, datasetfieldvalue v, filemetadata m , dvobject o "
private static final String BASE_QUERY_STRING_FOR_PAGE_DISPLAY = "select r.id, v.value, r.responsetime, r.downloadtype, m.label, r.name "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also eventtype here

guestbookAndTermsPopupRequired (and downloadPopupRequired before it) was
not defined and I think therefore was always false, meaning the option
to show a popup never occurred. This may have been OK in practice since
one would have to have accepted the terms popup to show the preview and
preview pane with these buttons. The fix here should show the terms
popup prior to allowing the explore button to be clicked if/when these
buttons ever show and one hasn't already accepted the terms (and
termsMet is therefore true).
IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) automation moved this from In Review 🔎 to Ready for QA ⏩ Sep 26, 2023
@sekmiller sekmiller removed their assignment Sep 26, 2023
@qqmyers qqmyers removed their assignment Sep 26, 2023
@kcondon kcondon self-assigned this Sep 28, 2023
misplaced quote marks
@kcondon kcondon merged commit fa97a76 into IQSS:develop Sep 29, 2023
3 of 5 checks passed
IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) automation moved this from Ready for QA ⏩ to Done 🚀 Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GDCC: QDR of interest to QDR Size: 80 A percentage of a sprint. 56 hours.
Projects
Status: No status
6 participants