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

[ui-storagebrowser] port APIs to public and fixes the chunk upload #3967

Merged
merged 3 commits into from
Jan 23, 2025

Conversation

ramprasadagarwal
Copy link
Collaborator

What changes were proposed in this pull request?

  • Port the download and upload APIs to public
  • Fixes the variables for chunk upload

How was this patch tested?

  • Updated the unit test

Please review Hue Contributing Guide before opening a pull request.

Copy link
Collaborator

@Harshg999 Harshg999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@@ -383,7 +383,7 @@ var FileBrowserModel = function (files, page, breadcrumbs, currentDirPath) {
});

self.isTaskServerEnabled = ko.computed(function() {
return window.getLastKnownConfig().hue_config.enable_chunked_file_uploader && window.getLastKnownConfig().hue_config.enable_task_server;
return window.getLastKnownConfig().storage_browser.enable_chunked_file_upload && window.getLastKnownConfig().hue_config.enable_task_server;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think at some point we should load the config into a settings class/object that use camelCase instead of the python generated snake_case. Not for now, just informing :-)

@ramprasadagarwal ramprasadagarwal enabled auto-merge (squash) January 23, 2025 18:00
@ramprasadagarwal ramprasadagarwal merged commit bd8e80c into master Jan 23, 2025
5 of 6 checks passed
@ramprasadagarwal ramprasadagarwal deleted the feat/storage-browser-18 branch January 23, 2025 18:14
tabraiz12 pushed a commit that referenced this pull request Jan 27, 2025
…3967)

* [ui-storagebrowser] port APIs to public

* [ui-storagebrowser] fixes the chunk upload variables

(cherry picked from commit bd8e80c)
(cherry picked from commit 68bfaf46486d82827c9e63117f1926c4d9747530)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants