Skip to content

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.

+ " 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

// 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).
@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FY26 Sprint 14 FY26 Sprint 14 (2025-12-31 - 2026-01-14) GDCC: QDR of interest to QDR Size: 80 A percentage of a sprint. 56 hours.

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Feature Request/Idea: Confirmation e-mail for file access request Guestbook - Enabled for Request File Access

7 participants