-
Notifications
You must be signed in to change notification settings - Fork 490
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
Provide Download URL for Public Files #3584
Comments
This issue reminds me a lot of #2416. |
Some tasks coming out of our sprint planning meeting today:
|
Refactor `isDownloadPopupRequired` and `callDownloadServlet` to make them testable. Tested from the GUI: - Yes popup and no URL if Terms of Use is set. - Yes popup and no URL if guestbook. - No download button and no URL if Terms of Access is set. - No download button and no URL if file restricted. - No popup and yes URL given defaults (CC0, etc.) - No popup and yes URL when Terms of Use is set and license is CC0. Bug. Questions: - Is the the bug identified above valid? - What about tabular files? Which URL should be shown?
I created pull request #3608 and put it in Code Review at https://waffle.io/IQSS/dataverse I believe there's an existing bug with the download popu but it's tricky to pull off in the GUI. Here's how:
Anyway, I found this because the the logic to show the file download URL or not piggybacks off the logic to show the pop or not. @sekmiller and I agreed on this approach. I also wrote a lot of tests. 😄 Below are some screenshots of how it looks as of a1ebe6e if @mheppler would like to jump in. |
Yes, I will need to address the UI for this feature. Please do not move it to QA until I have had that chance. |
Oh, one wrinkle I'd like to bring up is that tabular files that have gone through ingest actually have multiple download formats. You can see this in the screenshot below (original vs. tab-delimited vs. RData) or on this live server where I deployed the code: https://dev1.dataverse.org/file.xhtml?fileId=377&version=1.1 Are we fine with just showing the one link under "Download URL" for tabular files? |
Let's provide only the .tab download for now. |
I would point out that the multiple download types and the detour into guestbook are the main reasons we didn't just put the download url into the page in the first place. |
Note that this issue is only for files without TOU and Guestbook. |
…y compared to other fields like Dataset Persistent ID. [ref #3584]
@scolapasta here are the changes you requested:
Anything else before we move this issue to QA? |
I'm not seeing the download urls for public files, no guestbook. |
@kcondon it work on my machine. 😄 I just tried it again. I'm probably not understanding what the bug is. I'll probably need a demo. |
Link appears in draft then disappears in published version due to following popup rule as proxy for biz rules. Popups do not appear by design in Draft however. Link does remain in published version for the public case intended. Download counts are not incremented and guestbook response not updated using download link per this administratively closed issue: #3331 |
show URL for file on file landing page #3584
Good catch. I added a todo in the code for the "disappearing Download URL" scenario described above: ed8e8b5 |
If a file has no Terms of Use and there is no guestbook associated with the dataverse, provide a download URL on the file page.
The text was updated successfully, but these errors were encountered: