Download compliment to #3348 .
Backend dependency on #3561
UI IMPACT
As defined in the following mockup document.
Dataverse
Dataset (view/no files)
Dataset (view/has file/success-upload)
/user/dataset-management.html#file-handling-and-uploading)Edit Dataset Terms
File
/user/dataset-management.html#file-handling-and-uploading)User Guide
From another round of testing:
Wrote some new messaging for the rsync download pages, would love to get @pameyer's verification that everything is accurate. Here are some earlier mockups, followed by the revised instructional text.
There will be gray help text at the top, and tooltips on each of the three blue headers.
Gray instructions at top: "This data can be accessed through your computer's Terminal using the commands below. For more information, see our User Guide." ("User Guide" links to a guide page with more info)
Local Access tooltip: "If this data is locally available, this is its file path."
Download Access tooltip: "Download this data by running this command from your preferred mirror."
Verify Data tooltip: "This command runs a checksum to verify the integrity of the data you've downloaded."
This page will use the exact same help text as the other page. As discussed with @mheppler and @TaniaSchlatter, the gray general instructions should go on the right side of the file table, above "Local Access". The three headers will have the same tooltips as the headers on the file page.
All red-on-pink text should be changed to highlighted black text, as in this earlier mockup:
@dlmurphy looks good to me
One update - these UI changes should be conditional on the downloadMethods setting that was previously added (for this purpose).
It doesn't say so in the checklist explicitly, but, there is no "Download" button on the page for a package file, correct? (just to confirm). I.e., that "Data Access" text on the dataset page, in the mockup above, replaces the current Download button - correct?
If so, the checklist really should say "render logic to hide download count AND download button"...
It sounds so far like this issue is mostly about changing the rendering of the dataset and other pages for "package" files.
So then, in order to work on it, you just need a file with the "package" mime type. One way of creating such a file - aside from actually running a successful DCM upload - would be to pick a dataset with a single file; find the file in the DataFile Postgres table; and change the ContentType field to application/vnd.dataverse.file-package.
(and, it sounds like, you don't need this Datafile to contain an actual physical package directory on the filesystem; at least not for the purposes of working on the page...)
@landreev - you are correct; there shouldn't be a "Download" button
Note from sprint planning meeting:
@djbrooke "Data Access" checklist items and mock-ups cover #3249; so I don't think there's anything to update from it into this one.
I have a few questions:
2.I saw the renders @dlmurphy made. The download links which are provided for various providers, would it make sense to have a dropdown with the provider names, and when a particular provider is chosen, we can provide that specific link? This is more of a suggestion than a question. My argument is, that if(and this is a questionable if) the list of providers increase i the future, the dataaccess block, or the files tab would look very large accomodating all the providers.
@rbhatta99
right; the information going into the metrics block comes from the dataverse application, and downloads not going through the application (aka - all rsync downloads) aren't counted.
potentially; probably makes sense to keep this in mind when thinking about generalizing dataset locality
Merged branch '3348-RSync-FileUpload-Workflow' into 3998-rsync-download 3b7051292843318fbd0d4462b4042f9566f31e65
Just added commit 8ddef8ef4a934b83f72b17015968877e7388707e (but forgot to link it to this issue). Documentation should be all set for this issue now!
(filtered) notes from another run-through.
Dataset <a href="https://localhost/dataset.xhtml?persistentId=doi:10.5072/FK2/BQIIEF" title="$title"&>$title</a> has been successfully uploaded and verified.Which users get sent notifications for events appears inconsistent; this needs further investigation to determine if these are bugs, user error, or intended behavior.
Good stuff:
As part of the above commit, I slightly reworded the email strings. We can support html in our emails, but "just turning it on" breaks the return formatting in our old emails, so it seems better to fix this later.
Authoritative List of Open Issues - IN ORDER OF CURRENT PRIORITY- Please add to and update this list as needed.
[x] ~create dataset API reports a "Bad api key" error for valid API keys.~
[x] occasionally (intermittently, 2x out of 12) file fails to upload with null ptr error in logs. No rollback happens due to rollback bug and dataset remains locked.
[2017-09-21T15:50:05.600-0400] [glassfish 4.1] [SEVERE] [] [edu.harvard.iq.dataverse.engine.command.impl.ImportFromFileSystemCommand] [tid: _ThreadID=50 _ThreadName=jk-connector(2)] [timeMillis: 1506023405600] [levelValue: 1000] [[ Directory/usr/local/glassfish4/glassfish/domains/domain1/files/10.5072/FK2/AZ3OJP does not exist.]]
Likely cause NFS congestion; handled by having DCM retry success API (currently 1x) and suggest (on DCM side) that it should trigger an ops/curation alert.
Done or deferred
Dataset <a href="https://localhost/dataset.xhtml?persistentId=doi:10.5072/FK2/BQIIEF" title="$title"&>$title</a> has been successfully uploaded and verified.~ (@matthew-a-dunlap )For future reference, these are symptoms of multiple roles being assigned to users un-necessarilly:
From discussions with @scolapasta and @kcondon , it's likely that some of the user notification items can be resolved by changing while roles are given to which users. I'll investigate and update these items (and create issues as necessary).
I may have been able to fix that annoying "CSS blink after the page auto-refreshes" issue. (the "blink" itself was a Chrome-only issue; but the auto-refresh was also causing the files table to be resized incorrectly, and that was affecting all (or most) browsers. I've updated the checklist entry).
It was all caused by the "update=@all" in the autorefresh block. It's just that for whatever reason I couldn't get it to properly refresh all the affected page parts without resorting to "all", back when I was working on it for tabular ingest. (so, this was not anything introduced in these rsync branches; we've had this issue forever).
But, as I said, I think I got it to work, by updating just the affected components (the files table; the citation; the edit/publish/etc. buttons; and the message panel). But please re-test carefully. And see if I missed anything.

Wait, my commit with the message fix didn't seem to go through. Trying again.
@kcondon I've added a similar success message to file delete on the single file page as well.
Awesome, thanks!
From: landreev notifications@github.com
Sent: Thursday, September 21, 2017 7:04:52 PM
To: IQSS/dataverse
Cc: Condon, Kevin M; Mention
Subject: Re: [IQSS/dataverse] File Download w/ Rsync UI/Workflow changes (#3998)
@kcondonhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_kcondon&d=DwMCaQ&c=WO-RGvefibhHBZq3fL85hQ&r=TUpjWt9sVfaAC8ETCY_cDPtqJKl7s242PLg6-Wx6UpM&m=hSamWuJuDUtIuCtXBl2bwT4sQOFMZSA-7VV4XV2joBs&s=Tes4lhV7TsVzhPVt7MtFu32qb8Jx0E4OEPKbxAdLUzc&e= I've added a similar success message to file delete on the single file page as well.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_IQSS_dataverse_issues_3998-23issuecomment-2D331305470&d=DwMCaQ&c=WO-RGvefibhHBZq3fL85hQ&r=TUpjWt9sVfaAC8ETCY_cDPtqJKl7s242PLg6-Wx6UpM&m=hSamWuJuDUtIuCtXBl2bwT4sQOFMZSA-7VV4XV2joBs&s=owcwfxG7T5_ScyleoaPaOhSLd6o73kkpSVKmJNEQsqE&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AEwMCNQ0kTVFIz-2DaZxpphuyrzNPVHUjHks5skuuSgaJpZM4OWHpi&d=DwMCaQ&c=WO-RGvefibhHBZq3fL85hQ&r=TUpjWt9sVfaAC8ETCY_cDPtqJKl7s242PLg6-Wx6UpM&m=hSamWuJuDUtIuCtXBl2bwT4sQOFMZSA-7VV4XV2joBs&s=UezxnAKAMBUeOeW9HEQIdobHQ_8HW2TkkzoH0Dfd4lc&e=.