-
Notifications
You must be signed in to change notification settings - Fork 16
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
221 - Integration multiple files download #254
221 - Integration multiple files download #254
Conversation
…roperty to the dataset model
Can you please resolve conflicts? @MellyGray |
…into feature/221-integration-files-table-row-selection-download
@GPortas merge conflicts resolved |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Downloading multiple files works fine. The message saying that the zip download limit has been exceeded is confusing, although I understand that it appears because the integration of the zip limit setting is pending, and the limit (1B) is mocked, right?
On the other hand for downloading a single file, a zip should not be generated, and the file must be downloaded individually unzipped, as in JSF.
multfile.mov
If you look at the implementation if I mean, I can handle it in the frontend and call the single download from the frontend, but isn't the desired API behavior to download a single file if only 1 file is selected? I want to be sure before applying the logic in the UI |
Is the API not using this same fileDownloadService than JSF? -> No. That logic is only consumed from the JSF UI Helper class. We need to replicate the same logic on the SPA. The |
@GPortas I applied the requested changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…able-row-selection-download 221 - Integration multiple files download
What this PR does / why we need it:
This PR adds the integration of the Download multiple files button in the Files Table with the dataverse API. With this integration the SPA user will be able to select multiple files from the dataset table and download them.
Which issue(s) this PR closes:
Special notes for your reviewer:
Suggestions on how to test this:
Step 1: Run the development environment
npm I
cd packages/design-system && npm run build
cd ../../
.env
file such as the .env.example, with theVITE_DATAVERSE_BACKEND_URL=http://localhost:8000
variablecd dev-env
./run-env.sh unstable
Step 2: Test Dataset View mode with the implemented changes to download the files
?persistentId=doi:10.5072/FK2/LHGRHP&version=DRAFT
Does this PR introduce a user interface change? If mockups are available, please link/include them here:
No
Is there a release notes update needed for this change?:
No
Additional documentation: