-
Notifications
You must be signed in to change notification settings - Fork 370
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
Chunked File Uploader - front end changes #3501
Conversation
98799f5
to
5d01f70
Compare
Please improve the commit message and PR description. |
@@ -46,8 +46,8 @@ | |||
from beeswax.models import Namespace | |||
from desktop import appmanager | |||
from desktop.auth.backend import is_admin | |||
from desktop.conf import ENABLE_CONNECTORS, ENABLE_GIST_PREVIEW, CUSTOM, get_clusters, ENABLE_SHARING | |||
from desktop.conf import ENABLE_NEW_STORAGE_BROWSER | |||
from desktop.conf import ENABLE_CONNECTORS, ENABLE_GIST_PREVIEW, CUSTOM, get_clusters, IS_K8S_ONLY, ENABLE_SHARING |
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.
Not used in this file?
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.
didnt change anything in this line. Not sure why this is showing up as a change.
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.
Try rebasing your branch with latest master changes once then.
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.
This is still present
17b3ca2
to
1219c80
Compare
@@ -46,8 +46,8 @@ | |||
from beeswax.models import Namespace | |||
from desktop import appmanager | |||
from desktop.auth.backend import is_admin | |||
from desktop.conf import ENABLE_CONNECTORS, ENABLE_GIST_PREVIEW, CUSTOM, get_clusters, ENABLE_SHARING | |||
from desktop.conf import ENABLE_NEW_STORAGE_BROWSER | |||
from desktop.conf import ENABLE_CONNECTORS, ENABLE_GIST_PREVIEW, CUSTOM, get_clusters, IS_K8S_ONLY, ENABLE_SHARING |
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.
Try rebasing your branch with latest master changes once then.
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.
Nice work, see feedback and questions
@@ -0,0 +1,7726 @@ | |||
// Fine Uploader 5.16.2 - MIT licensed. http://fineuploader.com |
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.
What are the custom changes made to this file?
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.
The ozone UI changes, CSRF token handling, Encoding filepath changes are ported to this file from the old code.
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.
Can you add comments in the file for this to explain why this custom version exists?
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.
added a comment "Utilizing this new version of fileuploader js code as it supports chunked file upload. Large files are broken into chunks and stored in local storage and then from local storage these small chunked files are transferred to filesystem. This method will prevent Hue from crashing or getting stuck in the file upload page when a large file is uploaded "
1219c80
to
d30de64
Compare
apps/filebrowser/src/filebrowser/templates/listdir_components.mako
Outdated
Show resolved
Hide resolved
92f5e86
to
9c61e7a
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.
Backend part looks good to me!
There is some conflict in mako file.
When resolved, squash your commits and improve the commit title/message.
@@ -46,8 +46,8 @@ | |||
from beeswax.models import Namespace | |||
from desktop import appmanager | |||
from desktop.auth.backend import is_admin | |||
from desktop.conf import ENABLE_CONNECTORS, ENABLE_GIST_PREVIEW, CUSTOM, get_clusters, ENABLE_SHARING | |||
from desktop.conf import ENABLE_NEW_STORAGE_BROWSER | |||
from desktop.conf import ENABLE_CONNECTORS, ENABLE_GIST_PREVIEW, CUSTOM, get_clusters, IS_K8S_ONLY, ENABLE_SHARING |
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.
This is still present
@@ -0,0 +1,7726 @@ | |||
// Fine Uploader 5.16.2 - MIT licensed. http://fineuploader.com |
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.
Can you add comments in the file for this to explain why this custom version exists?
55e0df0
to
5ed1345
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.
LGTM
(cherry picked from commit 517072f) Change-Id: I9f80d24959a725c8a4765de7759b8114be808460 pop up modal close and upload job progress UI changes (cherry picked from commit f2fb733) Fix - drag and drop functionality - the drop zone will automatically hide when the file is moved out of the dropzone area , fix file upload popup css styling, name of the file uploading will be displayed instead of static text failed. (cherry picked from commit 7d9737b) chunksize and max number of concurrent connections config support (cherry picked from commit 2cf8b98) Flag to enable new file uploader (cherry picked from commit 4df96aa) Change-Id: Id1eae6e920d42668858eb2b3586c5b492195e482
5ed1345
to
a81c378
Compare
(cherry picked from commit 517072f) Change-Id: I9f80d24959a725c8a4765de7759b8114be808460 pop up modal close and upload job progress UI changes (cherry picked from commit f2fb733) Fix - drag and drop functionality - the drop zone will automatically hide when the file is moved out of the dropzone area , fix file upload popup css styling, name of the file uploading will be displayed instead of static text failed. (cherry picked from commit 7d9737b) chunksize and max number of concurrent connections config support (cherry picked from commit 2cf8b98) Flag to enable new file uploader (cherry picked from commit 4df96aa) Change-Id: Id1eae6e920d42668858eb2b3586c5b492195e482 Co-authored-by: Prakash Ranade <ranade@cloudera.com> (cherry picked from commit f931e4f) Change-Id: I4ca598d255a60613f6272c49e809da163e8bb714
(cherry picked from commit 517072f) Change-Id: I9f80d24959a725c8a4765de7759b8114be808460 pop up modal close and upload job progress UI changes (cherry picked from commit f2fb733) Fix - drag and drop functionality - the drop zone will automatically hide when the file is moved out of the dropzone area , fix file upload popup css styling, name of the file uploading will be displayed instead of static text failed. (cherry picked from commit 7d9737b) chunksize and max number of concurrent connections config support (cherry picked from commit 2cf8b98) Flag to enable new file uploader (cherry picked from commit 4df96aa) Change-Id: Id1eae6e920d42668858eb2b3586c5b492195e482 Co-authored-by: Prakash Ranade <ranade@cloudera.com> (cherry picked from commit f931e4f) Change-Id: I4ca598d255a60613f6272c49e809da163e8bb714 (cherry picked from commit 0589e46) (cherry picked from commit 4e74c2ab5e3eb7e28570cbab8be5cacb6e5d17fc)
(cherry picked from commit 517072f) Change-Id: I9f80d24959a725c8a4765de7759b8114be808460 pop up modal close and upload job progress UI changes (cherry picked from commit f2fb733) Fix - drag and drop functionality - the drop zone will automatically hide when the file is moved out of the dropzone area , fix file upload popup css styling, name of the file uploading will be displayed instead of static text failed. (cherry picked from commit 7d9737b) chunksize and max number of concurrent connections config support (cherry picked from commit 2cf8b98) Flag to enable new file uploader (cherry picked from commit 4df96aa) Change-Id: Id1eae6e920d42668858eb2b3586c5b492195e482 Co-authored-by: Prakash Ranade <ranade@cloudera.com> (cherry picked from commit f931e4f) Change-Id: I4ca598d255a60613f6272c49e809da163e8bb714 (cherry picked from commit 0589e46) (cherry picked from commit 302a7ad534e130fcbad21d45fafb6095a5c24592)
What changes were proposed in this pull request?
The chunked fileuploader breaks each file that is selected to be uploaded into chunks and stores them first to local storage. This backend PR : #3504 picks these locally stored chunked files and uploads them to desired filesystem (HDFS, S3, ABFS, Ozone). This chunked upload feature can now help the user upload large GB files without hogging the Hue Server.
How was this patch tested?
Manual testing on hdfs, S3, ABFS
Please review Hue Contributing Guide before opening a pull request.