-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Display beginning of non-text files as text instead of triggering a download #15447
Display beginning of non-text files as text instead of triggering a download #15447
Conversation
The test failures were, likely, relevant (can't verify as logs have expired). Also, there's a conflict that needs to be resolved. |
Thank you for addressing these! |
I tried to rebase first, but I got much more conflicts this way :(. Apparently, merge and rebase use different algorithms. But if you know how to rebase without conflicts, please let me know. |
I've looked at it; there is one conflict, which seems not too complicated, unless I'm missing something. Still, I'd verify that your logic is still intact and all works as expected after the conflict is fixed. I'll post the specific steps for fixing it to the dev channel. |
display the first 100K of a binary file or a file whose type is unknown to Galaxy as ASCII text instead of downloading this file.
4d88313
to
8aa5621
Compare
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.
Thank you, @SergeyYakubov, this should be quite useful!
This is great, thanks @SergeyYakubov ! |
display the first 100K of a binary file or a file whose type is unknown to Galaxy as ASCII text instead of downloading this file.
If a user clicks on the "eye" button for a binary dataset (or a dataset with an unknown type), Galaxy downloads the whole file. This is probably not what a user wants, especially for large files. Even worse, when using an object store, the file will be fetched from that store and then sent to the web client. So, we implemented displaying a warning and first 100K as an ASCII text, which in many cases still gives an idea of what is inside the file.
How to test the changes?
(Select all options that apply)
License