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

download all files does not download all files. #4051

Closed
smakonin opened this issue Aug 9, 2017 · 9 comments
Closed

download all files does not download all files. #4051

smakonin opened this issue Aug 9, 2017 · 9 comments
Assignees
Labels
Feature: File Upload & Handling Type: Bug a defect User Role: Guest Anyone using the system, even without an account

Comments

@smakonin
Copy link

smakonin commented Aug 9, 2017

Using my dataset (http://dx.doi.org/10.7910/DVN/FIE0S4) which has 88 files. Check the "all" checkbox and click the download button. Less than 88 files are downloaded. Sometimes on 20 and sometimes only 37.

All 88 file should be downloaded.

@pdurbin
Copy link
Member

pdurbin commented Aug 9, 2017

@smakonin thanks for the bug report. It looks like #3711 may be related.

@pdurbin pdurbin added Feature: File Upload & Handling Type: Bug a defect User Role: Guest Anyone using the system, even without an account labels Oct 24, 2017
@pdurbin
Copy link
Member

pdurbin commented Oct 27, 2017

@djbrooke and I discussed this issue yesterday during my one on one. We agreed that it sounds like a bug. Needs investigation.

@pdurbin
Copy link
Member

pdurbin commented Nov 1, 2017

We just had a nice discussion about this issue during backlog grooming today and it sounds like we're going to try an approach where if the user clicks the box under "88 files" in the screenshot below, we'll set some sort of "all" boolean in the backend and zip up all the files, regardless of what the PrimeFaces component shows as check or unchecked for each file. When we pick up issue I think we could close #3711 as a duplicate of this one.

screen shot 2017-11-01 at 4 14 27 pm

Longer term #3404 enumerates a number of problems with how files are handled on the dataset page.

@sekmiller
Copy link
Contributor

I have a partial fix due to the limitations of the Primefaces table component. In my fix, if a user clicks the "Select All" and then download, she will get all of the files downloaded. However if another user selects all then de-selects one or more files in the table, then downloads he will still get all of the files.

Is this an acceptable improvement?

@pdurbin
Copy link
Member

pdurbin commented Dec 6, 2017

I suspect the most common case is the user think, "Just let me download all the files and I'll sort them out on my laptop." That is to say, yes, I think this is an improvement.

@sekmiller
Copy link
Contributor

Based on our Stand-up discussion I am moving to Code Review

@mheppler
Copy link
Contributor

mheppler commented Dec 14, 2017

Fixed scrolling bug associated with CSS hack in previous scrolling bug fix (836d248).

I was attempting to add extra spacing to the bottom of the files table in order to display dropdown menus for the Download, Explore, Configure buttons. Unfortunately I added the space to the wrong containing element. This should now be fixed. See attached screenshot of Download button in the last row of the table -- and there is even a scroll bar displayed. Sorry @sekmiller.

screen shot 2017-12-14 at 3 21 18 pm

@sekmiller
Copy link
Contributor

In its final version, (at least for this ticket) if a user clicks the checkbox at the top of the table then clicks the Download button he will get all of the files. If after clicking the select all box the user has any other interaction with the table at the file level (unselect or select) before clicking the download button then they will only get the files physically selected in the table.

@kcondon
Copy link
Contributor

kcondon commented Dec 19, 2017

Works except if in draft.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature: File Upload & Handling Type: Bug a defect User Role: Guest Anyone using the system, even without an account
Projects
None yet
Development

No branches or pull requests

7 participants