-
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
Storage: Download functionality on bucket files #1424
Conversation
Your Render PR Server URL is https://files-ui-stage-pr-1424.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-c46gfvsobjd906i9hg40. |
Your Render PR Server URL is https://storage-ui-stage-pr-1424.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-c46gg0cobjd906i9hgkg. |
Your Render PR Server URL is https://gaming-ui-stage-pr-1424.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-c46gg1cobjd906i9hh10. |
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.
Hmm looks like the discussion we had with Mike on the issue was ignored. Overall I'm not willing to fight for it, just I think it'd have been nice if any consensus achieved on the development would be followed.
throw new Error("Not implemented") | ||
// const itemToDownload = pathContents.find(item => item.cid === cid) | ||
// if (!itemToDownload || !bucket) return | ||
// throw new Error("Not implemented") |
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.
// throw new Error("Not implemented") |
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.
@Tbaut What was discussed regarding downloads? The ticket seemed straighforward
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.
Check the comments, the description was subsequently updated. #1418
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.
So I should hide the progress bar?
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.
Nope, the idea was to not handle the download in js, but rather download the file using a gateway directly. So get the cid, triggers a browser download (with a <a download=
or something similar).
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.
But again, I'm not willing to fight for this. Feel free to re-open, I'd approve the PR.
Co-authored-by: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>
Co-authored-by: Michael Yankelev <12774278+FSM1@users.noreply.github.com>
Your Render PR Server URL is https://storage-ui-stage-pr-1424.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-c46o7mcobjd906i9psbg. |
Your Render PR Server URL is https://gaming-ui-stage-pr-1424.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-c46o7msobjd906i9psog. |
Your Render PR Server URL is https://files-ui-stage-pr-1424.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-c46o7ncobjd906i9pt40. |
…es-ui into feat/download-buckets-1418
Just the comment from Andrew, otherwise looks good |
From what I can see @RyRy79261 this problem was introduced here, I reverted your changes in 92ce96f edit: looks good now from my tests at least. |
I wasn't aware we had abstracted that yet so might of missed the change during a merge |
@Tbaut I branched off dev and I'm seeing this issue now: |
Ah small misunderstanding I think. The issue that you see is the fact that it's taking all the space, and shrinking the name right? This is something I saw, but didn't consider as a problem. What Andrew reported #1424 (comment) was the cid overflowing on the size, which is what I intended to fix. |
closes #1418